Replace lrint(3), lrintf(3), llrint(3) and llrintf(3) implementations with
authorkettenis <kettenis@openbsd.org>
Thu, 14 Oct 2021 21:30:00 +0000 (21:30 +0000)
committerkettenis <kettenis@openbsd.org>
Thu, 14 Oct 2021 21:30:00 +0000 (21:30 +0000)
commite44725a8dd99f82f94f37ecff5c0e710c4dba97e
tree3e03a2540327e90fc63958d5eb264251d9281ab4
parenta047f6f4ac23b12a3f2715c89f5c7882c80df0b0
Replace lrint(3), lrintf(3), llrint(3) and llrintf(3) implementations with
the same implementation that we're already using for lrintl(3) and llrintl(3).
The old implementations were derived from code from NetBSD that didn't pass
the lib/libm/msun/lrint_test regress test.  NetBSD replaced their
implementation with the FreeBSD implementation of this code which we were
already using for lrintl(3) and llrintl(3).  This fixes the regress test.

ok bluhm@, millert@
lib/libm/src/s_llrint.c
lib/libm/src/s_llrintf.c
lib/libm/src/s_lrint.c
lib/libm/src/s_lrintf.c
lib/libm/src/s_lrintl.c