summaryrefslogtreecommitdiffstats
path: root/sys/tmpfs/tmpfs_vfsops.c
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2016-07-11 18:30:21 +0000
committertb <tb@openbsd.org>2016-07-11 18:30:21 +0000
commit62b9314c61c9071ddbc1ae28aea86872b82251e0 (patch)
tree540e2b4dc394bdd66c28cd178118982158db0980 /sys/tmpfs/tmpfs_vfsops.c
parentUse gpio framework to implement hardware reset of the PHY instead of (diff)
downloadwireguard-openbsd-62b9314c61c9071ddbc1ae28aea86872b82251e0.tar.xz
wireguard-openbsd-62b9314c61c9071ddbc1ae28aea86872b82251e0.zip
Instead of using the floating point square root, use an integer version
of the Newton method from ping.c. Fixes a rounding issue that caused failure to factor numbers close to 2^64, e.g. 18446744030759878681. While there, fix an off by one error that caused 4295360521 to be reported as a prime. Issues reported by Paul Stoeber and Michael Bozon. ok tedu, deraadt
Diffstat (limited to 'sys/tmpfs/tmpfs_vfsops.c')
0 files changed, 0 insertions, 0 deletions