aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Common/Endianness.h
diff options
context:
space:
mode:
authorStefan Hellermann <stefan@the2masters.de>2015-09-30 10:20:35 +0200
committerStefan Hellermann <stefan@the2masters.de>2015-09-30 10:20:35 +0200
commit43d993e1f67011a0c2a29da0ef793a01dc2dac82 (patch)
treebe892c3f054b60bcb23b1d28440eb635302a7787 /LUFA/Common/Endianness.h
parent7638128d47f90dafbbf8bc2454971afd726e005e (diff)
downloadlufa-43d993e1f67011a0c2a29da0ef793a01dc2dac82.tar.gz
lufa-43d993e1f67011a0c2a29da0ef793a01dc2dac82.tar.bz2
lufa-43d993e1f67011a0c2a29da0ef793a01dc2dac82.zip
Add ATTR_ALWAYS_INLINE to Endianess helper functions to optimize generated code
Saves 68 Byte on RNDIS LowLevel Demo Saves 48 Byte on RNDIS ClassDriver Demo
Diffstat (limited to 'LUFA/Common/Endianness.h')
-rw-r--r--LUFA/Common/Endianness.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/LUFA/Common/Endianness.h b/LUFA/Common/Endianness.h
index 865a767b6..ea6c182fb 100644
--- a/LUFA/Common/Endianness.h
+++ b/LUFA/Common/Endianness.h
@@ -397,7 +397,7 @@
*
* \return Input data with the individual bytes reversed.
*/
- static inline uint16_t SwapEndian_16(const uint16_t Word) ATTR_WARN_UNUSED_RESULT ATTR_CONST;
+ static inline uint16_t SwapEndian_16(const uint16_t Word) ATTR_WARN_UNUSED_RESULT ATTR_CONST ATTR_ALWAYS_INLINE;
static inline uint16_t SwapEndian_16(const uint16_t Word)
{
if (GCC_IS_COMPILE_CONST(Word))
@@ -428,7 +428,7 @@
*
* \return Input data with the individual bytes reversed.
*/
- static inline uint32_t SwapEndian_32(const uint32_t DWord) ATTR_WARN_UNUSED_RESULT ATTR_CONST;
+ static inline uint32_t SwapEndian_32(const uint32_t DWord) ATTR_WARN_UNUSED_RESULT ATTR_CONST ATTR_ALWAYS_INLINE;
static inline uint32_t SwapEndian_32(const uint32_t DWord)
{
if (GCC_IS_COMPILE_CONST(DWord))