Open pprindeville opened 3 years ago
I've not looked at where this is used to see what the impact of the inaccuracy would be.
Being part of driver code, I think the variable is tolerable to have either an imperfect name or a slightly non-standard semantics since it's used only here, and the standard library is certainly too much of a luxury.
I'm looking at this sequence:
and the
CEILING_NEG()
function stands out as being incorrect. The correct definition ofceil()
as defined by:would require this definition instead:
i.e. for any x < 0, the ceiling would therefore be x - fract(x).
That is, the least integer greater than or equal to -5.1 is -5.
More broadly, why not have: