From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: osc-insert-float32 Date: Tue, 17 Dec 2019 14:02:18 -0500 Message-ID: References: <8736diakx0.fsf@blind.guru> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="60685"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Mario Lang Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 17 20:02:42 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ihI7F-000Fcf-Im for ged-emacs-devel@m.gmane.org; Tue, 17 Dec 2019 20:02:42 +0100 Original-Received: from localhost ([::1]:45340 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihI7C-0002LI-TQ for ged-emacs-devel@m.gmane.org; Tue, 17 Dec 2019 14:02:38 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58174) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihI6z-0002L5-Q8 for emacs-devel@gnu.org; Tue, 17 Dec 2019 14:02:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ihI6x-0005nw-5B for emacs-devel@gnu.org; Tue, 17 Dec 2019 14:02:24 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:57385) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ihI6w-0005lw-MA for emacs-devel@gnu.org; Tue, 17 Dec 2019 14:02:23 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 3EE771027F1; Tue, 17 Dec 2019 14:02:21 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id B417D100A2F; Tue, 17 Dec 2019 14:02:19 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1576609339; bh=wIVfN02LVDfghcONW7pTqd48MmCofzCzNKB3V0t0pdQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=gOazeylk42EhdnK7VMCz5i8yG/0nCv+dp013kArvREZIbkuOsHJHPD5XnTzkHMFxB 5m9Dm1p078nefWCX9yJOhiywh1Or7oYXWQHc6M3LA+32D88o69CUC2UHGDZKDn90cw R1yq7medInmbccMNqT33FfQSW4turyaKvqWD43+pzbSp8UtVwGf65tj1JDqEwheGL5 pyEY9nutuWTZk0MgPNlPIZKGQbEm9aTlgAMe4qxyGKyImgVtn/CSgBijT+nCZfwLVI PjujLG63mvNmTxlDCQbPs0GlbPuAWaT7wKZHQ2pjZAY6uyCL0cggYOSBsJ/bm5wJgO xNjgWCG5PkoNg== Original-Received: from pastel (69-165-158-134.dsl.teksavvy.com [69.165.158.134]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 6483E1212A2; Tue, 17 Dec 2019 14:02:19 -0500 (EST) In-Reply-To: <8736diakx0.fsf@blind.guru> (Mario Lang's message of "Tue, 17 Dec 2019 19:04:11 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 132.204.25.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:243443 Archived-At: Mario Lang [2019-12-17 19:04:11] wrote: > Hi. > > 14 years ago, I wrote this beast to be able to send IEEE floating point > values over the network (Open Sound Control). Reading it today, I am > actually surprised I was driven enough to get this working. I am > wondering, is there a better way to achieve this today? There's `frexp` to extract the exponent and the mantissa. Stefan