Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200120223726.GQ23985@port70.net>
Date: Mon, 20 Jan 2020 23:37:26 +0100
From: Szabolcs Nagy <nsz@...t70.net>
To: musl@...ts.openwall.com
Subject: [PATCH 0/2] math: fix known directed rounding problems

fix the two known directed rounding bugs in current math code.
(there are still large ulp errors in j0, y0, jn, yn functions,
but all other functions should have small worst case ulp error now)

Szabolcs Nagy (2):
  math: fix __rem_pio2 in non-nearest rounding modes
  math: fix sinh overflows in non-nearest rounding

 src/internal/libm.h    |  4 ++--
 src/math/__expo2.c     |  5 +++--
 src/math/__expo2f.c    |  5 +++--
 src/math/__rem_pio2.c  | 15 ++++++++++++++-
 src/math/__rem_pio2f.c | 13 ++++++++++++-
 src/math/__rem_pio2l.c | 16 +++++++++++++++-
 src/math/cosh.c        |  2 +-
 src/math/coshf.c       |  2 +-
 src/math/sinh.c        |  2 +-
 src/math/sinhf.c       |  2 +-
 10 files changed, 53 insertions(+), 13 deletions(-)

-- 
2.24.1

View attachment "0001-math-fix-__rem_pio2-in-non-nearest-rounding-modes.patch" of type "text/x-diff" (5307 bytes)

View attachment "0002-math-fix-sinh-overflows-in-non-nearest-rounding.patch" of type "text/x-diff" (4362 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.