mirror of https://github.com/bjornbytes/lovr.git
LOVR_RESTRICT -> restrict;
This commit is contained in:
parent
0a2c60e5dd
commit
dc11e048a2
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue