Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260216000342.GH3520958@port70.net>
Date: Mon, 16 Feb 2026 01:03:42 +0100
From: Szabolcs Nagy <nsz@...t70.net>
To: Paul Zimmermann <Paul.Zimmermann@...ia.fr>
Cc: musl@...ts.openwall.com
Subject: Re: Accuracy of Mathematical Functions

* Paul Zimmermann <Paul.Zimmermann@...ia.fr> [2026-02-15 09:18:49 +0100]:
> from a GNU libc 2.43 build, which integrates atanh from CORE-MATH:

ah, i missed this.
good work
thanks

> $ ls -l ./math/e_acosh.o
> -rw-r--r-- 1 zimmerma caramba 57696 Jan 29 14:06 ./math/e_acosh.o

you should use 'size' from binutils to see the
actual code size (or size -A to see .text and
.rodata separately), that's what matters at
runtime. writable data should be 0.

i think up to 4k lookup table is acceptable
per function, beyond that one can start to
worry about tiny vs fast tradeoffs.

> 
> You can find some timings about the integration of acosh in GNU libc here:
> 
> https://sourceware.org/pipermail/libc-alpha/2025-October/170985.html
> 
> (there are similar timings for other functions integrated in GNU libc)
> 
> > eventually it may be worth considering cr in libc.
> 
> Best regards,
> Paul

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.