xref: /openbmc/linux/arch/m68k/math-emu/fp_trig.c (revision c4e78957)
1 /*
2 
3   fp_trig.c: floating-point math routines for the Linux-m68k
4   floating point emulator.
5 
6   Copyright (c) 1998-1999 David Huggins-Daines / Roman Zippel.
7 
8   I hereby give permission, free of charge, to copy, modify, and
9   redistribute this software, in source or binary form, provided that
10   the above copyright notice and the following disclaimer are included
11   in all such copies.
12 
13   THIS SOFTWARE IS PROVIDED "AS IS", WITH ABSOLUTELY NO WARRANTY, REAL
14   OR IMPLIED.
15 
16 */
17 
18 #include "fp_emu.h"
19 #include "fp_trig.h"
20 
21 struct fp_ext *
22 fp_fsin(struct fp_ext *dest, struct fp_ext *src)
23 {
24 	uprint("fsin\n");
25 
26 	fp_monadic_check(dest, src);
27 
28 	return dest;
29 }
30 
31 struct fp_ext *
32 fp_fcos(struct fp_ext *dest, struct fp_ext *src)
33 {
34 	uprint("fcos\n");
35 
36 	fp_monadic_check(dest, src);
37 
38 	return dest;
39 }
40 
41 struct fp_ext *
42 fp_ftan(struct fp_ext *dest, struct fp_ext *src)
43 {
44 	uprint("ftan\n");
45 
46 	fp_monadic_check(dest, src);
47 
48 	return dest;
49 }
50 
51 struct fp_ext *
52 fp_fasin(struct fp_ext *dest, struct fp_ext *src)
53 {
54 	uprint("fasin\n");
55 
56 	fp_monadic_check(dest, src);
57 
58 	return dest;
59 }
60 
61 struct fp_ext *
62 fp_facos(struct fp_ext *dest, struct fp_ext *src)
63 {
64 	uprint("facos\n");
65 
66 	fp_monadic_check(dest, src);
67 
68 	return dest;
69 }
70 
71 struct fp_ext *
72 fp_fatan(struct fp_ext *dest, struct fp_ext *src)
73 {
74 	uprint("fatan\n");
75 
76 	fp_monadic_check(dest, src);
77 
78 	return dest;
79 }
80 
81 struct fp_ext *
82 fp_fsinh(struct fp_ext *dest, struct fp_ext *src)
83 {
84 	uprint("fsinh\n");
85 
86 	fp_monadic_check(dest, src);
87 
88 	return dest;
89 }
90 
91 struct fp_ext *
92 fp_fcosh(struct fp_ext *dest, struct fp_ext *src)
93 {
94 	uprint("fcosh\n");
95 
96 	fp_monadic_check(dest, src);
97 
98 	return dest;
99 }
100 
101 struct fp_ext *
102 fp_ftanh(struct fp_ext *dest, struct fp_ext *src)
103 {
104 	uprint("ftanh\n");
105 
106 	fp_monadic_check(dest, src);
107 
108 	return dest;
109 }
110 
111 struct fp_ext *
112 fp_fatanh(struct fp_ext *dest, struct fp_ext *src)
113 {
114 	uprint("fatanh\n");
115 
116 	fp_monadic_check(dest, src);
117 
118 	return dest;
119 }
120 
121 struct fp_ext *
122 fp_fsincos0(struct fp_ext *dest, struct fp_ext *src)
123 {
124 	uprint("fsincos0\n");
125 
126 	return dest;
127 }
128 
129 struct fp_ext *
130 fp_fsincos1(struct fp_ext *dest, struct fp_ext *src)
131 {
132 	uprint("fsincos1\n");
133 
134 	return dest;
135 }
136 
137 struct fp_ext *
138 fp_fsincos2(struct fp_ext *dest, struct fp_ext *src)
139 {
140 	uprint("fsincos2\n");
141 
142 	return dest;
143 }
144 
145 struct fp_ext *
146 fp_fsincos3(struct fp_ext *dest, struct fp_ext *src)
147 {
148 	uprint("fsincos3\n");
149 
150 	return dest;
151 }
152 
153 struct fp_ext *
154 fp_fsincos4(struct fp_ext *dest, struct fp_ext *src)
155 {
156 	uprint("fsincos4\n");
157 
158 	return dest;
159 }
160 
161 struct fp_ext *
162 fp_fsincos5(struct fp_ext *dest, struct fp_ext *src)
163 {
164 	uprint("fsincos5\n");
165 
166 	return dest;
167 }
168 
169 struct fp_ext *
170 fp_fsincos6(struct fp_ext *dest, struct fp_ext *src)
171 {
172 	uprint("fsincos6\n");
173 
174 	return dest;
175 }
176 
177 struct fp_ext *
178 fp_fsincos7(struct fp_ext *dest, struct fp_ext *src)
179 {
180 	uprint("fsincos7\n");
181 
182 	return dest;
183 }
184