Skip to content

Commit

Permalink
[PATCH] powerpc: merge byteorder.h
Browse files Browse the repository at this point in the history
powerpc: Merge byteorder.h

Essentially adopts the 64-bit version of this file.  The 32-bit version had
been using unsigned ints for arguments/return values that were actually
only 16 bits - the new file uses __u16 for these items as in the 64-bit
version of the header.  The order of some of the asm constraints
in the 64-bit version was slightly different than the 32-bit version,
but they produce identical code.

Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Becky Bruce authored and Paul Mackerras committed Sep 28, 2005
1 parent 6b67f62 commit a559c91
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 80 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _PPC64_BYTEORDER_H
#define _PPC64_BYTEORDER_H
#ifndef _ASM_POWERPC_BYTEORDER_H
#define _ASM_POWERPC_BYTEORDER_H

/*
* This program is free software; you can redistribute it and/or
Expand Down Expand Up @@ -77,10 +77,13 @@ static __inline__ __attribute_const__ __u32 ___arch__swab32(__u32 value)

#ifndef __STRICT_ANSI__
#define __BYTEORDER_HAS_U64__
#endif
#ifndef __powerpc64__
#define __SWAB_64_THRU_32__
#endif /* __powerpc64__ */
#endif /* __STRICT_ANSI__ */

#endif /* __GNUC__ */

#include <linux/byteorder/big_endian.h>

#endif /* _PPC64_BYTEORDER_H */
#endif /* _ASM_POWERPC_BYTEORDER_H */
76 changes: 0 additions & 76 deletions include/asm-ppc/byteorder.h

This file was deleted.

0 comments on commit a559c91

Please sign in to comment.