round is const function
Andreas Jaeger
aj@suse.de
Mon Jan 13 04:59:00 GMT 2003
round is a const function, ok to commit the appended patch?
Andreas
2003-01-12 Andreas Jaeger <aj@suse.de>
* math/bits/mathcalls.h: Round is a const function.
============================================================
Index: math/bits/mathcalls.h
--- math/bits/mathcalls.h 28 Aug 2002 08:01:09 -0000 1.19
+++ math/bits/mathcalls.h 12 Jan 2003 12:37:28 -0000
@@ -307,7 +307,7 @@ __MATHCALL (nearbyint,, (_Mdouble_ __x))
/* Round X to nearest integral value, rounding halfway cases away from
zero. */
-__MATHCALL (round,, (_Mdouble_ __x));
+__MATHCALLX (round,, (_Mdouble_ __x), (__const__));
/* Round X to the integral value in floating-point format nearest but
not larger in magnitude. */
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj
More information about the Libc-hacker
mailing list