162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci 462306a36Sopenharmony_ci fp_arith.h: floating-point math routines for the Linux-m68k 562306a36Sopenharmony_ci floating point emulator. 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci Copyright (c) 1998 David Huggins-Daines. 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci Somewhat based on the AlphaLinux floating point emulator, by David 1062306a36Sopenharmony_ci Mosberger-Tang. 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ci */ 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ci#ifndef FP_ARITH_H 1662306a36Sopenharmony_ci#define FP_ARITH_H 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_ci/* easy ones */ 1962306a36Sopenharmony_cistruct fp_ext * 2062306a36Sopenharmony_cifp_fabs(struct fp_ext *dest, struct fp_ext *src); 2162306a36Sopenharmony_cistruct fp_ext * 2262306a36Sopenharmony_cifp_fneg(struct fp_ext *dest, struct fp_ext *src); 2362306a36Sopenharmony_ci 2462306a36Sopenharmony_ci/* straightforward arithmetic */ 2562306a36Sopenharmony_cistruct fp_ext * 2662306a36Sopenharmony_cifp_fadd(struct fp_ext *dest, struct fp_ext *src); 2762306a36Sopenharmony_cistruct fp_ext * 2862306a36Sopenharmony_cifp_fsub(struct fp_ext *dest, struct fp_ext *src); 2962306a36Sopenharmony_cistruct fp_ext * 3062306a36Sopenharmony_cifp_fcmp(struct fp_ext *dest, struct fp_ext *src); 3162306a36Sopenharmony_cistruct fp_ext * 3262306a36Sopenharmony_cifp_ftst(struct fp_ext *dest, struct fp_ext *src); 3362306a36Sopenharmony_cistruct fp_ext * 3462306a36Sopenharmony_cifp_fmul(struct fp_ext *dest, struct fp_ext *src); 3562306a36Sopenharmony_cistruct fp_ext * 3662306a36Sopenharmony_cifp_fdiv(struct fp_ext *dest, struct fp_ext *src); 3762306a36Sopenharmony_ci 3862306a36Sopenharmony_ci/* ones that do rounding and integer conversions */ 3962306a36Sopenharmony_cistruct fp_ext * 4062306a36Sopenharmony_cifp_fmod(struct fp_ext *dest, struct fp_ext *src); 4162306a36Sopenharmony_cistruct fp_ext * 4262306a36Sopenharmony_cifp_frem(struct fp_ext *dest, struct fp_ext *src); 4362306a36Sopenharmony_cistruct fp_ext * 4462306a36Sopenharmony_cifp_fint(struct fp_ext *dest, struct fp_ext *src); 4562306a36Sopenharmony_cistruct fp_ext * 4662306a36Sopenharmony_cifp_fintrz(struct fp_ext *dest, struct fp_ext *src); 4762306a36Sopenharmony_cistruct fp_ext * 4862306a36Sopenharmony_cifp_fscale(struct fp_ext *dest, struct fp_ext *src); 4962306a36Sopenharmony_ci 5062306a36Sopenharmony_ci#endif /* FP_ARITH__H */ 51