aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/syscons/plasma/fp16.c
Commit message (Collapse)AuthorAgeFilesLines
* sys: Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* Replace the cosine table with a sine table, which (due to the vagaries ofDag-Erling Smørgrav2016-01-021-37/+61
| | | | | | | | | | 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. Notes: svn path=/head/; revision=293049
* 17 years and change after I wrote warp_saver, here's a simple plasma effectDag-Erling Smørgrav2016-01-011-0/+131
(currently only three circular patterns) which requires quite a bit of fixed-point arithmetic, including sqrt() and cos(). Happy New Year! Notes: svn path=/head/; revision=293034