older compilers do not define __SIZEOF_FLOAT__

pull/1/head
Sebastian Held 2010-04-26 10:22:32 +02:00
parent 885fc8ee26
commit b0d0aba99d
1 changed files with 2 additions and 0 deletions

View File

@ -18,9 +18,11 @@
#ifndef ARRAY_OPS_H #ifndef ARRAY_OPS_H
#define ARRAY_OPS_H #define ARRAY_OPS_H
#ifdef __SIZEOF_FLOAT__
#if __SIZEOF_FLOAT__ != 4 #if __SIZEOF_FLOAT__ != 4
#error wrong size of float #error wrong size of float
#endif #endif
#endif
typedef float v4sf __attribute__ ((vector_size (16))); // vector of four single floats typedef float v4sf __attribute__ ((vector_size (16))); // vector of four single floats