cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

fp_arith.h (1315B)


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