2010-11-09 03:38:03 +00:00
|
|
|
|
// This code is in the public domain -- Ignacio Casta<74>o <castano@gmail.com>
|
|
|
|
|
|
|
|
|
|
#include "Vector.h" // Vector3, Vector4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Set some reasonable defaults.
|
|
|
|
|
#ifndef NV_USE_ALTIVEC
|
2010-11-09 19:34:45 +00:00
|
|
|
|
# define NV_USE_ALTIVEC NV_CPU_PPC
|
2010-11-09 03:38:03 +00:00
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifndef NV_USE_SSE
|
|
|
|
|
# if NV_CPU_X86 || NV_CPU_X86_64
|
|
|
|
|
# define NV_USE_SSE 2
|
|
|
|
|
# endif
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if NV_USE_ALTIVEC
|
|
|
|
|
# include "SimdVector_VE.h"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if NV_USE_SSE
|
|
|
|
|
# include "SimdVector_SSE.h"
|
|
|
|
|
#endif
|