diff options
Diffstat (limited to 'tinyusb/common')
| -rw-r--r-- | tinyusb/common/compiler/compiler_gcc.h | 3 | ||||
| -rw-r--r-- | tinyusb/common/compiler/compiler_iar.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tinyusb/common/compiler/compiler_gcc.h b/tinyusb/common/compiler/compiler_gcc.h index b0fff10c0..0202bf314 100644 --- a/tinyusb/common/compiler/compiler_gcc.h +++ b/tinyusb/common/compiler/compiler_gcc.h @@ -132,6 +132,9 @@ // built-in function to convert 32-bit Big-Endian to Little-Endian #define __be2le __builtin_bswap32 +#define __le2be __be2le + +//#define __le2be_16 __builtin_bswap16 /** You can use the built-in function \b __builtin_constant_p to determine if a value is known to be constant at compile time and hence that GCC can perform constant-folding on expressions involving that value. The argument of the function is the value to test. The function returns the integer 1 if the argument is known to be a compile-time constant and 0 if it is not known to be a compile-time constant. A return of 0 does not indicate that the value is not a constant, but merely that GCC cannot prove it is a constant with the specified value of the -O option. diff --git a/tinyusb/common/compiler/compiler_iar.h b/tinyusb/common/compiler/compiler_iar.h index 82f5079df..baba783d8 100644 --- a/tinyusb/common/compiler/compiler_iar.h +++ b/tinyusb/common/compiler/compiler_iar.h @@ -85,6 +85,7 @@ // built-in function to convert 32-bit Big-Endian to Little-Endian #define __be2le __REV +#define __le2be __be2le #if 0 |
