X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/0c2ad9eb349e1a5676468af3b407329dde4a53b4..e9029d49d5455ec146d2e87436d43d747d6c657a:/LUFA/Common/CompilerSpecific.h diff --git a/LUFA/Common/CompilerSpecific.h b/LUFA/Common/CompilerSpecific.h index 6b4826aa5..96d37cd74 100644 --- a/LUFA/Common/CompilerSpecific.h +++ b/LUFA/Common/CompilerSpecific.h @@ -29,7 +29,7 @@ */ /** \file - * \brief Compiler specific macros for code optimization and correctness. + * \brief Compiler specific definitions for code optimization and correctness. * * \copydetails Group_CompilerSpecific * @@ -38,10 +38,10 @@ */ /** \ingroup Group_Common - * \defgroup Group_CompilerSpecific Compiler Specific Macros - * \brief Compiler specific macros for code optimization and correctness. + * \defgroup Group_CompilerSpecific Compiler Specific Definitions + * \brief Compiler specific definitions for code optimization and correctness. * - * Compiler specific macros to expose certain compiler features which may increase the level of code optimization + * Compiler specific definitions to expose certain compiler features which may increase the level of code optimization * for a specific compiler, or correct certain issues that may be present such as memory barriers for use in conjunction * with atomic variable access. * @@ -70,26 +70,26 @@ * * \param[in, out] StructPtr Pointer to a structure which is to be forced into indirect access mode. */ - #define GCC_FORCE_POINTER_ACCESS(StructPtr) __asm__ __volatile__("" : "=b" (StructPtr) : "0" (StructPtr)) + #define GCC_FORCE_POINTER_ACCESS(StructPtr) __asm__ __volatile__("" : "=b" (StructPtr) : "0" (StructPtr)) /** Forces GCC to create a memory barrier, ensuring that memory accesses are not reordered past the barrier point. * This can be used before ordering-critical operations, to ensure that the compiler does not re-order the resulting * assembly output in an unexpected manner on sections of code that are ordering-specific. */ - #define GCC_MEMORY_BARRIER() __asm__ __volatile__("" ::: "memory"); + #define GCC_MEMORY_BARRIER() __asm__ __volatile__("" ::: "memory"); /** Evaluates to boolean true if the specified value can be determined at compile time to be a constant value * when compiling under GCC. * * \param[in] x Value to check compile time constantness of. * - * \return Boolean true if the given value is known to be a compile time constant. + * \return Boolean true if the given value is known to be a compile time constant, false otherwise. */ - #define GCC_IS_COMPILE_CONST(x) __builtin_constant_p(x) + #define GCC_IS_COMPILE_CONST(x) __builtin_constant_p(x) #else #define GCC_FORCE_POINTER_ACCESS(StructPtr) #define GCC_MEMORY_BARRIER() - #define GCC_IS_COMPILE_CONST(x) 0 + #define GCC_IS_COMPILE_CONST(x) 0 #endif #endif