![]() |
|
Message-ID: <20250706210554.GI288056@port70.net> Date: Sun, 6 Jul 2025 23:05:54 +0200 From: Szabolcs Nagy <nsz@...t70.net> To: Damian McGuckin <damianm@....com.au> Cc: MUSL <musl@...ts.openwall.com> Subject: Re: __expo2.c (and __expo2f.c) * Damian McGuckin <damianm@....com.au> [2025-07-06 18:51:01 +1000]: > > Hi, > > These handle exp(x) for the cases where |x| > log(???_MAX) where > ??? is one of DBL or FLT. > > Is there any documentation behind these, that is other than the comments in > the routines themselves? i don't think so. i think the comments should be clear, do you have something in mind? maybe it could say that sign is either +1.0 or -1.0. hyperbolic funcs need exp(x)/2 for large x where exp(x) would overflow hence the __expo2(x,sign) trickery. instead of INSERT_WORDS nowadays i'd probably just write static const double scale = 0x1p1021; /* scale*scale = 2^(k-1) */ > > Thanks - Damian
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.