One const for mathcalls.h
Andreas Jaeger
aj@suse.de
Sun Nov 10 07:28:00 GMT 2002
round is a const function, ok to commit the appended patch?
Andreas
2002-11-10 Andreas Jaeger <aj@suse.de>
* math/bits/mathcalls.h: Add const attribute for round.
============================================================
Index: math/bits/mathcalls.h
--- math/bits/mathcalls.h 28 Aug 2002 08:01:09 -0000 1.19
+++ math/bits/mathcalls.h 10 Nov 2002 15:27:22 -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));
+__MATHCALL (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