fp_arith.h 1.4 KB

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