Ignore:
Timestamp:
Feb 15, 2012, 10:13:59 AM (7 years ago)
Author:
nmedfort
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/bitblock.hpp

    r1932 r1933  
    2525#endif
    2626#define ATTRIBUTE_SIMD_ALIGN __attribute__((aligned(sizeof(BitBlock))))
    27 #define ASSERT_BITBLOCK_ALIGN(v) assert(0 == (((uint64_t)(&v)) & (sizeof(BitBlock)-1)) )
     27#ifndef ATTRIBUTE_SIMD_ALIGN
     28    #if defined _MSC_VER
     29        //note: MSVC++ cannot accept sizeof or division within __declspec(align(...))
     30        #define ATTRIBUTE_SIMD_ALIGN __declspec(align(16))
     31    #elif defined __GNUC__
     32        #define ATTRIBUTE_SIMD_ALIGN __attribute__((aligned(sizeof(BitBlock))))
     33    #else
     34        #define ATTRIBUTE_SIMD_ALIGN
     35    #endif
     36#endif
    2837
    2938template<class T> void print_register(const char * var_name, T v);
Note: See TracChangeset for help on using the changeset viewer.