This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

One const for mathcalls.h


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]