You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include<simdconfig.h>
|
|
|
|
|
|
|
|
/* Yes, I do know that arr[4] decays into a pointer
|
|
|
|
* as a function argument. Don't do this in real code
|
|
|
|
* but for this test it is ok.
|
|
|
|
*/
|
|
|
|
|
|
|
|
void increment_fallback(float arr[4]);
|
|
|
|
|
|
|
|
#if HAVE_MMX
|
|
|
|
int mmx_available();
|
|
|
|
void increment_mmx(float arr[4]);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if HAVE_SSE
|
|
|
|
int sse_available();
|
|
|
|
void increment_sse(float arr[4]);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if HAVE_SSE2
|
|
|
|
int sse2_available();
|
|
|
|
void increment_sse2(float arr[4]);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if HAVE_SSE3
|
|
|
|
int sse3_available();
|
|
|
|
void increment_sse3(float arr[4]);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if HAVE_AVX
|
|
|
|
int avx_available();
|
|
|
|
void increment_avx(float arr[4]);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if HAVE_AVX2
|
|
|
|
int avx2_available();
|
|
|
|
void increment_avx2(float arr[4]);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if HAVE_THUMB
|
|
|
|
int thumb_available();
|
|
|
|
void increment_thumb(float arr[4]);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if HAVE_ALTIVEC
|
|
|
|
int altivec_available();
|
|
|
|
void increment_altivec(float arr[4]);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* And so on. */
|