Check compiler architecture flags in one place

This commit is contained in:
Matthew Barr
2017-03-29 16:39:16 +11:00
parent 5fe524fbb3
commit 8201183138
31 changed files with 203 additions and 109 deletions

View File

@@ -29,6 +29,8 @@
#ifndef UTIL_MATH_H_
#define UTIL_MATH_H_
#include "arch.h"
#include <math.h>
#ifdef __cplusplus
@@ -59,7 +61,7 @@
static really_inline
double our_pow(double x, double y) {
#if defined(__AVX__)
#if defined(HAVE_AVX)
/*
* Clear the upper half of AVX registers before calling into the math lib.
* On some versions of glibc this can save thousands of AVX-to-SSE