source: mainline/uspace/lib/softfloat/include/softfloat.h@ 0287820

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 0287820 was 00acd66, checked in by Jakub Jermar <jakub@…>, 18 years ago

New, better-structured, directory layout for uspace.

  • Property mode set to 100644
File size: 5.4 KB
Line 
1/*
2 * Copyright (c) 2005 Josef Cejka
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * - Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * - Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * - The name of the author may not be used to endorse or promote products
15 * derived from this software without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29 /** @addtogroup softfloat
30 * @{
31 */
32/** @file
33 */
34
35#ifndef __SOFTFLOAT_H__
36#define __SOFTFLOAT_H__
37
38float __addsf3(float a, float b);
39double __adddf3(double a, double b);
40long double __addtf3(long double a, long double b);
41long double __addxf3(long double a, long double b);
42
43float __subsf3(float a, float b);
44double __subdf3(double a, double b);
45long double __subtf3(long double a, long double b);
46long double __subxf3(long double a, long double b);
47
48float __mulsf3(float a, float b);
49double __muldf3(double a, double b);
50long double __multf3(long double a, long double b);
51long double __mulxf3(long double a, long double b);
52
53float __divsf3(float a, float b);
54double __divdf3(double a, double b);
55long double __divtf3(long double a, long double b);
56long double __divxf3(long double a, long double b);
57
58float __negsf2(float a);
59double __negdf2(double a);
60long double __negtf2(long double a);
61long double __negxf2(long double a);
62
63double __extendsfdf2(float a);
64long double __extendsftf2(float a);
65long double __extendsfxf2(float a);
66long double __extenddftf2(double a);
67long double __extenddfxf2(double a);
68
69double __truncxfdf2(long double a);
70double __trunctfdf2(long double a);
71float __truncxfsf2(long double a);
72float __trunctfsf2(long double a);
73float __truncdfsf2(double a);
74
75int __fixsfsi(float a);
76int __fixdfsi(double a);
77int __fixtfsi(long double a);
78int __fixxfsi(long double a);
79
80long __fixsfdi(float a);
81long __fixdfdi(double a);
82long __fixtfdi(long double a);
83long __fixxfdi(long double a);
84
85long long __fixsfti(float a);
86long long __fixdfti(double a);
87long long __fixtfti(long double a);
88long long __fixxfti(long double a);
89
90unsigned int __fixunssfsi(float a);
91unsigned int __fixunsdfsi(double a);
92unsigned int __fixunstfsi(long double a);
93unsigned int __fixunsxfsi(long double a);
94
95unsigned long __fixunssfdi(float a);
96unsigned long __fixunsdfdi(double a);
97unsigned long __fixunstfdi(long double a);
98unsigned long __fixunsxfdi(long double a);
99
100unsigned long long __fixunssfti(float a);
101unsigned long long __fixunsdfti(double a);
102unsigned long long __fixunstfti(long double a);
103unsigned long long __fixunsxfti(long double a);
104
105float __floatsisf(int i);
106double __floatsidf(int i);
107long double __floatsitf(int i);
108long double __floatsixf(int i);
109
110float __floatdisf(long i);
111double __floatdidf(long i);
112long double __floatditf(long i);
113long double __floatdixf(long i);
114
115float __floattisf(long long i);
116double __floattidf(long long i);
117long double __floattitf(long long i);
118long double __floattixf(long long i);
119
120float __floatunsisf(unsigned int i);
121double __floatunsidf(unsigned int i);
122long double __floatunsitf(unsigned int i);
123long double __floatunsixf(unsigned int i);
124
125float __floatundisf(unsigned long i);
126double __floatundidf(unsigned long i);
127long double __floatunditf(unsigned long i);
128long double __floatundixf(unsigned long i);
129
130float __floatuntisf(unsigned long long i);
131double __floatuntidf(unsigned long long i);
132long double __floatuntitf(unsigned long long i);
133long double __floatuntixf(unsigned long long i);
134
135int __cmpsf2(float a, float b);
136int __cmpdf2(double a, double b);
137int __cmptf2(long double a, long double b);
138
139int __unordsf2(float a, float b);
140int __unorddf2(double a, double b);
141int __unordtf2(long double a, long double b);
142
143int __eqsf2(float a, float b);
144int __eqdf2(double a, double b);
145int __eqtf2(long double a, long double b);
146
147int __nesf2(float a, float b);
148int __nedf2(double a, double b);
149int __netf2(long double a, long double b);
150
151int __gesf2(float a, float b);
152int __gedf2(double a, double b);
153int __getf2(long double a, long double b);
154
155int __ltsf2(float a, float b);
156int __ltdf2(double a, double b);
157int __lttf2(long double a, long double b);
158int __lesf2(float a, float b);
159int __ledf2(double a, double b);
160int __letf2(long double a, long double b);
161
162int __gtsf2(float a, float b);
163int __gtdf2(double a, double b);
164int __gttf2(long double a, long double b);
165
166/* Not implemented yet*/
167float __powisf2(float a, int b);
168
169#endif
170
171
172 /** @}
173 */
174
Note: See TracBrowser for help on using the repository browser.