mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-16 17:31:51 +03:00
Wrapper for system intrin header
This commit is contained in:
@@ -30,35 +30,10 @@
|
||||
#define UTIL_MATH_H_
|
||||
|
||||
#include "arch.h"
|
||||
#include "intrinsics.h"
|
||||
|
||||
#include <math.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
# if defined(HAVE_CXX_X86INTRIN_H)
|
||||
# define USE_X86INTRIN_H
|
||||
# endif
|
||||
#else // C
|
||||
# if defined(HAVE_C_X86INTRIN_H)
|
||||
# define USE_X86INTRIN_H
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
# if defined(HAVE_CXX_INTRIN_H)
|
||||
# define USE_INTRIN_H
|
||||
# endif
|
||||
#else // C
|
||||
# if defined(HAVE_C_INTRIN_H)
|
||||
# define USE_INTRIN_H
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if defined(USE_X86INTRIN_H)
|
||||
#include <x86intrin.h>
|
||||
#elif defined(USE_INTRIN_H)
|
||||
#include <intrin.h>
|
||||
#endif
|
||||
|
||||
static really_inline
|
||||
double our_pow(double x, double y) {
|
||||
#if defined(HAVE_AVX)
|
||||
|
||||
Reference in New Issue
Block a user