Commit Graph

5 Commits

Author SHA1 Message Date
nmlgc dba448965e [Maintenance] Hidden #include dependency removal: Subpixels
Part of P0284, funded by [Anonymous] and Blue Bolt.
2024-07-09 08:42:09 +02:00
nmlgc e93bd6d11c [Maintenance] [th03] Random number ring buffer: Declare the `_far` instance
Needs capital letters because of the `pascal` calling convention.

Part of P0280, funded by [Anonymous], Blue Bolt, and JonathKane.
2024-04-21 12:48:58 +02:00
nmlgc 000bac9190 [Maintenance] Random number ring buffer: Fix inconsistencies between & and %
Bracketing is hard!

Part of P0242, funded by Yanga.
2023-06-06 21:11:58 +02:00
nmlgc 2c52cc83b1 [Maintenance] Random number ring buffer: Remove `extern "C"`
Didn't expect to cover it this soon, but I'd really like to have a "is
range a power of two" template.

Part of P0242, funded by Yanga.
2023-06-06 21:07:08 +02:00
nmlgc 270d376089 [Maintenance] Add min/max abstractions for constrained random numbers
Way easier to read compared to the mental gymnastics of the original
"offset + range" form, especially since we can also abstract away
subpixels with another layer of wrapper functions. Also brings a bunch
of new speed/angle symmetries to light.

Part of P0190, funded by nrook.
2022-04-30 14:37:23 +02:00