annotate src/sysfloat.h @ 407:ed6218a7d4d3

Added tag r21-2-33 for changeset b8cc9ab3f761
author cvs
date Mon, 13 Aug 2007 11:17:10 +0200
parents 74fd4e045ea6
children de805c49cfc1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 /*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 Copyright (C) 1995 Free Software Foundation, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 This file is part of XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 XEmacs is free software; you can redistribute it and/or modify it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 under the terms of the GNU General Public License as published by the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 Free Software Foundation; either version 2, or (at your option) any
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 XEmacs is distributed in the hope that it will be useful, but WITHOUT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 along with XEmacs; see the file COPYING. If not, write to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 Boston, MA 02111-1307, USA. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 /* Synched up with: Not really in FSF. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 288
diff changeset
23 #ifndef INCLUDED_sysfloat_h_
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 288
diff changeset
24 #define INCLUDED_sysfloat_h_
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 288
diff changeset
25
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 /* Work around a problem that happens because math.h on hpux 7
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 defines two static variables--which, in Emacs, are not really static,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 because `static' is defined as nothing. The problem is that they are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 defined both in data.c and in floatfns.c.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 These macros prevent the name conflict.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 (Is it still necessary to define static to nothing on hpux7?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 Removing that would be the best fix. -jwz)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 # if defined (HPUX) && !defined (HPUX8)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 # define _MAXLDBL THIS_FILENAME ## _maxldbl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 # define _NMAXLDBL THIS_FILENAME ## _nmaxldbl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39
108
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 104
diff changeset
40 #if defined(MSDOS) || (defined(LINUX) && \
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 104
diff changeset
41 !(defined (__GLIBC__) && (__GLIBC__ >= 2)))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 /* These are redefined (correctly, but differently) in values.h. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 #undef INTBITS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 #undef LONGBITS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 #undef SHORTBITS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 #include <math.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49
288
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 209
diff changeset
50 #ifdef WINDOWSNT
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 209
diff changeset
51 /* A quirky way to obtain logb prototype */
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 209
diff changeset
52 #include <float.h>
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 209
diff changeset
53 #define logb _logb
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 209
diff changeset
54 #endif
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 209
diff changeset
55
104
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 70
diff changeset
56 #ifdef HAVE_MATHERR
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 70
diff changeset
57 /* Work around symbol conflict on Linux/glibc */
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 70
diff changeset
58 #ifndef DOMAIN
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 70
diff changeset
59 /* SysV matherr is not defined if _BSD_SOURCE is used, and on Linux X11 */
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 70
diff changeset
60 /* is compiled with _BSD_SOURCE which can also change the size of other */
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 70
diff changeset
61 /* types. The configure test for matherr is broken. */
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 70
diff changeset
62 /* Bah. Good riddance to bad rubbish. */
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 70
diff changeset
63 #undef HAVE_MATHERR
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 70
diff changeset
64 #endif
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 70
diff changeset
65 #endif
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 70
diff changeset
66
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 #ifdef NO_MATHERR
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 #undef HAVE_MATHERR
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 #ifdef HAVE_MATHERR
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 # ifdef FLOAT_CHECK_ERRNO
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 # undef FLOAT_CHECK_ERRNO
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 # ifdef FLOAT_CHECK_DOMAIN
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 # undef FLOAT_CHECK_DOMAIN
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 #ifndef NO_FLOAT_CHECK_ERRNO
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 #define FLOAT_CHECK_ERRNO
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 #ifdef FLOAT_CHECK_ERRNO
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 # include <errno.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 #ifndef isnan
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 # define isnan(x) ((x) != (x))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 288
diff changeset
92 #endif /* INCLUDED_sysfloat_h_ */