mirror of
https://github.com/guezoloic/t3dsr.git
synced 2026-01-25 15:34:24 +00:00
refactor: rename common_math.h to mconfig.h
This commit is contained in:
31
src/math/mconfig.h
Normal file
31
src/math/mconfig.h
Normal file
@@ -0,0 +1,31 @@
|
||||
// Common math library
|
||||
|
||||
#ifndef MCONFIG_H
|
||||
#define MCONFIG_H
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
|
||||
#if defined(__x86_64__) || defined(__i386__)
|
||||
#define SIMD_X86
|
||||
#include <xmmintrin.h>
|
||||
|
||||
#elif defined(__aarch64__) || defined(__arm64__)
|
||||
#define SIMD_ARCH
|
||||
#include <arm_neon.h>
|
||||
|
||||
#else
|
||||
#define SIMD_NONE
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define ALIGN16 __declspec(align(16))
|
||||
#define RESTRICT __restrict__
|
||||
#else
|
||||
#define ALIGN16 __attribute__((aligned(16)))
|
||||
#define RESTRICT __restrict
|
||||
#endif
|
||||
|
||||
#endif // MCONFIG_H
|
||||
Reference in New Issue
Block a user