This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/16459] endian.h does not define byte-order conversion functions


http://sourceware.org/bugzilla/show_bug.cgi?id=16459

--- Comment #3 from Ondrej Bilka <neleai at seznam dot cz> ---
There is flexibility that we could use a function-like macro instead
function. If this needs fixing then by changing pattern

 #   define htobe64(x) __bswap_64 (x)
 #   define htole64(x) (x)

to


 #   define htobe64 __bswap_64
 #   define htole64 __bkeep_64

where __bkeep_64 is a identity function like

static uint64_t
__bkeep_64 (uint64_t x)
{
  return x;
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]