www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2026/06/06/12:53:44

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 656GrhAW3875928
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 656GrhAW3875928
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=T2G9BujD
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3A8934C3182D
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1780764822;
bh=5GGVT4pKTriOquGDJ4e7GKpW31ndmuI/b3oeAMMlWL4=;
h=References:In-Reply-To:Date:Subject:To:Cc:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
From:Reply-To:From;
b=T2G9BujDp0f2JuEd8vPzP6adPVRKJOTyjqZZbrmRLEAC/GQDv68LiBoE3ZewsWOs5
rK8IzanTK12pnJU5kDSplxAAcdqSwie/s523iVzaTO6haF+xYzJ1NxvohJwTGunrQp
z6Yya6XjnVVycRkGswXwSNXAWwiuTbTAtgkvsEAU=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 797D04BA23C8
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 797D04BA23C8
ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1780764803; cv=pass;
b=RHblTEs18nc/Lcctith0plZP3lCNu4Fzr4UUCjBaeOS1KqmbREIhX0MNtqC/meRDf7bt0aG6oDxKfQ/SmYNz4g2tsOwqlSFRQEPeH+2jgrtrt1LM0niFa0e/Fe7PsyX+W2A59NvuEi/pLUYGAR6T9l8Lelv0q7vd0B9duJEqwWU=
ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key;
t=1780764803; c=relaxed/simple;
bh=h7/VHZjZclNum0GOYAlzNmC7xWCmS7gOyM73rV6GOZE=;
h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
b=qi+PPHtZqcAXyJ7zsgjiXHttSv6OGQiyYkG9lM1QRdlLKeK0sgLHTsjh3/8Z16XgUoVMEkt5/dNVV/MF0T0CT0yRjeB0V9PIiRvqkRYe7YFm1U2Vt7qUV1ny53wUtoFnINuwUOI3K7Og+rfvwNRCtxtGr33AvEF1a/FyojIFoLA=
ARC-Authentication-Results: i=2; sourceware.org;
dkim=pass (2048-bit key, unprotected)
header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104
header.b=jHsMvJSw
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 797D04BA23C8
ARC-Seal: i=1; a=rsa-sha256; t=1780764802; cv=none;
d=google.com; s=arc-20240605;
b=IOkaNaEY3yCfZbvPWVL7/cBy93pLkxSj0709RlCjS3/es8n2r0kE86pRwUG1CUY58H
xOLV62HXaSkxV+RnzFgHqDRm6GCSu5RF8VKoRD6QU1o6nbu1gE/Ronkon8GFB1ZFtnIB
XmfSxBdVw8t6frAM+4k/+BAqcY3fuqhbU2E1tXeU1BUt6v+Zyjm9cA0Zcew6flIrB7WO
SlFxiAxwX6te7W++CjkAj4PdhfJZGyxqOQ6520umOHwBXbZXxR07ic8MkCmcP6xXjSRm
oGFA+9YOTAFAH9IabTzGeJs8tzqfTt3PqoUQV/Szrzw/eQ4jkgXhhUigYWc2QXZ+Fb7s
7SFw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:dkim-signature;
bh=h7/VHZjZclNum0GOYAlzNmC7xWCmS7gOyM73rV6GOZE=;
fh=Ly8ii77EAN8T3P8X7uFN7enMa89Fucbjn6JrHxdxz2M=;
b=gQDXEMBEdsensonpS6Jbost/gDTzK/wOkjDAVUm7AKD0+vgC4GCKZjtQ1cGOiG+vJt
a4yNxpz7inW2FZ+XxmxXEwzzMNmjeddcfa3uh4t4Wj2SAxgTl5W3yWLEXmCG4eza2huC
nfhLAbj7sBxXqLAPm0XFuabsGEcHFedaSYxAl/5nmhPwqPNiGFLLN6vB760yE1ahxjg6
noHHxGjcikMZ9hkjC495SUTBUbIfwJz3z5Ulv/isJvvCm00ZwoFh8oh35mSTD07g/Tt0
KdSIWbmyTOLNR9j70961I7mVLvB9eFyvNZmizJPwo1iP8G0sQgAvYAXDKqNPQCnbrNwV
dlQw==; darn=cygwin.com
ARC-Authentication-Results: i=1; mx.google.com; arc=none
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20251104; t=1780764802; x=1781369602;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to;
bh=h7/VHZjZclNum0GOYAlzNmC7xWCmS7gOyM73rV6GOZE=;
b=OIilBSXRr2ddCH1cqyx9mRqYU9GUNq6KorhUow9A2OqG8Vo0Www6K+eAh7HVMKJ+a2
2SVFEAKuahFPYwA7Lc/hqgCfLLuj6+FIpI7Th9e6aMP6SOmwDioAPTsMLGpqnIYWf8s7
R+bJhUBgwJb6OhH4dPVGbGYjUmZ4NSP4A83pxq0q+EVGmWt/PEIHHc22QR92KG8aIKRX
3OHWV0zH/ptOrYq9IIo5MmdIsz9Rvd0wtHOFT0X4WzNLk148nw0X/3ac1gDmLqP9KgXT
AMAZnJ5+3wkOH5ulwhiLZcFrCWo7OopSNRLDucrTDqd/sp03u5WdR8OVLPYab953ic88
zHrw==
X-Gm-Message-State: AOJu0Yy2adWaf60HI2uMhx2O/b5jhQlkaXh5nXXBs4RlqyzWxlbgiv6T
B3axJNtZefxNzwrqAcHwzYAQqQGaW84vEJIWz8bcJTZrSRB7RYGvzO4w1EKwLe0CvGv/65/O0l1
/dsU3HqY3aO7FpmxG/ZX04j+9UPyUVcc=
X-Gm-Gg: Acq92OHzorPXlGZA1/mHLWSBDCRNjipqJHAQ57tQVd+H/Ttu7Ux8t4hOGOjhwLZpB3r
KpK5bHxZfcxzZKaQC9cOxKek/6sXkMaouLb3Fyc10dsRLWBlnpeDAl4mcBnpgFwvI9HsUwVnT1U
+3Jvhd9tchbM0iBcYYENSmE7CeXbLlR0q/GbvTXYFNYZZNvM1YGOXMiEdvWTRybWX4N61IlAqxz
lcdQM0GkXOz+0aznkfIfeo6WdVUJstcVMylFajQLvXJ2dThwvW/pfbsCorHx4FKO8Vbi27R7IuD
SaKQMSZbn5oT58fYulDBchj3lBNN1TFKmB1/0ihIMyh0Xf8JuKaOHfjOXFVGvO9pECt/j+AnQn4
u8w==
X-Received: by 2002:a05:600c:3b1f:b0:490:b9c3:6c48 with SMTP id
5b1f17b1804b1-490c2621dabmr150051485e9.29.1780764802198; Sat, 06 Jun 2026
09:53:22 -0700 (PDT)
MIME-Version: 1.0
References: <CADt9577cpSu1Ke7xu6mMQgfyfdOg8qFg1YFWRXQ_4NbmJto2Ug AT mail DOT gmail DOT com>
<C907B908-9877-431C-B9AA-50F63ABA581C AT unified-streaming DOT com>
In-Reply-To: <C907B908-9877-431C-B9AA-50F63ABA581C@unified-streaming.com>
Date: Sat, 6 Jun 2026 18:53:11 +0200
X-Gm-Features: AVVi8CfctRjjQXHbXqhydlBEg9xYeM8yHVDnKYuOwaAOA8g3Q9i6Iix0GbRvt58
Message-ID: <CADt9576meHrk_QGyqrXYZuOky_9uA478+tehwjGg38_R6R9xTA@mail.gmail.com>
Subject: Re: log2() is not called for C code, a bug into math.h ?
To: Dimitry Andric <dimitry AT unified-streaming DOT com>
Cc: The Cygwin Mailing List <cygwin AT cygwin DOT com>
X-Content-Filtered-By: Mailman/MimeDel 2.1.30
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
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: "Carlo B. via Cygwin" <cygwin AT cygwin DOT com>
Reply-To: "Carlo B." <carlo DOT bramini AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

Hello,

Il Sab 6 Giu 2026, 14:19 Dimitry Andric <dimitry AT unified-streaming DOT com> ha
scritto:

>
> It's been defined like that since the "import newlib-2000-02-17 snapshot",
> so for 26 years:
>
>
> https://sourceware.org/git/?p=newlib-cygwin.git;a=blob;f=newlib/libc/include/math.h;h=d3f2e99ae4d33596b608225f0349a6d581d265ca;hb=8a0efa53e44919bcf5ccb1d3353618a82afdf8bc#l103
>
> My guess is that at the time, there wasn't yet a separate log2()
> implementation, so this was an easy way to cover that case.
>

Thank you very much for the reply.
So, do you think that it would be possible to remove those lines from
math.h and use the log2() now provided?

Sincerely,

Carlo Bramini


> -Dimitry
>
>

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