Build: Update to latest DMBS version.
[pub/lufa.git] / LUFA / Common / Endianness.h
index 2eb3ad0..f07f4a2 100644 (file)
@@ -1,13 +1,13 @@
 /*
              LUFA Library
 /*
              LUFA Library
-     Copyright (C) Dean Camera, 2014.
+     Copyright (C) Dean Camera, 2020.
 
   dean [at] fourwalledcubicle [dot] com
            www.lufa-lib.org
 */
 
 /*
 
   dean [at] fourwalledcubicle [dot] com
            www.lufa-lib.org
 */
 
 /*
-  Copyright 2014  Dean Camera (dean [at] fourwalledcubicle [dot] com)
+  Copyright 2020  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 
   Permission to use, copy, modify, distribute, and sell this
   software and its documentation for any purpose is hereby granted
 
   Permission to use, copy, modify, distribute, and sell this
   software and its documentation for any purpose is hereby granted
                                #define CPU_TO_BE32(x)           (x)
                        #elif !defined(le16_to_cpu)
                                /** \name Run-time endianness conversion */
                                #define CPU_TO_BE32(x)           (x)
                        #elif !defined(le16_to_cpu)
                                /** \name Run-time endianness conversion */
-                               //@{
+                               /**@{*/
 
                                /** Performs a conversion between a Little Endian encoded 16-bit piece of data and the
                                 *  Endianness of the currently selected CPU architecture.
 
                                /** Performs a conversion between a Little Endian encoded 16-bit piece of data and the
                                 *  Endianness of the currently selected CPU architecture.
                                 */
                                #define cpu_to_be32(x)           SwapEndian_32(x)
 
                                 */
                                #define cpu_to_be32(x)           SwapEndian_32(x)
 
-                               //@}
+                               /**@}*/
 
                                /** \name Compile-time endianness conversion */
 
                                /** \name Compile-time endianness conversion */
-                               //@{
+                               /**@{*/
 
                                /** Performs a conversion between a Little Endian encoded 16-bit piece of data and the
                                 *  Endianness of the currently selected CPU architecture.
 
                                /** Performs a conversion between a Little Endian encoded 16-bit piece of data and the
                                 *  Endianness of the currently selected CPU architecture.
                                 */
                                #define CPU_TO_BE32(x)           SWAPENDIAN_32(x)
 
                                 */
                                #define CPU_TO_BE32(x)           SWAPENDIAN_32(x)
 
-                               //! @}
+                               /**@}*/
                        #endif
 
                /* Inline Functions: */
                        #endif
 
                /* Inline Functions: */
                         *
                         *  \return Input data with the individual bytes reversed.
                         */
                         *
                         *  \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))
                        static inline uint16_t SwapEndian_16(const uint16_t Word)
                        {
                                if (GCC_IS_COMPILE_CONST(Word))
                         *
                         *  \return Input data with the individual bytes reversed.
                         */
                         *
                         *  \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))
                        static inline uint32_t SwapEndian_32(const uint32_t DWord)
                        {
                                if (GCC_IS_COMPILE_CONST(DWord))