d846855da8
o In i386's <machine/endian.h>, macros have some advantages over inlines, so change some inlines to macros. o In i386's <machine/endian.h>, ungarbage collect word_swap_int() (previously __uint16_swap_uint32), it has some uses on i386's with PDP endianness. Submitted by: bde o Move a comment up in <machine/endian.h> that was accidentially moved down a few revisions ago. o Reenable userland's use of optimized inline-asm versions of byteorder(3) functions. o Fix ordering of prototypes vs. redefinition of byteorder(3) functions, so that the non-GCC (libc asm) case has proper prototypes. o Add proper prototypes for byteorder(3) functions in <sys/param.h>. o Prevent redundant duplicate prototypes by making use of the _BYTEORDER_PROTOTYPED define. o Move the bswap16(), bswap32(), bswap64() C functions into MD space for platforms in which asm versions don't exist. This significantly reduces the complexity of some things at the cost of duplicate code. Reviewed by: bde |
||
---|---|---|
.. | ||
_inttypes.h | ||
_limits.h | ||
ansi.h | ||
asm.h | ||
atomic.h | ||
bat.h | ||
bootinfo.h | ||
bus.h | ||
clock.h | ||
cpu.h | ||
cpufunc.h | ||
db_machdep.h | ||
elf.h | ||
endian.h | ||
exec.h | ||
fpu.h | ||
frame.h | ||
intr.h | ||
ipl.h | ||
limits.h | ||
md_var.h | ||
mutex.h | ||
openpicreg.h | ||
param.h | ||
pcb.h | ||
pcpu.h | ||
pio.h | ||
pmap.h | ||
powerpc.h | ||
proc.h | ||
psl.h | ||
pte.h | ||
ptrace.h | ||
reg.h | ||
reloc.h | ||
resource.h | ||
setjmp.h | ||
sigframe.h | ||
signal.h | ||
smp.h | ||
sr.h | ||
stdarg.h | ||
trap.h | ||
types.h | ||
ucontext.h | ||
varargs.h | ||
vmparam.h |