Loading...
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3
4 fp_arith.h: floating-point math routines for the Linux-m68k
5 floating point emulator.
6
7 Copyright (c) 1998 David Huggins-Daines.
8
9 Somewhat based on the AlphaLinux floating point emulator, by David
10 Mosberger-Tang.
11
12
13 */
14
15#ifndef FP_ARITH_H
16#define FP_ARITH_H
17
18/* easy ones */
19struct fp_ext *
20fp_fabs(struct fp_ext *dest, struct fp_ext *src);
21struct fp_ext *
22fp_fneg(struct fp_ext *dest, struct fp_ext *src);
23
24/* straightforward arithmetic */
25struct fp_ext *
26fp_fadd(struct fp_ext *dest, struct fp_ext *src);
27struct fp_ext *
28fp_fsub(struct fp_ext *dest, struct fp_ext *src);
29struct fp_ext *
30fp_fcmp(struct fp_ext *dest, struct fp_ext *src);
31struct fp_ext *
32fp_ftst(struct fp_ext *dest, struct fp_ext *src);
33struct fp_ext *
34fp_fmul(struct fp_ext *dest, struct fp_ext *src);
35struct fp_ext *
36fp_fdiv(struct fp_ext *dest, struct fp_ext *src);
37
38/* ones that do rounding and integer conversions */
39struct fp_ext *
40fp_fmod(struct fp_ext *dest, struct fp_ext *src);
41struct fp_ext *
42fp_frem(struct fp_ext *dest, struct fp_ext *src);
43struct fp_ext *
44fp_fint(struct fp_ext *dest, struct fp_ext *src);
45struct fp_ext *
46fp_fintrz(struct fp_ext *dest, struct fp_ext *src);
47struct fp_ext *
48fp_fscale(struct fp_ext *dest, struct fp_ext *src);
49
50#endif /* FP_ARITH__H */
1/*
2
3 fp_arith.h: floating-point math routines for the Linux-m68k
4 floating point emulator.
5
6 Copyright (c) 1998 David Huggins-Daines.
7
8 Somewhat based on the AlphaLinux floating point emulator, by David
9 Mosberger-Tang.
10
11 You may copy, modify, and redistribute this file under the terms of
12 the GNU General Public License, version 2, or any later version, at
13 your convenience.
14
15 */
16
17#ifndef FP_ARITH_H
18#define FP_ARITH_H
19
20/* easy ones */
21struct fp_ext *
22fp_fabs(struct fp_ext *dest, struct fp_ext *src);
23struct fp_ext *
24fp_fneg(struct fp_ext *dest, struct fp_ext *src);
25
26/* straightforward arithmetic */
27struct fp_ext *
28fp_fadd(struct fp_ext *dest, struct fp_ext *src);
29struct fp_ext *
30fp_fsub(struct fp_ext *dest, struct fp_ext *src);
31struct fp_ext *
32fp_fcmp(struct fp_ext *dest, struct fp_ext *src);
33struct fp_ext *
34fp_ftst(struct fp_ext *dest, struct fp_ext *src);
35struct fp_ext *
36fp_fmul(struct fp_ext *dest, struct fp_ext *src);
37struct fp_ext *
38fp_fdiv(struct fp_ext *dest, struct fp_ext *src);
39
40/* ones that do rounding and integer conversions */
41struct fp_ext *
42fp_fmod(struct fp_ext *dest, struct fp_ext *src);
43struct fp_ext *
44fp_frem(struct fp_ext *dest, struct fp_ext *src);
45struct fp_ext *
46fp_fint(struct fp_ext *dest, struct fp_ext *src);
47struct fp_ext *
48fp_fintrz(struct fp_ext *dest, struct fp_ext *src);
49struct fp_ext *
50fp_fscale(struct fp_ext *dest, struct fp_ext *src);
51
52#endif /* FP_ARITH__H */