X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 94C8C3861030 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1619365170; bh=HSjKU0V5m6NQcsoQm2+hQNgTEIwNUubRZ5zqASdMNjY=; h=To:Subject:Date:References:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=rUVzopeT6uljy+YU7Uz0j9IAyom4RsPQDt98MMnjz6EaUG5Q+x31oplT/fM9DWSCh VkgrN4rQRHgfOvbQoWWbQ3dG+vU9Y0Ejk+jk4bbXbc7iOzTpNEqI/gakCdX0CZCs08 V02zD9kUBhMyqJtY9MroIzXpGfjJCjGITlTWOSzc= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 55722385802B X-Injected-Via-Gmane: http://gmane.org/ To: cygwin AT cygwin DOT com Subject: Re: hypotl(LDBL_MAX, 0.0L) = inf Date: Sun, 25 Apr 2021 11:39:17 -0400 Message-ID: References: Mime-Version: 1.0 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (cygwin) Cancel-Lock: sha1:6L6DYNhaXdUr203ivN/efbyoTq8= X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_GOODAOL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: airplanemath via Cygwin Reply-To: airplanemath Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" On Mon, Apr 19 2021, Corinna Vinschen via Cygwin wrote: > On Apr 17 10:02, airplanemath via Cygwin wrote: >> Given that hypot(DBL_MAX, 0.0) = DBL_MAX and hypotf(FLT_MAX, 0.0f) = >> FLT_MAX, I suspect this is a problem in hypotl. Am I missing >> something? > > No. This is a bug in newlib's hypotl. Newlib mainly targest embedded > systems and as such wasn't very much interested in long double > arithmetic for a long time. > > Having said that, there's an easier way out for Cygwin: We just use > the hypotl function from Mingw-w64 for Cygwin as well. > > I pushed this patch and uploaded new developer snapshots to > https://cygwin/snapshots/ > > Please give it a try. Thank you. This fixes that problem and a related one for me. > > > Thanks, Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple