linux/arch/m68k/math-emu/fp_arith.h
<<
>>
Prefs
   1/*
   2
   3   fp_arith.h: floating-point math routines for the Linux-m68k
   4   floating point emulator.
   5
   6   Copyright (c) 1998 David Huggins-Daines.
   7
   8   Somewhat based on the AlphaLinux floating point emulator, by David
   9   Mosberger-Tang.
  10
  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
  13   your convenience.
  14
  15 */
  16
  17#ifndef FP_ARITH_H
  18#define FP_ARITH_H
  19
  20/* easy ones */
  21struct fp_ext *
  22fp_fabs(struct fp_ext *dest, struct fp_ext *src);
  23struct fp_ext *
  24fp_fneg(struct fp_ext *dest, struct fp_ext *src);
  25
  26/* straightforward arithmetic */
  27struct fp_ext *
  28fp_fadd(struct fp_ext *dest, struct fp_ext *src);
  29struct fp_ext *
  30fp_fsub(struct fp_ext *dest, struct fp_ext *src);
  31struct fp_ext *
  32fp_fcmp(struct fp_ext *dest, struct fp_ext *src);
  33struct fp_ext *
  34fp_ftst(struct fp_ext *dest, struct fp_ext *src);
  35struct fp_ext *
  36fp_fmul(struct fp_ext *dest, struct fp_ext *src);
  37struct fp_ext *
  38fp_fdiv(struct fp_ext *dest, struct fp_ext *src);
  39
  40/* ones that do rounding and integer conversions */
  41struct fp_ext *
  42fp_fmod(struct fp_ext *dest, struct fp_ext *src);
  43struct fp_ext *
  44fp_frem(struct fp_ext *dest, struct fp_ext *src);
  45struct fp_ext *
  46fp_fint(struct fp_ext *dest, struct fp_ext *src);
  47struct fp_ext *
  48fp_fintrz(struct fp_ext *dest, struct fp_ext *src);
  49struct fp_ext *
  50fp_fscale(struct fp_ext *dest, struct fp_ext *src);
  51
  52#endif  /* FP_ARITH__H */
  53