* Comment in ccosh()
@ 2025-07-02 5:17 Damian McGuckin
2025-07-06 21:31 ` [musl] " Szabolcs Nagy
0 siblings, 1 reply; 3+ messages in thread
From: Damian McGuckin @ 2025-07-02 5:17 UTC (permalink / raw)
To: MUSL
There is a comment in ccoshf()
/* x < 88.7: expf(|x|) won't overflow */
where is correct
The equivalent in ccosh() which says:
/* x < 710: exp(|x|) won't overflow */
This is far less concise than the earlier case. More strictly
/* x < 709.78: exp(|x|) won't overflow */
Am I being overly pedantic?
Thanks - Damian
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [musl] Comment in ccosh()
2025-07-02 5:17 Comment in ccosh() Damian McGuckin
@ 2025-07-06 21:31 ` Szabolcs Nagy
2025-07-07 3:16 ` [musl] Re: spam>Re: " Damian McGuckin
0 siblings, 1 reply; 3+ messages in thread
From: Szabolcs Nagy @ 2025-07-06 21:31 UTC (permalink / raw)
To: Damian McGuckin; +Cc: MUSL
* Damian McGuckin <damianm@esi.com.au> [2025-07-02 15:17:20 +1000]:
>
> There is a comment in ccoshf()
>
> /* x < 88.7: expf(|x|) won't overflow */
>
> where is correct
>
> The equivalent in ccosh() which says:
>
> /* x < 710: exp(|x|) won't overflow */
>
> This is far less concise than the earlier case. More strictly
>
> /* x < 709.78: exp(|x|) won't overflow */
>
> Am I being overly pedantic?
i guess the comment is sloppy
i think if you submit such a patch it can be accepted.
(or reword it in another way so it is not actually false)
>
> Thanks - Damian
^ permalink raw reply [flat|nested] 3+ messages in thread
* [musl] Re: spam>Re: [musl] Comment in ccosh()
2025-07-06 21:31 ` [musl] " Szabolcs Nagy
@ 2025-07-07 3:16 ` Damian McGuckin
0 siblings, 0 replies; 3+ messages in thread
From: Damian McGuckin @ 2025-07-07 3:16 UTC (permalink / raw)
To: MUSL
On Sun, 6 Jul 2025, Szabolcs Nagy wrote:
>> Am I being overly pedantic?
>
> i guess the comment is sloppy
>
> i think if you submit such a patch it can be accepted.
>
> (or reword it in another way so it is not actually false)
I will ponder what seems optimal and make a suggestion.
Mind you, MUSL is way in front of GNU libc which simply took comments from
the double version of sinh() and cosh() and used then in the float and
long double variants. So the float routine talks about maxdouble but uses
constants which are related to maxfloat!! And likewise in the long double
routine.
Thanks - Damian
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-07-07 3:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-02 5:17 Comment in ccosh() Damian McGuckin
2025-07-06 21:31 ` [musl] " Szabolcs Nagy
2025-07-07 3:16 ` [musl] Re: spam>Re: " Damian McGuckin
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).