]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/sparc/fpu/bits/mathdef.h
Test for stack alignment.
[thirdparty/glibc.git] / sysdeps / sparc / fpu / bits / mathdef.h
CommitLineData
a86573f4 1/* Copyright (C) 1997, 1998, 1999, 2000, 2004 Free Software Foundation, Inc.
ca34d7a7
UD
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
41bdb6e2
AJ
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
ca34d7a7
UD
8
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
41bdb6e2 12 Lesser General Public License for more details.
ca34d7a7 13
41bdb6e2
AJ
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, write to the Free
16 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
17 02111-1307 USA. */
ca34d7a7 18
74eee886 19#if !defined _MATH_H && !defined _COMPLEX_H
fe0ec73e 20# error "Never use <bits/mathdef.h> directly; include <math.h> instead"
ca34d7a7
UD
21#endif
22
abfbdde1
UD
23#include <bits/wordsize.h>
24
ca34d7a7
UD
25/* FIXME! This file describes properties of the compiler, not the machine;
26 it should not be part of libc! */
27
b85697f6
UD
28#if defined __USE_ISOC99 && defined _MATH_H && !defined _MATH_H_MATHDEF
29# define _MATH_H_MATHDEF 1
30
74eee886
UD
31# ifdef __GNUC__
32# if __STDC__ == 1
ca34d7a7
UD
33
34/* In GNU or ANSI mode, gcc leaves `float' expressions as-is. */
35typedef float float_t;
36typedef double double_t;
37
74eee886 38# else
ca34d7a7
UD
39
40/* For `gcc -traditional', `float' expressions are evaluated as `double'. */
41typedef double float_t;
42typedef double double_t;
43
74eee886
UD
44# endif
45# else
ca34d7a7
UD
46
47/* Wild guess at types for float_t and double_t. */
48typedef double float_t;
49typedef double double_t;
50
74eee886 51# endif
f41c8091
UD
52
53/* The values returned by `ilogb' for 0 and NaN respectively. */
417bafec
UD
54# define FP_ILOGB0 (-2147483647)
55# define FP_ILOGBNAN (2147483647)
fe0ec73e 56
ec751a23 57#endif /* ISO C99 */
74eee886
UD
58
59#ifndef __NO_LONG_DOUBLE_MATH
abfbdde1
UD
60
61# if __WORDSIZE == 32
62/* Signal that in 32bit ABI we do not really have a `long double'.
63 The disables the declaration of all the `long double' function
64 variants. */
65# define __NO_LONG_DOUBLE_MATH 1
66# endif
67
74eee886 68#endif