This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
a minor mistake in div.c comment?
- From: Can Finner <can dot finner at gmail dot com>
- To: newlib at sourceware dot org
- Date: Wed, 13 Jul 2011 19:25:16 +0800
- Subject: a minor mistake in div.c comment?
Hi,
in newlib/libc/div.c, there is following comment words:
* r.rem will have the same sign as denom and the opposite
* sign of num; if both are negative and r.quot has been
* truncated towards -inf, r.rem will be positive (will
^----------------------------------
* have the opposite sign of num).
should it be "+inf"? or did I take it wrong?
Thanks very much.
--
Regards.