diff options
author | Josh Blum <josh@joshknows.com> | 2012-01-31 14:44:35 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2012-01-31 14:44:35 -0800 |
commit | 5b06adb7911727353938df84a0a6b71cda66c95c (patch) | |
tree | ad0040340db02559682164d4f6e134ac019e7dc6 /host/lib/deprecated.cpp | |
parent | e30cf4ec6d3c5e5c83fdb8e4ee39632fdb46c0df (diff) | |
download | uhd-5b06adb7911727353938df84a0a6b71cda66c95c.tar.gz uhd-5b06adb7911727353938df84a0a6b71cda66c95c.tar.bz2 uhd-5b06adb7911727353938df84a0a6b71cda66c95c.zip |
uhd: branch-less round for time spec convert to ticks
This fixes valgrind warnings with branching on unit'd values,
and possible exceptions thrown on bad unit'd values.
As it turns out, sometimes tick_rate was passed unit'd,
however, the value calculated was not of consequence.
Also, iround was overkill because we dont need to handle
negative tick rates or frac seconds, or bounds checking.
Diffstat (limited to 'host/lib/deprecated.cpp')
0 files changed, 0 insertions, 0 deletions