summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorcheloha <cheloha@openbsd.org>2017-12-24 16:59:50 +0000
committercheloha <cheloha@openbsd.org>2017-12-24 16:59:50 +0000
commitb1a8839e5db14821f106a980d8ae4fb93549b51f (patch)
tree4746627c6c819f10b5eb58bc52a6a077601a1bcd /sys
parentSomes fixes for the VIA PadLock drivers. (diff)
downloadwireguard-openbsd-b1a8839e5db14821f106a980d8ae4fb93549b51f.tar.xz
wireguard-openbsd-b1a8839e5db14821f106a980d8ae4fb93549b51f.zip
Use more libm.
adj360() is a modulo operation: use fmod(3) to simplify things. Adding 0.5 to the phase to steer implicit truncation is a hack: use lround(3) to simplify things. Product of a discussion with pjanzen@/jca@/tb@ regarding floating-point rounding and the importance of correctly classifying a gibbous moon. ok pjanzen@ jca@ tb@
Diffstat (limited to 'sys')
0 files changed, 0 insertions, 0 deletions