[Cbor] Re: nan'' application-extension literal
Thiago Macieira <thiago.macieira@intel.com> Mon, 05 August 2024 15:28 UTC
Return-Path: <thiago.macieira@intel.com>
X-Original-To: cbor@ietfa.amsl.com
Delivered-To: cbor@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 661D7C14F703 for <cbor@ietfa.amsl.com>; Mon, 5 Aug 2024 08:28:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.253
X-Spam-Level:
X-Spam-Status: No, score=-7.253 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.148, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=intel.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W_MMAN1nh8mr for <cbor@ietfa.amsl.com>; Mon, 5 Aug 2024 08:28:03 -0700 (PDT)
Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2C99FC14F6A7 for <cbor@ietf.org>; Mon, 5 Aug 2024 08:28:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1722871684; x=1754407684; h=from:to:subject:date:message-id:in-reply-to:references: mime-version; bh=6TlmAK6f8cGqKzL/eFhAyP7XTQSBT+F6xC8HJgCTQx4=; b=LJgWRF4OgQrH4XVqmBjHmCjsYei1gMOdJPPKXlPH4xZUrX4QwKErYDWg BBWYIxtR1KYZwSum1rbeLUyjNT5JPzSzAnXozTUUKOp7VZVQ+svFr+04C 7oRxlpyTbeNg3NioX/++y5ALIXDpErzod2tmGDoY4YbjKH/dsqy25HlHZ tJCooc5V2wYMzG45UUyIfIpRoEt7WYz3WBmt3SQG0FRx2Crciabzqpqw9 zpb97IIR9gg6U6mphg1TBKPkExDFjqG66A68TuK0lDncGsLNgWYGXCmGG Wbks1Ygp1L/oX3nO79FcVqvKN4KwLw6ML1U8dv3l5F4KtfFeER/L9w6tT Q==;
X-CSE-ConnectionGUID: V6t/ARRcQH2syx344WlgVA==
X-CSE-MsgGUID: VX8Xv160Q7iftYFJ0T0aGA==
X-IronPort-AV: E=McAfee;i="6700,10204,11155"; a="43365878"
X-IronPort-AV: E=Sophos;i="6.09,265,1716274800"; d="p7s'346?scan'346,208,346";a="43365878"
Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Aug 2024 08:28:02 -0700
X-CSE-ConnectionGUID: ACNaNWPDSlCaFvTR3iU5yA==
X-CSE-MsgGUID: xWCWU6RtSs2mYeKbnNsYiw==
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="6.09,265,1716274800"; d="p7s'346?scan'346,208,346";a="56917549"
Received: from tjmaciei-mobl5.jf.intel.com (HELO tjmaciei-mobl5.localnet) ([10.54.75.11]) by orviesa008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Aug 2024 08:28:01 -0700
From: Thiago Macieira <thiago.macieira@intel.com>
To: cbor@ietf.org
Date: Mon, 05 Aug 2024 08:27:53 -0700
Message-ID: <2711394.vuYhMxLoTh@tjmaciei-mobl5>
Organization: Intel Corporation
In-Reply-To: <65F1B2EE-DC84-438A-B3C6-943B153F3B08@tzi.org>
References: <65F1B2EE-DC84-438A-B3C6-943B153F3B08@tzi.org>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="nextPart4891625.OV4Wx5bFTl"; micalg="sha256"; protocol="application/pkcs7-signature"
Message-ID-Hash: QYDJ7KZRIBE4VGLZBIXLLM2CBSRG2NEV
X-Message-ID-Hash: QYDJ7KZRIBE4VGLZBIXLLM2CBSRG2NEV
X-MailFrom: thiago.macieira@intel.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-cbor.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [Cbor] Re: nan'' application-extension literal
List-Id: "Concise Binary Object Representation (CBOR)" <cbor.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/FPyISvvQHnHAuiJ9YpqNLsBRjPU>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Owner: <mailto:cbor-owner@ietf.org>
List-Post: <mailto:cbor@ietf.org>
List-Subscribe: <mailto:cbor-join@ietf.org>
List-Unsubscribe: <mailto:cbor-leave@ietf.org>
On Sunday 4 August 2024 13:38:59 GMT-7 Carsten Bormann wrote: > The syntax is: nan’payload-rep’, where payload-rep is the EDN representation > of a floating point number with an absolute value between 1.0 and 2.0 (both > sides exclusive). I suggest using something that can be fed right back to GCC's __builtin_nan() intrinsic. That is, specify the hexadecimal pattern that the NaN payload bits are carrying, not an hexafloat. See https://godbolt.org/z/MoMaWcn55 (using Clang because it prints in hex). -- Thiago Macieira - thiago.macieira (AT) intel.com Principal Engineer - Intel DCAI Platform & System Engineering
- [Cbor] nan'' application-extension literal Carsten Bormann
- [Cbor] Re: nan'' application-extension literal Thiago Macieira
- [Cbor] Re: nan'' application-extension literal Carsten Bormann