Change sys/arch/xxx/include/bswap.h to #include machine/byte_swap.h then
sys/bswap.h in order to pick up the MD inline routines and the constant folding definitions in the right order. Code can include either sys/bswap.h or machine/bswap.h with the same effect.
This commit is contained in:
parent
053cdb7697
commit
67d47e0290
|
@ -1,19 +1,13 @@
|
|||
/* $NetBSD: bswap.h,v 1.1 2003/04/26 18:39:38 fvdl Exp $ */
|
||||
/* $NetBSD: bswap.h,v 1.2 2006/01/31 07:49:18 dsl Exp $ */
|
||||
|
||||
/* Written by Manuel Bouyer. Public domain */
|
||||
|
||||
#ifndef _MACHINE_BSWAP_H_
|
||||
#define _MACHINE_BSWAP_H_
|
||||
|
||||
#include <machine/byte_swap.h>
|
||||
|
||||
#define __BSWAP_RENAME
|
||||
#include <sys/bswap.h>
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
||||
#include <machine/byte_swap.h>
|
||||
#define bswap16(x) __byte_swap_word(x)
|
||||
#define bswap32(x) __byte_swap_long(x)
|
||||
|
||||
#endif /* __GNUC__ */
|
||||
|
||||
#endif /* !_MACHINE_BSWAP_H_ */
|
||||
|
|
|
@ -1,17 +1,11 @@
|
|||
/* $NetBSD: bswap.h,v 1.3 2002/08/14 15:08:57 thorpej Exp $ */
|
||||
/* $NetBSD: bswap.h,v 1.4 2006/01/31 07:49:18 dsl Exp $ */
|
||||
|
||||
#ifndef _MACHINE_BSWAP_H_
|
||||
#define _MACHINE_BSWAP_H_
|
||||
|
||||
#include <arm/byte_swap.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_ */
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
/* $NetBSD: bswap.h,v 1.1 2002/07/05 13:31:42 scw Exp $ */
|
||||
/* $NetBSD: bswap.h,v 1.2 2006/01/31 07:49:18 dsl Exp $ */
|
||||
|
||||
#include <sh5/bswap.h>
|
||||
|
|
|
@ -1,19 +1,13 @@
|
|||
/* $NetBSD: bswap.h,v 1.1 2002/06/05 01:04:21 fredette Exp $ */
|
||||
/* $NetBSD: bswap.h,v 1.2 2006/01/31 07:49:18 dsl Exp $ */
|
||||
|
||||
/* Written by Manuel Bouyer. Public domain */
|
||||
|
||||
#ifndef _HPPA_BSWAP_H_
|
||||
#define _HPPA_BSWAP_H_
|
||||
|
||||
#include <machine/byte_swap.h>
|
||||
|
||||
#define __BSWAP_RENAME
|
||||
#include <sys/bswap.h>
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
||||
#include <machine/byte_swap.h>
|
||||
#define bswap16(x) __byte_swap_word(x)
|
||||
#define bswap32(x) __byte_swap_long(x)
|
||||
|
||||
#endif /* __GNUC__ */
|
||||
|
||||
#endif /* !_HPPA_BSWAP_H_ */
|
||||
|
|
|
@ -1,19 +1,13 @@
|
|||
/* $NetBSD: bswap.h,v 1.2 1999/08/21 05:39:52 simonb Exp $ */
|
||||
/* $NetBSD: bswap.h,v 1.3 2006/01/31 07:49:18 dsl Exp $ */
|
||||
|
||||
/* Written by Manuel Bouyer. Public domain */
|
||||
|
||||
#ifndef _MACHINE_BSWAP_H_
|
||||
#define _MACHINE_BSWAP_H_
|
||||
|
||||
#include <machine/byte_swap.h>
|
||||
|
||||
#define __BSWAP_RENAME
|
||||
#include <sys/bswap.h>
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
||||
#include <machine/byte_swap.h>
|
||||
#define bswap16(x) __byte_swap_word(x)
|
||||
#define bswap32(x) __byte_swap_long(x)
|
||||
|
||||
#endif /* __GNUC__ */
|
||||
|
||||
#endif /* !_MACHINE_BSWAP_H_ */
|
||||
|
|
|
@ -1,18 +1,11 @@
|
|||
/* $NetBSD: bswap.h,v 1.3 2001/03/30 20:00:05 leo Exp $ */
|
||||
/* $NetBSD: bswap.h,v 1.4 2006/01/31 07:49:18 dsl Exp $ */
|
||||
|
||||
#ifndef _MACHINE_BSWAP_H_
|
||||
#define _MACHINE_BSWAP_H_
|
||||
|
||||
#include <m68k/byte_swap.h>
|
||||
|
||||
#define __BSWAP_RENAME
|
||||
#include <sys/bswap.h>
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
||||
#include <m68k/byte_swap.h>
|
||||
|
||||
#define bswap16(x) __byte_swap_word(x)
|
||||
#define bswap32(x) __byte_swap_long(x)
|
||||
|
||||
#endif /* __GNUC__ */
|
||||
|
||||
#endif /* !_MACHINE_BSWAP_H_ */
|
||||
|
|
|
@ -1,19 +1,13 @@
|
|||
/* $NetBSD: bswap.h,v 1.4 2005/12/11 12:18:31 christos Exp $ */
|
||||
/* $NetBSD: bswap.h,v 1.5 2006/01/31 07:49:18 dsl Exp $ */
|
||||
|
||||
/* Written by Manuel Bouyer. Public domain */
|
||||
|
||||
#ifndef _MACHINE_BSWAP_H_
|
||||
#define _MACHINE_BSWAP_H_
|
||||
|
||||
#include <machine/byte_swap.h>
|
||||
|
||||
#define __BSWAP_RENAME
|
||||
#include <sys/bswap.h>
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
||||
#include <machine/byte_swap.h>
|
||||
#define bswap16(x) __byte_swap_word(x)
|
||||
#define bswap32(x) __byte_swap_long(x)
|
||||
|
||||
#endif /* __GNUC__ */
|
||||
|
||||
#endif /* !_MACHINE_BSWAP_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: va-sh.h,v 1.5 2002/04/28 17:10:37 uch Exp $ */
|
||||
/* $NetBSD: va-sh.h,v 1.6 2006/01/31 07:49:18 dsl Exp $ */
|
||||
|
||||
/* This is just like the default gvarargs.h
|
||||
except for differences described below. */
|
||||
|
@ -8,7 +8,7 @@
|
|||
#ifndef __GNUC_VA_LIST
|
||||
#define __GNUC_VA_LIST
|
||||
|
||||
#include <machine/endian.h>
|
||||
#include <sys/endian.h>
|
||||
|
||||
#ifdef __SH3E__
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bswap.h,v 1.3 2002/08/30 10:50:06 scw Exp $ */
|
||||
/* $NetBSD: bswap.h,v 1.4 2006/01/31 07:49:19 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 2002 Wasabi Systems, Inc.
|
||||
|
@ -38,16 +38,9 @@
|
|||
#ifndef _SH5_BSWAP_H_
|
||||
#define _SH5_BSWAP_H_
|
||||
|
||||
#include <sh5/byte_swap.h>
|
||||
|
||||
#define __BSWAP_RENAME
|
||||
#include <sys/bswap.h>
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
||||
#include <sh5/byte_swap.h>
|
||||
#define bswap16(x) _sh5_bswap16(x)
|
||||
#define bswap32(x) _sh5_bswap32(x)
|
||||
#define bswap64(x) _sh5_bswap64(x)
|
||||
|
||||
#endif /* __GNUC__ */
|
||||
|
||||
#endif /* _SH5_BSWAP_H_ */
|
||||
|
|
|
@ -1,19 +1,13 @@
|
|||
/* $NetBSD: bswap.h,v 1.3 2000/05/27 16:44:14 ragge Exp $ */
|
||||
/* $NetBSD: bswap.h,v 1.4 2006/01/31 07:49:19 dsl Exp $ */
|
||||
|
||||
/* Written by Manuel Bouyer. Public domain */
|
||||
|
||||
#ifndef _MACHINE_BSWAP_H_
|
||||
#define _MACHINE_BSWAP_H_
|
||||
|
||||
#include <machine/byte_swap.h>
|
||||
|
||||
#define __BSWAP_RENAME
|
||||
#include <sys/bswap.h>
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
||||
#include <machine/byte_swap.h>
|
||||
#define bswap16(x) __byte_swap_word(x)
|
||||
#define bswap32(x) __byte_swap_long(x)
|
||||
|
||||
#endif /* __GNUC__ */
|
||||
|
||||
#endif /* !_MACHINE_BSWAP_H_ */
|
||||
|
|
Loading…
Reference in New Issue