|
Date: Wed, 8 Jul 2020 00:38:14 +0200 From: Szabolcs Nagy <nsz@...t70.net> To: musl@...ts.openwall.com Subject: [PATCH 0/4] new software sqrt, sqrtf and sqrtl Faster than the old implementation and fixes the missing quad precision sqrt. sqrtf was tested on all inputs, sqrt and sqrtl was tested on random inputs and on near half way cases. code size should be similar to the old implementation, but rodata is increased by a 256 byte lookup table (shared between sqrt, sqrtf and sqrtl). Szabolcs Nagy (4): math: new software sqrt math: new software sqrtf math: add __math_invalidl math: new software sqrtl src/internal/libm.h | 3 + src/math/__math_invalidl.c | 9 ++ src/math/sqrt.c | 320 +++++++++++++++++-------------------- src/math/sqrt_data.c | 19 +++ src/math/sqrt_data.h | 13 ++ src/math/sqrtf.c | 140 ++++++++-------- src/math/sqrtl.c | 254 ++++++++++++++++++++++++++++- 7 files changed, 514 insertions(+), 244 deletions(-) create mode 100644 src/math/__math_invalidl.c create mode 100644 src/math/sqrt_data.c create mode 100644 src/math/sqrt_data.h -- 2.27.0 View attachment "0001-math-new-software-sqrt.patch" of type "text/x-diff" (13291 bytes) View attachment "0002-math-new-software-sqrtf.patch" of type "text/x-diff" (4923 bytes) View attachment "0003-math-add-__math_invalidl.patch" of type "text/x-diff" (1187 bytes) View attachment "0004-math-new-software-sqrtl.patch" of type "text/x-diff" (6834 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.