LOVR_RESTRICT -> restrict;

This commit is contained in:
bjorn 2022-03-20 01:56:01 -07:00
parent 0a2c60e5dd
commit dc11e048a2
2 changed files with 1 additions and 3 deletions

View File

@ -11,10 +11,8 @@
#ifdef _MSC_VER
#define LOVR_THREAD_LOCAL __declspec(thread)
#define LOVR_RESTRICT __restrict
#else
#define LOVR_THREAD_LOCAL __thread
#define LOVR_RESTRICT restrict
#endif
#ifndef M_PI

View File

@ -10,7 +10,7 @@ struct Curve {
};
// Explicit curve evaluation, unroll simple cases to avoid pow overhead
static void evaluate(float* LOVR_RESTRICT P, size_t n, float t, vec3 p) {
static void evaluate(float* restrict P, size_t n, float t, vec3 p) {
if (n == 2) {
p[0] = P[0] + (P[4] - P[0]) * t;
p[1] = P[1] + (P[5] - P[1]) * t;