~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to lib/math.in.h

  • Committer: Colin Watson
  • Date: 2013-10-30 15:48:33 UTC
  • mfrom: (8.3.5 sid)
  • Revision ID: cjwatson@canonical.com-20131030154833-xdt6e1yfffqom1c4
merge from Debian 8.21-1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* A GNU-like <math.h>.
2
2
 
3
 
   Copyright (C) 2002-2003, 2007-2012 Free Software Foundation, Inc.
 
3
   Copyright (C) 2002-2003, 2007-2013 Free Software Foundation, Inc.
4
4
 
5
5
   This program is free software: you can redistribute it and/or modify
6
6
   it under the terms of the GNU General Public License as published by
28
28
#ifndef _@GUARD_PREFIX@_MATH_H
29
29
#define _@GUARD_PREFIX@_MATH_H
30
30
 
 
31
_GL_INLINE_HEADER_BEGIN
 
32
#ifndef _GL_MATH_INLINE
 
33
# define _GL_MATH_INLINE _GL_INLINE
 
34
#endif
31
35
 
32
36
/* The definitions of _GL_FUNCDECL_RPL etc. are copied here.  */
33
37
 
78
82
   classification macros with an argument of real-floating (that is,
79
83
   one of float, double, or long double).  */
80
84
#define _GL_WARN_REAL_FLOATING_DECL(func) \
81
 
static inline int                                                   \
 
85
_GL_MATH_INLINE int                                                 \
82
86
rpl_ ## func ## f (float f)                                         \
83
87
{                                                                   \
84
88
  return func (f);                                                  \
85
89
}                                                                   \
86
 
static inline int                                                   \
 
90
_GL_MATH_INLINE int                                                 \
87
91
rpl_ ## func ## d (double d)                                        \
88
92
{                                                                   \
89
93
  return func (d);                                                  \
90
94
}                                                                   \
91
 
static inline int                                                   \
 
95
_GL_MATH_INLINE int                                                 \
92
96
rpl_ ## func ## l (long double l)                                   \
93
97
{                                                                   \
94
98
  return func (l);                                                  \
124
128
  /* The Compaq (ex-DEC) C 6.4 compiler and the Microsoft MSVC 9 compiler
125
129
     choke on the expression 0.0 / 0.0.  */
126
130
#  if defined __DECC || defined _MSC_VER
127
 
static float
 
131
_GL_MATH_INLINE float
128
132
_NaN ()
129
133
{
130
134
  static float zero = 0.0f;
2265
2269
# endif
2266
2270
#endif
2267
2271
 
 
2272
_GL_INLINE_HEADER_END
2268
2273
 
2269
2274
#endif /* _@GUARD_PREFIX@_MATH_H */
2270
2275
#endif /* _@GUARD_PREFIX@_MATH_H */