1 /* SPDX-License-Identifier: GPL-2.0-or-later */
4 fp_arith.h: floating-point math routines for the Linux-m68k
5 floating point emulator.
7 Copyright (c) 1998 David Huggins-Daines.
9 Somewhat based on the AlphaLinux floating point emulator, by David
20 fp_fabs(struct fp_ext
*dest
, struct fp_ext
*src
);
22 fp_fneg(struct fp_ext
*dest
, struct fp_ext
*src
);
24 /* straightforward arithmetic */
26 fp_fadd(struct fp_ext
*dest
, struct fp_ext
*src
);
28 fp_fsub(struct fp_ext
*dest
, struct fp_ext
*src
);
30 fp_fcmp(struct fp_ext
*dest
, struct fp_ext
*src
);
32 fp_ftst(struct fp_ext
*dest
, struct fp_ext
*src
);
34 fp_fmul(struct fp_ext
*dest
, struct fp_ext
*src
);
36 fp_fdiv(struct fp_ext
*dest
, struct fp_ext
*src
);
38 /* ones that do rounding and integer conversions */
40 fp_fmod(struct fp_ext
*dest
, struct fp_ext
*src
);
42 fp_frem(struct fp_ext
*dest
, struct fp_ext
*src
);
44 fp_fint(struct fp_ext
*dest
, struct fp_ext
*src
);
46 fp_fintrz(struct fp_ext
*dest
, struct fp_ext
*src
);
48 fp_fscale(struct fp_ext
*dest
, struct fp_ext
*src
);
50 #endif /* FP_ARITH__H */