diff options
author | Morten Hustveit <morten.hustveit@gmail.com> | 2014-12-02 15:02:25 -0500 |
---|---|---|
committer | Morten Hustveit <morten.hustveit@gmail.com> | 2014-12-02 15:02:25 -0500 |
commit | ef3f2085ff238469207d099562d61635e1f9e138 (patch) | |
tree | 011caac84c87411857d8d085b0fae052e14b5a9e /3dmath.c | |
parent | 8fdc2a63b118f37fa0bad11be0104296556aa5b0 (diff) |
3dmath.c: Throw restrict on all parameters to sphere_intersect
This saves 3ms / frame on yelena.
Diffstat (limited to '3dmath.c')
-rw-r--r-- | 3dmath.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -19,7 +19,9 @@ normalize(float x[3]) { } float -sphere_intersect(float y[3], float r[3], const float s[3], const float d[3], const float c[3], float R) { +sphere_intersect(float* restrict y, float* restrict r, + const float* restrict s, const float* restrict d, + const float* restrict c, float R) { int i; float D, n[3], t, v[3]; |