Changeset 1509


Ignore:
Timestamp:
Oct 3, 2011, 6:54:16 PM (8 years ago)
Author:
ksherdy
Message:

Added builtin.hpp for compiler specific builtins. Prefer GCC supported builtins, function decorators over ICC.

Location:
trunk/lib
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/config.hpp

    r1508 r1509  
    2323        #elif defined _MSC_VER
    2424                #define IDISA_INLINE          __inline
     25        #elif defined __GNUC__
     26                #define IDISA_INLINE          __inline__
    2527        #elif defined __INTEL_COMPILER
    2628                #define IDISA_INLINE              __inline // See, Intel® C++ Compiler User and Reference Guides
    27         #elif defined __GNUC__
    28                 #define IDISA_INLINE          __inline__
    2929        #else
    3030                #define IDISA_INLINE          inline
     
    4444        #elif defined _MSC_VER
    4545                #define IDISA_ALWAYS_INLINE   __forceinline
     46        #elif defined __GNUC__
     47                #define IDISA_ALWAYS_INLINE   __attribute__((always_inline)) IDISA_INLINE
    4648        #elif defined __INTEL_COMPILER
    4749                #define IDISA_ALWAYS_INLINE     __forceinline // See, Intel® C++ Compiler User and Reference Guides
    48         #elif defined __GNUC__
    49                 #define IDISA_ALWAYS_INLINE   __attribute__((always_inline)) IDISA_INLINE
    5050        #else
    5151                #define IDISA_ALWAYS_INLINE   IDISA_INLINE
Note: See TracChangeset for help on using the changeset viewer.