diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-07-18 20:50:17 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-07-18 20:51:55 -0700 |
commit | 52bbd1ce31f1adf2b7145b9d6183f6b866fa9301 (patch) | |
tree | 08a1fea4fc5655eaf3611c6df6f4e914bd8a8ab4 /autogen.sh | |
parent | 69de4eaa3be6cc177eb53a4754cb6bd35340c585 (diff) |
Store sine & cosine tables as doubles instead of floats
Since they're used as doubles in the calculations, might as well store them
that way instead of converting when read from the table at runtime.
Costs about 4k more storage in the binary for the doubled tables.
Also gets rid of 900 clang warnings, of the form:
Clock.c:1708:11: warning: implicit conversion loses floating-point precision:
'double' to 'float' [-Wconversion]
0.000000, 0.001745, 0.003490, 0.005235, 0.006981, 0.008726, 0.010471, 0.012217,
(one for each table entry)
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'autogen.sh')
0 files changed, 0 insertions, 0 deletions