From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.linux.lib.musl.general/22176 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Damian McGuckin Newsgroups: gmane.linux.lib.musl.general Subject: Comment in ccosh() Date: Wed, 2 Jul 2025 15:17:20 +1000 (AEST) Message-ID: Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29291"; mail-complaints-to="usenet@ciao.gmane.io" To: MUSL Original-X-From: musl-return-22196-gllmg-musl=m.gmane-mx.org@lists.openwall.com Wed Jul 02 07:17:51 2025 Return-path: Envelope-to: gllmg-musl@m.gmane-mx.org Original-Received: from second.openwall.net ([193.110.157.125]) by ciao.gmane.io with smtp (Exim 4.92) (envelope-from ) id 1uWpqv-0007Wy-Tv for gllmg-musl@m.gmane-mx.org; Wed, 02 Jul 2025 07:17:49 +0200 Original-Received: (qmail 28602 invoked by uid 550); 2 Jul 2025 05:17:41 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: x-ms-reactions: disallow Original-Received: (qmail 28526 invoked from network); 2 Jul 2025 05:17:41 -0000 Xref: news.gmane.io gmane.linux.lib.musl.general:22176 Archived-At: 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