Files
t3dsr/src/math/mconfig.h
Loïc GUEZO a206ccce6e feat(vec4.c): add few functions
- vec4f_len
- vec4f_norm
- vec4f_lerp
- vec4f_angle
- vec4f_proj
- vec4f_dist
2025-06-22 19:29:45 +02:00

31 lines
509 B
C

// Common math library
#ifndef MCONFIG_H
#define MCONFIG_H
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <float.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))
#else
#define ALIGN16 __attribute__((aligned(16)))
#endif
#endif // MCONFIG_H