]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Clean up x86 endian.h:
authorTijl Coosemans <tijl@FreeBSD.org>
Fri, 9 Mar 2012 11:48:56 +0000 (11:48 +0000)
committerTijl Coosemans <tijl@FreeBSD.org>
Fri, 9 Mar 2012 11:48:56 +0000 (11:48 +0000)
commit050246770776815082ede6a899f445cf252113bf
tree254eb3e1769ef92f96a6d37e2dfafeb054674625
parent9ea99cd3b52708f77c97db7a1ce9898409ffce06
Clean up x86 endian.h:
- Remove extern "C". There are no functions with external linkage here. [1]
- Rename bswapNN_const(x) to bswapNN_gen(x) to indicate that these macros
  are generic implementations that can take non-constant arguments. [1]
- Split up __GNUCLIKE_ASM && __GNUCLIKE_BUILTIN_CONSTANT_P and deal with
  each separately.
- Replace _LP64 with __amd64__ because asm instructions are machine
  dependent, not ABI dependent.

Submitted by: bde [1]
Reviewed by: bde
sys/x86/include/endian.h