NetBSD/sys/arch/arm/include/bswap.h
thorpej 201e41fc31 * Rename "word" -> 16, and "long" -> 32, as suggested by Ben Harris.
* Replace __byte_swap_32_variable() with a C version from Richard
  Earnshaw that generates nearly identical assembly (and it would be
  exactly identical with the addition of another peephole to GCC ARM
  back-end).
2002-08-14 15:08:57 +00:00

18 lines
348 B
C

/* $NetBSD: bswap.h,v 1.3 2002/08/14 15:08:57 thorpej Exp $ */
#ifndef _MACHINE_BSWAP_H_
#define _MACHINE_BSWAP_H_
#define __BSWAP_RENAME
#include <sys/bswap.h>
#ifdef __GNUC__
#include <arm/byte_swap.h>
#define bswap16(x) __byte_swap_16(x)
#define bswap32(x) __byte_swap_32(x)
#endif /* __GNUC__ */
#endif /* !_MACHINE_BSWAP_H_ */