Send MinGW-Notify mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.osdn.me/mailman/listinfo/mingw-notify
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of MinGW-Notify digest..."
Please do not reply to this notification; the sender address is unable to
accept incoming e-mail. If you wish to unsubscribe you can do so at
https://lists.osdn.me/mailman/listinfo/mingw-notify.
Today's Topics:
1. [SCM] mingw-org-wsl (mingw) branch, 5.4-trunk, updated.
b3f510ab65f64fca31e823bbc7fd69eeca7cf1d9 (MinGW Notification List)
2. [mingw] #41597: std::remquo does not yield the proper result
for the quotient (MinGW Notification List)
----------------------------------------------------------------------
Message: 1
Date: Sat, 20 Mar 2021 18:46:22 +0900
From: MinGW Notification List <[email protected]>
To: [email protected]
Subject: [MinGW-Notify] [SCM] mingw-org-wsl (mingw) branch, 5.4-trunk,
updated. b3f510ab65f64fca31e823bbc7fd69eeca7cf1d9
Message-ID: <[email protected]>
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to "mingw-org-wsl" repository
containing the "mingw" project.
The branch, 5.4-trunk has been updated
via b3f510ab65f64fca31e823bbc7fd69eeca7cf1d9 (commit)
via 38a2db63d60bf01e2549443f3b8a5b381b716390 (commit)
from 52b37225c97e8c74f8f3e985dc882f6957af00e1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit b3f510ab65f64fca31e823bbc7fd69eeca7cf1d9
Author: Keith Marshall <[email protected]>
Date: Thu Feb 25 16:21:59 2021 +0000
Consolidate fmod() and remainder() source code.
commit 38a2db63d60bf01e2549443f3b8a5b381b716390
Author: Keith Marshall <[email protected]>
Date: Wed Feb 24 22:17:34 2021 +0000
Correct remquo() quotient computation; cf. MinGW-Bug #41597
-----------------------------------------------------------------------
Summary of changes:
mingwrt/ChangeLog | 26 +++++
mingwrt/Makefile.in | 21 +++-
mingwrt/mingwex/math/fmod_generic.sx.in | 119 +++++++++++++++++++++++
mingwrt/mingwex/math/fmodf.c | 23 -----
mingwrt/mingwex/math/fmodl.c | 22 -----
mingwrt/mingwex/math/remainder.s | 19 ----
mingwrt/mingwex/math/remainderf.s | 19 ----
mingwrt/mingwex/math/remainderl.s | 22 -----
mingwrt/mingwex/math/remquo.s | 38 --------
mingwrt/mingwex/math/remquo_generic.sx | 167 ++++++++++++++++++++++++++++++++
mingwrt/mingwex/math/remquof.s | 38 --------
mingwrt/mingwex/math/remquol.s | 36 -------
12 files changed, 329 insertions(+), 221 deletions(-)
create mode 100644 mingwrt/mingwex/math/fmod_generic.sx.in
delete mode 100644 mingwrt/mingwex/math/fmodf.c
delete mode 100644 mingwrt/mingwex/math/fmodl.c
delete mode 100644 mingwrt/mingwex/math/remainder.s
delete mode 100644 mingwrt/mingwex/math/remainderf.s
delete mode 100644 mingwrt/mingwex/math/remainderl.s
delete mode 100644 mingwrt/mingwex/math/remquo.s
create mode 100644 mingwrt/mingwex/math/remquo_generic.sx
delete mode 100644 mingwrt/mingwex/math/remquof.s
delete mode 100644 mingwrt/mingwex/math/remquol.s
hooks/post-receive
--
mingw-org-wsl (mingw)
------------------------------
Message: 2
Date: Sat, 20 Mar 2021 10:07:02 +0000
From: MinGW Notification List <[email protected]>
To: OSDN Ticket System <[email protected]>
Subject: [MinGW-Notify] [mingw] #41597: std::remquo does not yield the
proper result for the quotient
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8
#41597: std::remquo does not yield the proper result for the quotient
Open Date: 2021-02-17 21:25
Last Update: 2021-03-20 10:07
URL for this Ticket:
https://osdn.net//projects/mingw/ticket/41597
RSS feed for this Ticket:
https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=41597
---------------------------------------------------------------------
Last Changes/Comment on this Ticket:
2021-03-20 10:07 Updated by: keith
* Status Update from Open to Closed
* Resolution Update from None to Fixed
Comment:
I committed #38a2db6, (and related #b3f510a), to resolve this issue. These
changes will be included in the next mingwrt release.
---------------------------------------------------------------------
Ticket Status:
Reporter: avhaecke
Owner: keith
Type: Issues
Status: Closed
Priority: 5 - Medium
MileStone: (None)
Component: WSL
Severity: 5 - Medium
Resolution: Fixed
---------------------------------------------------------------------
Ticket details:
Context :
This problem was encountered with gcc on MinGW in the following version :
gcc.exe (MinGW.org GCC-6.3.0-1) 6.3.0
Description :
The following code :
double numer = 90.1 ; double denom = 90 .0 ; int quot ; double result =
std::remquo(numer, denom, ") ; std::cout << "result " << result <<
std::endl ; std::cout << "quot " << quot << std::endl;should yield :
result 0.1
quot 1
As is expected from std::remquo, quot has a magnitude which should be congruent
(modulo 2 to the nth) to the magnitude of the integral quotient of x/y, n being
greater or equal than 3.
However with gcc 6.3.0, on MinGW, the above instructions yield :
result 0.1
quot 0
On another version of gcc (gcc 4.9.1 2014), the expected behavior is
encountered.
--
Ticket information of MinGW - Minimalist GNU for Windows project
MinGW - Minimalist GNU for Windows Project is hosted on OSDN
Project URL: https://osdn.net/projects/mingw/
OSDN: https://osdn.net
URL for this Ticket:
https://osdn.net/projects/mingw/ticket/41597
RSS feed for this Ticket:
https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=41597
------------------------------
Subject: Digest Footer
_______________________________________________
MinGW-Notify mailing list
[email protected]
https://lists.osdn.me/mailman/listinfo/mingw-notify
------------------------------
End of MinGW-Notify Digest, Vol 42, Issue 5
*******************************************