From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: DIRO Newsgroups: gmane.emacs.devel Subject: Re: osc-insert-float32 Date: Fri, 30 Sep 2022 15:02:33 -0400 Message-ID: <181c78e644cf4c25a8382a035c3f3fc0c928d83c.camel@iro.umontreal.ca> References: <8736diakx0.fsf@blind.guru> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6460"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.45.3-2 Cc: emacs-devel@gnu.org To: Mario Lang Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 30 21:03:37 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oeLIP-0001VO-AY for ged-emacs-devel@m.gmane-mx.org; Fri, 30 Sep 2022 21:03:37 +0200 Original-Received: from localhost ([::1]:56366 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oeLIN-0001PC-Tn for ged-emacs-devel@m.gmane-mx.org; Fri, 30 Sep 2022 15:03:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37570) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oeLHT-0000eV-7E for emacs-devel@gnu.org; Fri, 30 Sep 2022 15:02:39 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:37349) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oeLHR-0001X7-9C for emacs-devel@gnu.org; Fri, 30 Sep 2022 15:02:38 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id DE4CD442CCB; Fri, 30 Sep 2022 15:02:35 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 97CFE442CC9; Fri, 30 Sep 2022 15:02:34 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1664564554; bh=MByt0nduxtSzN3aWxgaxAlgLxbLTu0lRzBQqBU4bNSA=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=pW+s8rYtvyqSPABBmVdP/sborFrSiq/aWYRJnE3KEiL9qgusf26X3kleYU/eTCRGm g3RZbG4pv8hG+oz8v7NmYuCCelmUgZmohqxYBsKZTCFF+wYp5YmNZB6kRD/7TIVXpC WovazuKbItqn4jm2KrXwLGMPbmOSw4czOIYBYqrYS7PTYYbdu5J9jJK0eCEDZCrl56 OaJzWtN6hpmLjlRxl/M9ZWGXoQSFedOIXiocfWGCUY2VBpUj9RztOQW6zYO02rt7Rv L85i+RFrbpouyZDLq/mCy8icZlykDJwb3I3YkwdnxcR0CFOkKqbma7is8Ds/0e6Ud+ LlVkoVSZZaSJQ== Original-Received: from alfajor.lan (unknown [45.44.229.252]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 789AE120EE6; Fri, 30 Sep 2022 15:02:34 -0400 (EDT) In-Reply-To: <8736diakx0.fsf@blind.guru> Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:296532 Archived-At: Le mardi 17 d=C3=A9cembre 2019 =C3=A0 19:04 +0100, Mario Lang a =C3=A9crit= =C2=A0: > 14 years ago, I wrote this beast to be able to send IEEE floating > point > values over the network (Open Sound Control).=C2=A0 Reading it today, I a= m > actually surprised I was driven enough to get this working.=C2=A0 I am > wondering, is there a better way to achieve this today? > Maybe something in Emacs itself I missed? >=20 > If no, is there a better way to test for negative zero and 0.0e+NaN? We could easily add a primitive written in C which uses `memcpy` to generate the IEEE 32bit encoding of a 32bit or 64bit float. Stefan