Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
40 lines
1.4 KiB
C
40 lines
1.4 KiB
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
|
|
fp_arith.h: floating-point math routines for the Linux-m68k
|
|
floating point emulator.
|
|
|
|
Copyright (c) 1998 David Huggins-Daines.
|
|
|
|
Somewhat based on the AlphaLinux floating point emulator, by David
|
|
Mosberger-Tang.
|
|
|
|
|
|
*/
|
|
|
|
#ifndef _FP_ARITH_H
|
|
#define _FP_ARITH_H
|
|
|
|
/* easy ones */
|
|
struct fp_ext *fp_fabs(struct fp_ext *dest, struct fp_ext *src);
|
|
struct fp_ext *fp_fneg(struct fp_ext *dest, struct fp_ext *src);
|
|
|
|
/* straightforward arithmetic */
|
|
struct fp_ext *fp_fadd(struct fp_ext *dest, struct fp_ext *src);
|
|
struct fp_ext *fp_fsub(struct fp_ext *dest, struct fp_ext *src);
|
|
struct fp_ext *fp_fcmp(struct fp_ext *dest, struct fp_ext *src);
|
|
struct fp_ext *fp_ftst(struct fp_ext *dest, struct fp_ext *src);
|
|
struct fp_ext *fp_fmul(struct fp_ext *dest, struct fp_ext *src);
|
|
struct fp_ext *fp_fdiv(struct fp_ext *dest, struct fp_ext *src);
|
|
struct fp_ext *fp_fsglmul(struct fp_ext *dest, struct fp_ext *src);
|
|
struct fp_ext *fp_fsgldiv(struct fp_ext *dest, struct fp_ext *src);
|
|
|
|
/* ones that do rounding and integer conversions */
|
|
struct fp_ext *fp_fmod(struct fp_ext *dest, struct fp_ext *src);
|
|
struct fp_ext *fp_frem(struct fp_ext *dest, struct fp_ext *src);
|
|
struct fp_ext *fp_fint(struct fp_ext *dest, struct fp_ext *src);
|
|
struct fp_ext *fp_fintrz(struct fp_ext *dest, struct fp_ext *src);
|
|
struct fp_ext *fp_fscale(struct fp_ext *dest, struct fp_ext *src);
|
|
|
|
#endif /* _FP_ARITH_H */
|