Fix compilation error when SIMD is not supported.
This commit is contained in:
@ -28,6 +28,12 @@
|
|||||||
|
|
||||||
#include "maths.h"
|
#include "maths.h"
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
# define SQUISH_ALIGN_16 __attribute__ ((__aligned__ (16)))
|
||||||
|
#else
|
||||||
|
# define SQUISH_ALIGN_16 __declspec(align(16))
|
||||||
|
#endif
|
||||||
|
|
||||||
#if SQUISH_USE_ALTIVEC
|
#if SQUISH_USE_ALTIVEC
|
||||||
#include "simd_ve.h"
|
#include "simd_ve.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -35,12 +35,6 @@
|
|||||||
#define SQUISH_SSE_SPLAT( a ) \
|
#define SQUISH_SSE_SPLAT( a ) \
|
||||||
( ( a ) | ( ( a ) << 2 ) | ( ( a ) << 4 ) | ( ( a ) << 6 ) )
|
( ( a ) | ( ( a ) << 2 ) | ( ( a ) << 4 ) | ( ( a ) << 6 ) )
|
||||||
|
|
||||||
#ifdef __GNUC__
|
|
||||||
# define SQUISH_ALIGN_16 __attribute__ ((__aligned__ (16)))
|
|
||||||
#else
|
|
||||||
# define SQUISH_ALIGN_16 __declspec(align(16))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace squish {
|
namespace squish {
|
||||||
|
|
||||||
#define VEC4_CONST( X ) Vec4( _mm_set1_ps( X ) )
|
#define VEC4_CONST( X ) Vec4( _mm_set1_ps( X ) )
|
||||||
|
@ -29,8 +29,6 @@
|
|||||||
#include <altivec.h>
|
#include <altivec.h>
|
||||||
#undef bool
|
#undef bool
|
||||||
|
|
||||||
#define SQUISH_ALIGN_16 __attribute__ ((__aligned__ (16)))
|
|
||||||
|
|
||||||
namespace squish {
|
namespace squish {
|
||||||
|
|
||||||
#define VEC4_CONST( X ) Vec4( ( vector float )( X ) )
|
#define VEC4_CONST( X ) Vec4( ( vector float )( X ) )
|
||||||
|
Reference in New Issue
Block a user