diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-12-02 10:48:44 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-12-02 11:42:54 -0800 |
commit | 2cced409304e215ca09bf2946a1d34585f1bb8bd (patch) | |
tree | ff66b1c0d62f86ec95f0f5b054acbed9ae183125 /src/libs/sig/ops_ceil.c | |
parent | 671741c937e615483c2a5cae735272f4f6cbabac (diff) |
modules/rkt: handle all scalar tap types
Previously only FLOAT and DOUBLE were handled, and several module
taps have been created as those types to make them available for
rkt sequencing despite being integers. (book/page for instance)
As more taps get implemented, it'll only become increasingly
silly for everything needing an integer sequenced to be handling
this conversion itself when a generic clamp+truncation would
suffice.
This commit adds such handling of integer taps. No rounding is
performed, nor wrapping on overflow/underflows. Just clamping to
the type's limits as defined by {stdint/float}.h (while at it
I've added clamping of the FLOAT type which technically was
already necessary but ignored).
Future commits will likely switch some FLOAT taps to appropriate
integer types, cleaning up some ad-hoc conversion code in various
modules.
Diffstat (limited to 'src/libs/sig/ops_ceil.c')
0 files changed, 0 insertions, 0 deletions