From nobody Sat Jul 9 16:56:05 2022 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 468D0180F817 for ; Sat, 9 Jul 2022 16:55:08 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LgGV33yBzz3jfW for ; Sat, 9 Jul 2022 16:55:07 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: by mail-qk1-x730.google.com with SMTP id z7so1140606qko.8 for ; Sat, 09 Jul 2022 09:55:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=WyqGVv9+tD8/uyGJNvkzKjNu/rtXrPx7oUMQJ2F1V3o=; b=pWuVFYaHen706X10QGIZ46kejlkbjZhckBJmTPljuV/S2c0KwxkAavWWU75tdkniBi KzrnjzGouPpKOxkJiz+J1sDzoUghw6uxRE3qU7wCAX7icZWUWlIlPfnImocAfQOys3B/ B9X/4BAYkfFFUgzk65CfLtwcbCWSH9CJG0i2M15OiqT7L/wPqCowzwR4/4zTFYJZNFGU mQueOV7YQGvRMIIjiH0q2gVOrwARNdjF80uuHb01ohaXTAzL6J8a/zmmNmPdB0CTNO5K uoS+Pw+AJCYieqHWqMQ9/CVV++C/utK/0yW//LKTimB4wjFFh7V14B8OUCCXcoKup0VT HYuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=WyqGVv9+tD8/uyGJNvkzKjNu/rtXrPx7oUMQJ2F1V3o=; b=gyr92rid27OukHL3coX7e1Hlb/ZosXkCf1S45aYF6y/DPnZqSMm6N+dHMtj4l+8CBV 8sQb07Q0CulM5ZpYVsNgpBUo280LHeC4tkSoOGxmP7Ww/K2fYVD3DkmWz25h3z+BiiOB q98xavK/g3umQ0CDpe9OGn1fR9qTouNPZPU1BhWrJsyp+5PHYTFFLsoAVUxzoBX1gVS7 WnvaPihR3WunvQfS+NiCiNmvXF5QM6OkcvxCkw6P34EP8Ti3f4k60Yur4//O2fk11T2L onyayYcuGALa76nAi88hHx7RtacDnYphRwSCdXItdj/9PF7b5Dj3aGfPeOPmC2QIFGoF Y7sA== X-Gm-Message-State: AJIora/iUbQ9vBv5KsuzYN/FlrbhkGS8oTKoRr2q8vWF86xgtNBCr49O MCp1Lu0RiS9U9PkGwyzNsQfLUdbOb3A= X-Google-Smtp-Source: AGRyM1sUKrkliBUdQclV3c/bMXmweoeCmuIwE9AyBstlg4AvKXipCSAWYvhNiFYcKuun9O6YmiFTlg== X-Received: by 2002:a05:620a:22fa:b0:6af:6c8c:32e8 with SMTP id p26-20020a05620a22fa00b006af6c8c32e8mr6372447qki.15.1657385706536; Sat, 09 Jul 2022 09:55:06 -0700 (PDT) Received: from ?IPV6:2603:6000:a401:3a00:6e88:14ff:fea7:590c? (2603-6000-a401-3a00-6e88-14ff-fea7-590c.res6.spectrum.com. [2603:6000:a401:3a00:6e88:14ff:fea7:590c]) by smtp.gmail.com with ESMTPSA id i6-20020a05620a404600b006af1f0af045sm1701926qko.107.2022.07.09.09.55.05 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 09 Jul 2022 09:55:06 -0700 (PDT) Message-ID: <483b4eb6-bd9b-49f4-1697-993bd41493fc@gmail.com> Date: Sat, 9 Jul 2022 11:56:05 -0500 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: Canonical way / best practice for 128-bit integers Content-Language: en-US To: freebsd-hackers@freebsd.org References: <86CB4C22-9CAB-4578-8F11-962B4B08F756@bumblingdork.com> From: Jason Bacon In-Reply-To: <86CB4C22-9CAB-4578-8F11-962B4B08F756@bumblingdork.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 X-Rspamd-Queue-Id: 4LgGV33yBzz3jfW X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=pWuVFYaH; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of bacon4000@gmail.com designates 2607:f8b0:4864:20::730 as permitted sender) smtp.mailfrom=bacon4000@gmail.com X-Spamd-Result: default: False [-3.88 / 15.00]; NEURAL_HAM_SHORT(-1.00)[-0.999]; NEURAL_HAM_LONG(-1.00)[-0.998]; NEURAL_HAM_MEDIUM(-0.98)[-0.985]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; MIME_BASE64_TEXT(0.10)[]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::730:from]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MLMMJ_DEST(0.00)[freebsd-hackers] X-ThisMailContainsUnwantedMimeParts: N T24gNy85LzIyIDExOjI2LCBNYXJjIFZlbGRtYW4gd3JvdGU6DQo+IEhlbGxvLA0KPiANCj4g SeKAmW0gd29ya2luZyBvbiBzb21lIGJsdWV0b290aCBjb2RlLCBhbmQgdGhhdCBpbnZvbHZl cyBoYW5kbGluZyAxMjgtYml0IHV1aWRzLg0KPiBUaGVyZSBhcmUgdmFyaW91cyB3YXlzIHRv IGhhbmRsZSBpbiB0aGUgRnJlZUJTRCBjb2RlYmFzZSwgbGlrZSBpbiBzZHAuaDoNCj4gDQo+ IC8qDQo+ICAgKiBTRFAgaW50MTI4L3VpbnQxMjggcGFyYW1ldGVyDQo+ICAgKi8NCj4gICAg ICANCj4gc3RydWN0IGludDEyOCB7DQo+ICAgICAgICAgIGludDhfdCAgYlsxNl07DQo+IH07 DQo+IHR5cGVkZWYgc3RydWN0IGludDEyOCAgIGludDEyOF90Ow0KPiB0eXBlZGVmIHN0cnVj dCBpbnQxMjggICB1aW50MTI4X3Q7DQo+IA0KPiBhbmQgaW4gc3lzL2Rldi9yYW5kb20vdWlu dDEyOC5oDQo+IA0KPiAjaWZkZWYgVVNFX1JFQUxfVUlOVDEyOF9UDQo+IHR5cGVkZWYgX191 aW50MTI4X3QgdWludDEyOF90Ow0KPiAjZGVmaW5lIFVJTlQxMjhfWkVSTyAwVUxMDQo+ICNl bHNlDQo+IHR5cGVkZWYg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