On Sat, Jul 27, 2024 at 3:37 PM pifminns deettnta via Gcc
wrote:
>
> using uint_least64_t = __UINT_LEAST64_TYPE__;
>
> uint_least64_t testbswap(uint_least64_t a) noexcept
> {
>return __builtin_bswap64(a);
> }
>
> clang:
> https://godbolt.org/z/z8GTsazf4
>
>
> _Z9testbswapm:
>revb.d $a
Snapshot gcc-14-20240727 is now available on
https://gcc.gnu.org/pub/gcc/snapshots/14-20240727/
and on various mirrors, see https://gcc.gnu.org/mirrors.html for details.
This snapshot has been generated from the GCC 14 git branch
with the following options: git://gcc.gnu.org/git/gcc.git branch
using uint_least64_t = __UINT_LEAST64_TYPE__;
uint_least64_t testbswap(uint_least64_t a) noexcept
{
return __builtin_bswap64(a);
}
clang:
https://godbolt.org/z/z8GTsazf4
_Z9testbswapm:
revb.d $a0, $a0
ret
GCC:
https://godbolt.org/z/PabfxP9ve
_Z9testbswapm:
revb.4h $
Hi Martin,
On Sat, Jul 27, 2024 at 12:59:34AM GMT, Martin Uecker wrote:
> Am Samstag, dem 27.07.2024 um 00:26 +0200 schrieb Alejandro Colomar:
> > On Sat, Jul 27, 2024 at 12:03:20AM GMT, Martin Uecker wrote:
> > > > Maybe if GNU C compilers (GCC and Clang) add it first as an extension,
> > > > add