[email protected] (Niels Möller) writes:
> 3. Big-endian system, no __builtin_bswap64. Here we can either use the
> current code, with byte accesses only. Or attempt to define byteswap
> without builtins and follow 2. I'd lean towards using the current
> code, unless there's some system where something more complicated is
> known to improve performance.
And another possible trick for big-endian is to do an "opposite-endian"
left shift as
((x & 0x7f7f7f7f7f7f7f7f) << 1) | ((x & 0x8080808080808080) >> 15)
where this bit is the carry out ^
Regards,
/Niels
--
Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677.
Internet email is subject to wholesale government surveillance.
_______________________________________________
nettle-bugs mailing list
[email protected]
http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs