delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/10/27/09:52:05

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 95565388A40A
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1603806676;
bh=jEhBFzSdP83oWEQCub3TqoyjmCx/Pg7nAZ9EgiRxu9o=;
h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=eyx1Rf5loxusfGDd/YxhwMoODrECiLJAn/+kq7T6dXzBv1D73QqdaKCYtuZcYE3do
xDZDE+Jm+/C45ib0J5e0vzXyb0/1O0LkHrgzcKVMtE1XbT2Efmr6JPEr8WQW7/HKer
78QHwNVHDjZQ7y2/MLA6REFe0243I1SV/8xz+Qq8=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9F7D5388A40A
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=GHZXN45dBOpteyCYvu8RIYAKY2I8xP2ozkf1AT9SwphyY/KMKCP14EcZKk8ciaWZGiseKUI3WOaUKid8G8qck0ydWXnH3DA6iHKNp3PpXZsaDbMhXKeS5u6bMlxLNWCUNKMWD39GCtf2Da9KfbDWDGcJLNlwuZDar8/Dg/QyUBCyiCoNvk8uc+8qBEzye1JQY+cqQl104RxO74Z2SrjZk0qnFl6IqdZ8LvX0l/dEtyTr8nxI6gxSgaRMU7Vu/9I7VCbQ62d4VBM99qXCfMuAechEimaDGK9Y5I1UGB4+2MJIqYTtvHy8wVaLI2tNTpJGjZ4bupC2f+Zb9Q2oMObTDw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=iHLH35yzszuHWPD3g0rYBj9yDGVME+ToRvnUuFcRmro=;
b=j6hCR4Srvuv2fvEUG/mhXEJI1QJaDKoFlpjeQTUjZ2s6p+J+n6y1KunqgmKDKWELULvUjHGt/emRsMB1JFWRzPHpbbTxVvHFyesAdVasizg0cWReDP2tefjgqgQeTrx5Z/WBZzMOrmZrbunFiZmumhHi7AoM/fSUQGeqHAS2wI/0+it/FdWRZpqX+TVaZVjKhb/KqoQgdhR7L4MI2YF+lKgSoDIbgjqtK3uePhnuLMUm9187CO2AAQGRjA4BYMp5UEdLf5iU+b+apVBstk912db+L0h1g/0s04Nzwparyc40FfD03i8cYhueY5IKtKUbLW4puvfZeHKbqRQHb3uMGA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu;
dkim=pass header.d=cornell.edu; arc=none
Subject: Re: sqrtl behavior inconsistent with sqrt and sqrtf
To: airplanemath <airplanemath AT aol DOT com>, cygwin AT cygwin DOT com
References: <vriulffr2a1e DOT fsf AT mail DOT aol DOT com>
Message-ID: <9585b549-3a7e-fb9a-465f-491235b8683c@cornell.edu>
Date: Tue, 27 Oct 2020 09:51:09 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
Thunderbird/68.12.1
In-Reply-To: <vriulffr2a1e.fsf@mail.aol.com>
X-Originating-IP: [68.175.129.7]
X-ClientProxiedBy: CH2PR14CA0052.namprd14.prod.outlook.com
(2603:10b6:610:56::32) To MN2PR04MB6176.namprd04.prod.outlook.com
(2603:10b6:208:e3::13)
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: d9438df4-621d-49bf-f121-08d87a7f5da7
X-MS-TrafficTypeDiagnostic: MN2PR04MB5856:
X-Microsoft-Antispam-PRVS: <MN2PR04MB5856250A9546D380FFBCEFACD8160 AT MN2PR04MB5856 DOT namprd04 DOT prod DOT outlook DOT com>
X-MS-Oob-TLC-OOBClassifiers: OLM:6430;
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: L/d8UcQLm8xLWxYpmjdp/e89EJbapV/ZIO2QaeqilOiMm2nrGse2/lMOlV9vcX3HZHP0HznNBxZcECvXQhT4UlCWLhli4Qa1kM3mVDoL2smT6L9XhIbwpoyN3PeZkHUAq3GxI628NMCoOGuJ+Yjg1yX7zKs226fatPuM3ivE01a5D+FoUt5r8lhIjJb6ZHYvPkMiidSs3pC0uuhEpOpXLHyh2ojvrYdbGXa/9aM7JSYB7Ce2Q0js7lndZRJCCiZ/fyvZJJPVQSgVHnttqT0cnylhFXZ1fMSvYJCk7sxJatKsogMj9f/l27EflYxptPC5c10Fs3iPATzJlbKukqGIEUZthFKI8L6rESJE9uX3b9XFTAB1m51IiteXy3pFyJWXoPSV9Rue/EhRM0OYGDOuDg==
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:MN2PR04MB6176.namprd04.prod.outlook.com; PTR:; CAT:NONE;
SFS:(4636009)(136003)(39860400002)(396003)(366004)(346002)(376002)(4744005)(36756003)(956004)(2616005)(5660300002)(66476007)(6666004)(66556008)(66946007)(16576012)(52116002)(16526019)(8676002)(478600001)(6486002)(2906002)(53546011)(8936002)(31686004)(186003)(316002)(86362001)(75432002)(26005)(786003)(31696002)(17423001)(43740500002);
DIR:OUT; SFP:1102;
X-MS-Exchange-AntiSpam-MessageData: uqexWE0uEA3Ipd2NzNONHa4/i+8ttEP7rbvDEYQdx1e56+lCf3D1AV5IrSyZyQ2JSMJdsUAPv/DmVDCr9DAvOQm2u0/wdcW+Cf6u/smt9bLmiQGIR6R6bczJyJp7jO8+yG3DYrnkeZwwWUKpYcTdpTYOh8JBaq+JMPrftC/lzIEA3yLPcxTjiIKnJ3iIuoZvTbkupSw4gTlLAaG60KCUhWy1J067yiOBpGKHBf8Kc3B5b03JtqMdh54aXjVeCPdySI9z2gr+1i3eqILVFOgnyVDnCWOe31Gf+ZZ3tULPrD137H2q3LdRK8TZSL7cuDY1g10JH/9rO5mbKEL+aZzicRxq3FgzXWAhVYoisFl1bH1V2MM9DAxJykqF+0qxuoGBACNnQVof3uFbWu3zY+2bV2QroWwO1FF2GkR7Vto9vF32yTQicHgMOislSgjDmC1+z+qd2qsV1ObcHcYZCIhD0K+gcHrESqFx62rksNf/V6gLykD2xYdpUqI+apJhKTHE49j4HNlLNgZWEikzB8rbXG0/g+go34MKqvQqQRzVLb5kfgmZv8mv1F+bXDdBjM4SiO7+jGqXwIHu8tQQLQsvChSEIRStO8ePipZe5OorvvDEIylpq/kXM1OfkY01orXRXgzzaHbKrh9oWS4beRY0xQ==
X-OriginatorOrg: cornell.edu
X-MS-Exchange-CrossTenant-Network-Message-Id: d9438df4-621d-49bf-f121-08d87a7f5da7
X-MS-Exchange-CrossTenant-AuthSource: MN2PR04MB6176.namprd04.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2020 13:51:12.5216 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 5d7e4366-1b9b-45cf-8e79-b14b27df46e1
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: B4f7pZIvrFOXN4CL5UtNzrH35n8VK1aaRr5SwYeqKrPZSmvmbthBJR2UNxqBnjLSNnX4MFlIC7xMYLGkjcUUBw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR04MB5856
X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, MSGID_FROM_MTA_HEADER, NICE_REPLY_A,
RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, 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 <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Ken Brown via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Ken Brown <kbrown AT cornell DOT edu>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

On 10/27/2020 7:17 AM, airplanemath via Cygwin wrote:
> Compiling and running the attached program with the command line below
> produces the output below:
> 
> 
> 
> $ gcc -O0 -Og test_sqrt.c -o test_sqrt && ./test_sqrt
> Long double: -inf -inf
> Double:      -inf -nan
> Float:       -inf -nan
> 
> I suspect the behavior for long double should be the same as for double
> and float (sqrt(-inf) = nan), but I'm not sure where to change that.
> I'm running a snapshot of Cygwin 3.2.0, if that's important.

This is again a bug in the mingw-w64 math code that was imported into Cygwin. 
I'll send a fix to the cygwin-patches list.

Ken
--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019