Re: endian.h

2024-05-12 Thread Bruno Haible
Collin Funk wrote: > Does glibc take bug reports for that or is it waiting for the > specification to be official (i.e. not a draft)? glibc often implements new functionalities from the standards ahead of time. (Look at Joseph Myers' commits in glibc.) The reasoning is the same as the one I gave i

Re: endian.h

2024-05-05 Thread Bruno Haible
> > plus functions or macros: > > > > uint16_t be16toh (uint16_t); > > uint16_t htobe16 (uint16_t); > > > > I could try to work on that if it seems useful to anyone else. For the implementation of these functions, maybe the existing Gnulib module 'byteswap' is interesting. Bruno