* link/z80/aslink.h: Fixed path for PATH_MAX
[fw/sdcc] / doc / sdccman.html / node34.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2
3 <!--Converted with LaTeX2HTML 99.1 release (March 30, 1999)
4 original version by:  Nikos Drakos, CBLU, University of Leeds
5 * revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
6 * with significant contributions from:
7   Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
8 <HTML>
9 <HEAD>
10 <TITLE>3.15 Floating Point Support</TITLE>
11 <META NAME="description" CONTENT="3.15 Floating Point Support">
12 <META NAME="keywords" CONTENT="sdccman">
13 <META NAME="resource-type" CONTENT="document">
14 <META NAME="distribution" CONTENT="global">
15
16 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
17 <META NAME="Generator" CONTENT="LaTeX2HTML v99.1 release">
18 <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
19
20 <LINK REL="STYLESHEET" HREF="sdccman.css">
21
22 <LINK REL="next" HREF="node35.html">
23 <LINK REL="previous" HREF="node33.html">
24 <LINK REL="up" HREF="node19.html">
25 <LINK REL="next" HREF="node35.html">
26 </HEAD>
27
28 <BODY >
29 <!--Navigation Panel-->
30 <A NAME="tex2html752"
31  HREF="node35.html">
32 <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next_motif.gif"></A> 
33 <A NAME="tex2html746"
34  HREF="node19.html">
35 <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up_motif.gif"></A> 
36 <A NAME="tex2html740"
37  HREF="node33.html">
38 <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="previous_motif.gif"></A> 
39 <A NAME="tex2html748"
40  HREF="node1.html">
41 <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents_motif.gif"></A> 
42 <A NAME="tex2html750"
43  HREF="node61.html">
44 <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index_motif.gif"></A> 
45 <BR>
46 <B> Next:</B> <A NAME="tex2html753"
47  HREF="node35.html">3.16 MCS51 Memory Models</A>
48 <B> Up:</B> <A NAME="tex2html747"
49  HREF="node19.html">3. Using SDCC</A>
50 <B> Previous:</B> <A NAME="tex2html741"
51  HREF="node33.html">3.14 int(16 bit) and</A>
52  &nbsp <B>  <A NAME="tex2html749"
53  HREF="node1.html">Contents</A></B> 
54  &nbsp <B>  <A NAME="tex2html751"
55  HREF="node61.html">Index</A></B> 
56 <BR>
57 <BR>
58 <!--End of Navigation Panel-->
59
60 <H2><A NAME="SECTION000415000000000000000">
61 3.15 Floating Point Support</A>
62 </H2>
63
64 <P>
65 SDCC supports IEEE (single precision 4bytes) floating point numbers.The
66 floating point support routines are derived from gcc's floatlib.c
67 and consists of the following routines:
68 <BR>
69
70 <BR>
71 <I>&lt;pending: tabularise this&gt;</I>
72 <BR>
73
74 <BR>
75 _fsadd.c - add floating point numbers
76 <BR>
77 _fssub.c - subtract floating point numbers
78 <BR>
79 _fsdiv.c - divide floating point numbers
80 <BR>
81 _fsmul.c - multiply floating point numbers
82 <BR>
83 _fs2uchar.c - convert floating point to unsigned char
84 <BR>
85 _fs2char.c - convert floating point to signed char
86 <BR>
87 _fs2uint.c - convert floating point to unsigned int
88 <BR>
89 _fs2int.c - convert floating point to signed int
90 <BR>
91 _fs2ulong.c - convert floating point to unsigned long
92 <BR>
93 _fs2long.c - convert floating point to signed long
94 <BR>
95 _uchar2fs.c - convert unsigned char to floating point
96 <BR>
97 _char2fs.c - convert char to floating point number
98 <BR>
99 _uint2fs.c - convert unsigned int to floating point
100 <BR>
101 _int2fs.c - convert int to floating point numbers
102 <BR>
103 _ulong2fs.c - convert unsigned long to floating point number
104 <BR>
105 _long2fs.c - convert long to floating point number
106 <BR>
107
108 <BR>
109 Note if all these routines are used simultaneously the data space
110 might overflow. For serious floating point usage it is strongly recommended
111 that the large model be used.
112
113 <P>
114 <HR>
115 <!--Navigation Panel-->
116 <A NAME="tex2html752"
117  HREF="node35.html">
118 <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next_motif.gif"></A> 
119 <A NAME="tex2html746"
120  HREF="node19.html">
121 <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up_motif.gif"></A> 
122 <A NAME="tex2html740"
123  HREF="node33.html">
124 <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="previous_motif.gif"></A> 
125 <A NAME="tex2html748"
126  HREF="node1.html">
127 <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents_motif.gif"></A> 
128 <A NAME="tex2html750"
129  HREF="node61.html">
130 <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index_motif.gif"></A> 
131 <BR>
132 <B> Next:</B> <A NAME="tex2html753"
133  HREF="node35.html">3.16 MCS51 Memory Models</A>
134 <B> Up:</B> <A NAME="tex2html747"
135  HREF="node19.html">3. Using SDCC</A>
136 <B> Previous:</B> <A NAME="tex2html741"
137  HREF="node33.html">3.14 int(16 bit) and</A>
138  &nbsp <B>  <A NAME="tex2html749"
139  HREF="node1.html">Contents</A></B> 
140  &nbsp <B>  <A NAME="tex2html751"
141  HREF="node61.html">Index</A></B> 
142 <!--End of Navigation Panel-->
143 <ADDRESS>
144 <I>Johan Knol</I>
145 <BR><I>2001-07-13</I>
146 </ADDRESS>
147 </BODY>
148 </HTML>