summaryrefslogtreecommitdiff
path: root/lib/math
diff options
context:
space:
mode:
authorS. Gilles <sgilles@math.umd.edu>2018-06-28 12:33:15 -0400
committerS. Gilles <sgilles@math.umd.edu>2018-06-28 12:33:15 -0400
commitefe187d5a1f48ec5ce18def10bab78c8d23daae6 (patch)
tree540810f7e1a6f86bfc3822725ed9aede26c88f10 /lib/math
parent0a90d87daea7bf0a97dfc7d65cc1ef0ae9806c30 (diff)
downloadmc-efe187d5a1f48ec5ce18def10bab78c8d23daae6.tar.gz
Initialize variables (fallout from upstream merge?).
Diffstat (limited to 'lib/math')
-rw-r--r--lib/math/sin-impl.myr8
-rw-r--r--lib/math/test/sin-impl.myr2
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/math/sin-impl.myr b/lib/math/sin-impl.myr
index ed91888..8189d3e 100644
--- a/lib/math/sin-impl.myr
+++ b/lib/math/sin-impl.myr
@@ -635,10 +635,10 @@ const huge_reduce_2pi = {x : flt64
with a heck of a lot of precision.
*/
var j : uint64 = (e - 25 : uint64) / 50
- var xa : flt64, xb : flt64, xc : flt64
- var a1 : flt64, a2 : flt64, a3 : flt64
- var b1 : flt64, b2 : flt64, b3 : flt64
- var c1 : flt64, c2 : flt64, c3 : flt64
+ var xa : flt64 = 0.0, xb : flt64 = 0.0, xc : flt64 = 0.0
+ var a1 : flt64 = 0.0, a2 : flt64 = 0.0, a3 : flt64 = 0.0
+ var b1 : flt64 = 0.0, b2 : flt64 = 0.0, b3 : flt64 = 0.0
+ var c1 : flt64 = 0.0, c2 : flt64 = 0.0, c3 : flt64 = 0.0
var u1 : uint64, u2 : uint64, u3 : uint64
var xcur = x
diff --git a/lib/math/test/sin-impl.myr b/lib/math/test/sin-impl.myr
index 398da48..3bee8fe 100644
--- a/lib/math/test/sin-impl.myr
+++ b/lib/math/test/sin-impl.myr
@@ -72,6 +72,8 @@ const sincos02 = {c
(0x0000000000000000, 0x0000000000000000, 0x3ff0000000000000),
(0x4100000000000000, 0xbfeff8bd7b10d6b0, 0x3fa58ced65ec8b50),
(0x4b01000000000000, 0xbfe3e9527dc75f12, 0x3fe90cf80997c963),
+ (0x4b11000000000000, 0xbfef2cb48ed49aa6, 0x3fcce246843789ad),
+ //(0x020400000a0c0000, 0x020400000a0c0000, 0x3ff0000000000000),
][:]
for (x, ys, yc) : inputs