-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PATCH] ARM: Remove gcc type-isms from GCC helper functions
Convert ugly GCC types to Linux types: UQImode -> u8 SImode -> s32 USImode -> u32 DImode -> s64 UDImode -> u64 word_type -> int Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
- Loading branch information
Russell King
committed
Jun 20, 2005
1 parent
34c8eac
commit f29481c
Showing
8 changed files
with
90 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,20 @@ | ||
/* gcclib.h -- definitions for various functions 'borrowed' from gcc-2.95.3 */ | ||
/* I Molton 29/07/01 */ | ||
|
||
#define BITS_PER_UNIT 8 | ||
#define SI_TYPE_SIZE (sizeof (SItype) * BITS_PER_UNIT) | ||
#include <linux/types.h> | ||
|
||
typedef unsigned int UQItype __attribute__ ((mode (QI))); | ||
typedef int SItype __attribute__ ((mode (SI))); | ||
typedef unsigned int USItype __attribute__ ((mode (SI))); | ||
typedef int DItype __attribute__ ((mode (DI))); | ||
typedef int word_type __attribute__ ((mode (__word__))); | ||
typedef unsigned int UDItype __attribute__ ((mode (DI))); | ||
#define BITS_PER_UNIT 8 | ||
#define SI_TYPE_SIZE (sizeof(s32) * BITS_PER_UNIT) | ||
|
||
#ifdef __ARMEB__ | ||
struct DIstruct {SItype high, low;}; | ||
struct DIstruct {s32 high, low;}; | ||
#else | ||
struct DIstruct {SItype low, high;}; | ||
struct DIstruct {s32 low, high;}; | ||
#endif | ||
|
||
typedef union | ||
{ | ||
struct DIstruct s; | ||
DItype ll; | ||
s64 ll; | ||
} DIunion; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.