23e6278e | 02-Jan-2016 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Replace the cosine table with a sine table, which (due to the vagaries of rounding) has better spread. Implement fp16_sin() to go along with fp16_cos(). In the rendering loop, switch from addition
Replace the cosine table with a sine table, which (due to the vagaries of rounding) has better spread. Implement fp16_sin() to go along with fp16_cos(). In the rendering loop, switch from addition to subtraction so the center of the pattern will be a trough rather than a peak. This is completely arbitrary, of course, but looks better to me.
show more ...
|