3 fp_arith.h: floating-point math routines for the Linux-m68k
4 floating point emulator.
6 Copyright (c) 1998 David Huggins-Daines.
8 Somewhat based on the AlphaLinux floating point emulator, by David
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
22 fp_fabs(struct fp_ext *dest, struct fp_ext *src);
24 fp_fneg(struct fp_ext *dest, struct fp_ext *src);
26 /* straightforward arithmetic */
28 fp_fadd(struct fp_ext *dest, struct fp_ext *src);
30 fp_fsub(struct fp_ext *dest, struct fp_ext *src);
32 fp_fcmp(struct fp_ext *dest, struct fp_ext *src);
34 fp_ftst(struct fp_ext *dest, struct fp_ext *src);
36 fp_fmul(struct fp_ext *dest, struct fp_ext *src);
38 fp_fdiv(struct fp_ext *dest, struct fp_ext *src);
40 /* ones that do rounding and integer conversions */
42 fp_fmod(struct fp_ext *dest, struct fp_ext *src);
44 fp_frem(struct fp_ext *dest, struct fp_ext *src);
46 fp_fint(struct fp_ext *dest, struct fp_ext *src);
48 fp_fintrz(struct fp_ext *dest, struct fp_ext *src);
50 fp_fscale(struct fp_ext *dest, struct fp_ext *src);
52 #endif /* FP_ARITH__H */