13
0
livetrax/libs/temporal
Paul Davis 940d8844e3 temporal: fix implementation of Beats::snap_to(), and add variants
::snap_to() was intended to round a Beats value to the nearest multiple
of another Beats value. It did not do that, but instead rounded down.
Worse, it used Beats::operator/ which in turn uses int_div_round(),
which is incorrect for a situation where we need integer truncation.

The changes fix the actual arithmetic and add 2 variant functions so that the
API includes round down, round up and round to nearest.
2021-11-29 21:50:29 -07:00
..
MSVCtemporal
temporal
bbt_time.cc
beats.cc
debug.cc
enums.cc
range.cc
superclock.cc
tempo.cc
test2.cc
test.cc
time.cc
timeline.cc
wscript