Observations from an old timer playing with 64 bit numbers...

Julian Elischer julian at elischer.org
Tue Jun 22 22:54:25 UTC 2010


On 6/22/10 3:12 PM, Luigi Rizzo wrote:
> On Tue, Jun 22, 2010 at 05:46:02PM -0400, Randall Stewart wrote:
>> Hi all:
>>
>> I have had some fun in my day job playing with exchanging 64bit
>> numbers. Unfortunately
>> there is no ntohll() OR htonll() which would be the logical thing (for
>> us old farts) to use.
>>
>> Yes, I have found htobe64() and friends.. and that would work.. but I
>> still cannot
>> help but feeling we should have the ntohll() and htonll().. for
>> consistency if nothing
>> else.
>>
>> Any objections to this showing up in a head near you soon (speak soon
>> or I will commit
>> the patches to add these ;-D)
>
> strong objection!
> We should instead use names with exact sizes (16,32,64).
> In case you want to use Roman Numbers, 64 would be LXIV :)

Don't know about roman numerals but I'm for using numbers.

hton64 and ntoh64 would be a lot more useful

>
> cheers
> luigi
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"



More information about the freebsd-net mailing list