From 0a11c7d48a118e5a42c8853f1d2a5611459f0287 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Lemaire?= Date: Sat, 17 Aug 2013 15:11:49 +0200 Subject: [PATCH] Small noise optimization --- src/rendering/noisesimplex.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rendering/noisesimplex.c b/src/rendering/noisesimplex.c index 6ae4ea4..cfc619d 100644 --- a/src/rendering/noisesimplex.c +++ b/src/rendering/noisesimplex.c @@ -104,17 +104,17 @@ static inline int _fastfloor(double x) return x < xi ? xi - 1 : xi; } -static double _dot2(Grad3 g, double x, double y) +static inline double _dot2(Grad3 g, double x, double y) { return g.x * x + g.y * y; } -static double _dot3(Grad3 g, double x, double y, double z) +static inline double _dot3(Grad3 g, double x, double y, double z) { return g.x * x + g.y * y + g.z * z; } -static double _dot4(Grad4 g, double x, double y, double z, double w) +static inline double _dot4(Grad4 g, double x, double y, double z, double w) { return g.x * x + g.y * y + g.z * z + g.w * w; }