Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109616
b: refs/heads/master
c: b35de67
h: refs/heads/master
v: v3
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Sep 5, 2008
1 parent 97030e5 commit afc8e69
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: afbc8d8e72daa5a5faf6a0242186bdfcc42b2427
refs/heads/master: b35de672e74ceea6482b4f690ad053aec8465c5d
25 changes: 14 additions & 11 deletions trunk/arch/arm/include/asm/byteorder.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,7 @@
#include <linux/compiler.h>
#include <asm/types.h>

#ifdef __ARMEB__
# define __BIG_ENDIAN
#else
# define __LITTLE_ENDIAN
#endif

#define __SWAB_64_THRU_32__

static inline __attribute_const__ __u32 __arch_swab32(__u32 x)
static inline __attribute_const__ __u32 ___arch__swab32(__u32 x)
{
__u32 t;

Expand All @@ -48,8 +40,19 @@ static inline __attribute_const__ __u32 __arch_swab32(__u32 x)

return x;
}
#define __arch_swab32 __arch_swab32

#include <linux/byteorder.h>
#define __arch__swab32(x) ___arch__swab32(x)

#if !defined(__STRICT_ANSI__) || defined(__KERNEL__)
# define __BYTEORDER_HAS_U64__
# define __SWAB_64_THRU_32__
#endif

#ifdef __ARMEB__
#include <linux/byteorder/big_endian.h>
#else
#include <linux/byteorder/little_endian.h>
#endif

#endif

0 comments on commit afc8e69

Please sign in to comment.