medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit e1c519a051704b5b0076e63ce6cc51f9d3ac8389
parent cd7c3877a4d3aea21bd8aa7fd123849179206bd5
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sat Apr  1 00:47:05 +0300

Tidy up is_aligned

Diffstat:
intrinsics.h | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/intrinsics.h b/intrinsics.h @@ -175,14 +175,12 @@ inline To checked_cast( const From & from ) { template< typename T > inline bool is_aligned( const T * ptr ) { -#if PLATFORM_CPP11 - return checked_cast< size_t >( ptr ) % alignof( T ) == 0; -#elif COMPILER_MSVC +#if COMPILER_MSVC return checked_cast< size_t >( ptr ) % __alignof( T ) == 0; -#elif PLATFORM_RELACY +#elif COMPILER_GCCORCLANG return checked_cast< size_t >( ptr ) % __alignof__( T ) == 0; #else -#error new platform +#error new compiler #endif }