After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 148893 - RFE: modulo for negative operands
RFE: modulo for negative operands
Status: RESOLVED WONTFIX
Product: glib
Classification: Platform
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2004-07-30 20:29 UTC by Jan Kratochvil
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Implementation (4.79 KB, patch)
2004-07-30 20:31 UTC, Jan Kratochvil
none Details | Review

Description Jan Kratochvil 2004-07-30 20:29:15 UTC
Follow-up to:
http://mail.gnome.org/archives/gtk-devel-list/2004-July/msg00185.html

Support compatible division G_DIV and modulo G_MOD even for negative operands
while G_MOD()>=0 && G_MOD(x,m)<ABS(m).
Comment 1 Jan Kratochvil 2004-07-30 20:31:32 UTC
Created attachment 30094 [details] [review]
Implementation
Comment 2 Matthias Clasen 2004-08-26 00:43:27 UTC
I don't think this is suitable for glib.