From 771a4335c707875e53349c5292e193744e852b37 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Tue, 19 Feb 2013 12:40:38 -0500 Subject: Add rint(), correct round() --- mathfuncs_sin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mathfuncs_sin.h') diff --git a/mathfuncs_sin.h b/mathfuncs_sin.h index 035513f..2c94e1e 100644 --- a/mathfuncs_sin.h +++ b/mathfuncs_sin.h @@ -18,7 +18,7 @@ namespace vecmathlib { x *= RV(1.0/(2.0*M_PI)); // Reduce range: sin(x) = sin(x + 2pi) - x -= round(x); + x -= rint(x); VML_ASSERT(all(x >= RV(-0.5) && x <= RV(+0.5))); // Reduce range: sin(x) = -sin(-x) -- cgit v1.1