-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathvalues.html
167 lines (141 loc) · 11.9 KB
/
values.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>values.h</TITLE>
<STYLE TYPE="TEXT/CSS">
<!--
.IE3-DUMMY { CONT-SIZE: 100%; }
BODY { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; BACKGROUND-COLOR: #E0E0E0; }
P { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; }
H1 { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; }
H2 { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; }
H3 { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; }
H4 { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; }
H5 { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; }
H6 { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; }
UL { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; }
TD { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; BACKGROUND-COLOR: #FFFFFF; }
.NOBORDER { BACKGROUND-COLOR: #E0E0E0; PADDING: 0pt; }
.NOBORDER TD { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; BACKGROUND-COLOR: #E0E0E0; PADDING: 0pt; }
.CODE { FONT-FAMILY: Courier New; }
-->
</STYLE>
</HEAD>
<BODY TEXT="#000000" BGCOLOR="#E0E0E0">
<FONT SIZE="5"><B>The <values.h> Header File</B></FONT>
<HR>
<P><B>Various platform-dependent constants</B></P>
<H3><U>Constants</U></H3>
<DL INDENT="20"><DT><B><A HREF="#_DEXPLEN">_DEXPLEN</A></B><DD>Number of exponent bits for double precision.<IMG WIDTH="1" HEIGHT="20" ALIGN="TOP"><DT><B><A HREF="#_EXPBASE">_EXPBASE</A></B><DD>Exponent base used for floating point representation.<IMG WIDTH="1" HEIGHT="20" ALIGN="TOP"><DT><B><A HREF="#_FEXPLEN">_FEXPLEN</A></B><DD>Number of exponent bits for single precision.<IMG WIDTH="1" HEIGHT="20" ALIGN="TOP"><DT><B><A HREF="#_IEEE">_IEEE</A></B><DD>Boolean flag: tells that TI floats are not compatible with IEEE standard.<IMG WIDTH="1" HEIGHT="20" ALIGN="TOP"><DT><B><A HREF="#BITSPERBYTE">BITSPERBYTE</A></B><DD>Number of bits per one byte.<IMG WIDTH="1" HEIGHT="20" ALIGN="TOP"><DT><B><A HREF="#DMAXEXP">DMAXEXP</A></B><DD>Maximal floating point exponent for double precision; greater exponents are principally possible
(up to 16383), but not supported in all math functions.<IMG WIDTH="1" HEIGHT="20" ALIGN="TOP"><DT><B><A HREF="#DMAXPOWTWO">DMAXPOWTWO</A></B><DD>Maximal power of two in double precision.<IMG WIDTH="1" HEIGHT="20" ALIGN="TOP"><DT><B><A HREF="#DMINEXP">DMINEXP</A></B><DD>Minimal floating point exponent for double precision; smaller exponents are principally possible
(up to -16383), but not supported in all math functions.<IMG WIDTH="1" HEIGHT="20" ALIGN="TOP"><DT><B><A HREF="#DSIGNIF">DSIGNIF</A></B><DD>Number of mantissa bits for double precision.<IMG WIDTH="1" HEIGHT="20" ALIGN="TOP"><DT><B><A HREF="#FMAXEXP">FMAXEXP</A></B><DD>Maximal floating point exponent for single precision.<IMG WIDTH="1" HEIGHT="20" ALIGN="TOP"><DT><B><A HREF="#FMAXPOWTWO">FMAXPOWTWO</A></B><DD>Maximal power of two in single precision.<IMG WIDTH="1" HEIGHT="20" ALIGN="TOP"><DT><B><A HREF="#FMINEXP">FMINEXP</A></B><DD>Minimal floating point exponent for single precision.<IMG WIDTH="1" HEIGHT="20" ALIGN="TOP"><DT><B><A HREF="#FSIGNIF">FSIGNIF</A></B><DD>Number of mantissa bits for single precision.<IMG WIDTH="1" HEIGHT="20" ALIGN="TOP"><DT><B><A HREF="#HIBITI">HIBITI</A></B><DD>The most significant bit mask for the int type.<IMG WIDTH="1" HEIGHT="20" ALIGN="TOP"><DT><B><A HREF="#HIBITL">HIBITL</A></B><DD>The most significant bit mask for the long int type.<IMG WIDTH="1" HEIGHT="20" ALIGN="TOP"><DT><B><A HREF="#HIBITS">HIBITS</A></B><DD>The most significant bit mask for the short int type.<IMG WIDTH="1" HEIGHT="20" ALIGN="TOP"><DT><B><A HREF="#LN_MAXDOUBLE">LN_MAXDOUBLE</A></B><DD>Natural logarithm of MAXDOUBLE.<IMG WIDTH="1" HEIGHT="20" ALIGN="TOP"><DT><B><A HREF="#LN_MINDOUBLE">LN_MINDOUBLE</A></B><DD>Natural logarithm of MINDOUBLE.<IMG WIDTH="1" HEIGHT="20" ALIGN="TOP"><DT><B><A HREF="#MAXDOUBLE">MAXDOUBLE</A></B><DD>Maximum floating point number for double precision (see notes about DMAXEXP).<IMG WIDTH="1" HEIGHT="20" ALIGN="TOP"><DT><B><A HREF="#MAXFLOAT">MAXFLOAT</A></B><DD>Maximum floating point number for single precision.<IMG WIDTH="1" HEIGHT="20" ALIGN="TOP"><DT><B><A HREF="#MAXINT">MAXINT</A></B><DD>Maximum value which can be stored in an int variable.<IMG WIDTH="1" HEIGHT="20" ALIGN="TOP"><DT><B><A HREF="#MAXLONG">MAXLONG</A></B><DD>Maximum value which can be stored in a long int variable.<IMG WIDTH="1" HEIGHT="20" ALIGN="TOP"><DT><B><A HREF="#MAXSHORT">MAXSHORT</A></B><DD>Maximum value which can be stored in a short int variable.<IMG WIDTH="1" HEIGHT="20" ALIGN="TOP"><DT><B><A HREF="#MINDOUBLE">MINDOUBLE</A></B><DD>Minimum floating point number for single precision (see notes about DMINEXP).<IMG WIDTH="1" HEIGHT="20" ALIGN="TOP"><DT><B><A HREF="#MINFLOAT">MINFLOAT</A></B><DD>Minimum floating point number for single precision.</DL>
<H3><U>Predefined Types</U></H3>
<DL INDENT="20"><DT><B><A HREF="timath.html#bcd">bcd</A></B><DD>Represents the internal organization of floating point numbers
in the format recognized by the TIOS.<IMG WIDTH="1" HEIGHT="20" ALIGN="TOP"><DT><B><A HREF="timath.html#ti_float">ti_float</A></B><DD>An alias for the standard ANSI float type.</DL>
<P>See also: <A HREF="limits.html">limits.h</A>, <A HREF="float.html">float.h</A></P>
<HR>
<H3><A NAME="_DEXPLEN"><U>_DEXPLEN</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="cpp.html#SEC10">#define</A></B> _DEXPLEN 15</TD></TR></TABLE></P>
<P><B>Number of exponent bits for double precision.</B></P>
<HR>
<H3><A NAME="_EXPBASE"><U>_EXPBASE</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="cpp.html#SEC10">#define</A></B> _EXPBASE 10</TD></TR></TABLE></P>
<P><B>Exponent base used for floating point representation.</B></P>
<HR>
<H3><A NAME="_FEXPLEN"><U>_FEXPLEN</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="cpp.html#SEC10">#define</A></B> _FEXPLEN 15</TD></TR></TABLE></P>
<P><B>Number of exponent bits for single precision.</B></P>
<HR>
<H3><A NAME="_IEEE"><U>_IEEE</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="cpp.html#SEC10">#define</A></B> _IEEE 0</TD></TR></TABLE></P>
<P><B>Boolean flag: tells that TI floats are not compatible with IEEE standard.</B></P>
<HR>
<H3><A NAME="BITSPERBYTE"><U>BITSPERBYTE</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="cpp.html#SEC10">#define</A></B> BITSPERBYTE 8</TD></TR></TABLE></P>
<P><B>Number of bits per one byte.</B></P>
<HR>
<H3><A NAME="DMAXEXP"><U>DMAXEXP</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="cpp.html#SEC10">#define</A></B> DMAXEXP 999</TD></TR></TABLE></P>
<P><B>Maximal floating point exponent for double precision; greater exponents are principally possible
(up to 16383), but not supported in all math functions.</B></P>
<HR>
<H3><A NAME="DMAXPOWTWO"><U>DMAXPOWTWO</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="cpp.html#SEC10">#define</A></B> DMAXPOWTWO 3321</TD></TR></TABLE></P>
<P><B>Maximal power of two in double precision.</B></P>
<HR>
<H3><A NAME="DMINEXP"><U>DMINEXP</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="cpp.html#SEC10">#define</A></B> DMINEXP (-999)</TD></TR></TABLE></P>
<P><B>Minimal floating point exponent for double precision; smaller exponents are principally possible
(up to -16383), but not supported in all math functions.</B></P>
<HR>
<H3><A NAME="DSIGNIF"><U>DSIGNIF</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="cpp.html#SEC10">#define</A></B> DSIGNIF 64</TD></TR></TABLE></P>
<P><B>Number of mantissa bits for double precision.</B></P>
<HR>
<H3><A NAME="FMAXEXP"><U>FMAXEXP</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="cpp.html#SEC10">#define</A></B> FMAXEXP 999</TD></TR></TABLE></P>
<P><B>Maximal floating point exponent for single precision.</B></P>
<HR>
<H3><A NAME="FMAXPOWTWO"><U>FMAXPOWTWO</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="cpp.html#SEC10">#define</A></B> FMAXPOWTWO 3321</TD></TR></TABLE></P>
<P><B>Maximal power of two in single precision.</B></P>
<HR>
<H3><A NAME="FMINEXP"><U>FMINEXP</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="cpp.html#SEC10">#define</A></B> FMINEXP (-999)</TD></TR></TABLE></P>
<P><B>Minimal floating point exponent for single precision.</B></P>
<HR>
<H3><A NAME="FSIGNIF"><U>FSIGNIF</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="cpp.html#SEC10">#define</A></B> FSIGNIF 56</TD></TR></TABLE></P>
<P><B>Number of mantissa bits for single precision.</B></P>
<HR>
<H3><A NAME="HIBITI"><U>HIBITI</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="cpp.html#SEC10">#define</A></B> HIBITI 0x8000/0x80000000</TD></TR></TABLE></P>
<P><B>The most significant bit mask for the int type.</B></P>
<HR>
<H3><A NAME="HIBITL"><U>HIBITL</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="cpp.html#SEC10">#define</A></B> HIBITL 0x80000000L</TD></TR></TABLE></P>
<P><B>The most significant bit mask for the long int type.</B></P>
<HR>
<H3><A NAME="HIBITS"><U>HIBITS</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="cpp.html#SEC10">#define</A></B> HIBITS 0x8000</TD></TR></TABLE></P>
<P><B>The most significant bit mask for the short int type.</B></P>
<HR>
<H3><A NAME="LN_MAXDOUBLE"><U>LN_MAXDOUBLE</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="cpp.html#SEC10">#define</A></B> LN_MAXDOUBLE (2303.58509299)</TD></TR></TABLE></P>
<P><B>Natural logarithm of MAXDOUBLE.</B></P>
<HR>
<H3><A NAME="LN_MINDOUBLE"><U>LN_MINDOUBLE</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="cpp.html#SEC10">#define</A></B> LN_MINDOUBLE (-2300.2825079)</TD></TR></TABLE></P>
<P><B>Natural logarithm of MINDOUBLE.</B></P>
<HR>
<H3><A NAME="MAXDOUBLE"><U>MAXDOUBLE</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="cpp.html#SEC10">#define</A></B> MAXDOUBLE (9.999999999999999e999)</TD></TR></TABLE></P>
<P><B>Maximum floating point number for double precision (see notes about DMAXEXP).</B></P>
<HR>
<H3><A NAME="MAXFLOAT"><U>MAXFLOAT</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="cpp.html#SEC10">#define</A></B> MAXFLOAT (9.999999999999999e999)</TD></TR></TABLE></P>
<P><B>Maximum floating point number for single precision.</B></P>
<HR>
<H3><A NAME="MAXINT"><U>MAXINT</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="cpp.html#SEC10">#define</A></B> MAXINT 0x7FFF/0x7FFFFFFF</TD></TR></TABLE></P>
<P><B>Maximum value which can be stored in an int variable.</B></P>
<HR>
<H3><A NAME="MAXLONG"><U>MAXLONG</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="cpp.html#SEC10">#define</A></B> MAXLONG 0x7FFFFFFFL</TD></TR></TABLE></P>
<P><B>Maximum value which can be stored in a long int variable.</B></P>
<HR>
<H3><A NAME="MAXSHORT"><U>MAXSHORT</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="cpp.html#SEC10">#define</A></B> MAXSHORT 0x7FFF</TD></TR></TABLE></P>
<P><B>Maximum value which can be stored in a short int variable.</B></P>
<HR>
<H3><A NAME="MINDOUBLE"><U>MINDOUBLE</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="cpp.html#SEC10">#define</A></B> MINDOUBLE (1e-999)</TD></TR></TABLE></P>
<P><B>Minimum floating point number for single precision (see notes about DMINEXP).</B></P>
<HR>
<H3><A NAME="MINFLOAT"><U>MINFLOAT</U></A></H3>
<P><TABLE BORDER="1" CELLPADDING="2"><TR><TD CLASS="CODE"><B><A HREF="cpp.html#SEC10">#define</A></B> MINFLOAT (1e-999)</TD></TR></TABLE></P>
<P><B>Minimum floating point number for single precision.</B></P>
<HR>
<H3><A HREF="index.html">Return to the main index</A></H3>
</BODY>
</HTML>