gem5  v22.0.0.2
Namespaces | Enumerations | Functions
fplib.hh File Reference
#include <stdint.h>
#include "arch/arm/regs/misc.hh"

Go to the source code of this file.

Namespaces

 gem5
 Reference material can be found at the JEDEC website: UFS standard http://www.jedec.org/standards-documents/results/jesd220 UFS HCI specification http://www.jedec.org/standards-documents/results/jesd223.
 
 gem5::ArmISA
 

Enumerations

enum  gem5::ArmISA::FPRounding {
  gem5::ArmISA::FPRounding_TIEEVEN = 0, gem5::ArmISA::FPRounding_POSINF = 1, gem5::ArmISA::FPRounding_NEGINF = 2, gem5::ArmISA::FPRounding_ZERO = 3,
  gem5::ArmISA::FPRounding_TIEAWAY = 4, gem5::ArmISA::FPRounding_ODD = 5
}
 

Functions

static FPRounding gem5::ArmISA::FPCRRounding (FPSCR &fpscr)
 
template<class T >
gem5::ArmISA::fplibAbs (T op)
 Floating-point absolute value. More...
 
template<class T >
gem5::ArmISA::fplibAdd (T op1, T op2, FPSCR &fpscr)
 Floating-point add. More...
 
template<class T >
int gem5::ArmISA::fplibCompare (T op1, T op2, bool signal_nans, FPSCR &fpscr)
 Floating-point compare (quiet and signaling). More...
 
template<class T >
bool gem5::ArmISA::fplibCompareEQ (T op1, T op2, FPSCR &fpscr)
 Floating-point compare equal. More...
 
template<class T >
bool gem5::ArmISA::fplibCompareGE (T op1, T op2, FPSCR &fpscr)
 Floating-point compare greater than or equal. More...
 
template<class T >
bool gem5::ArmISA::fplibCompareGT (T op1, T op2, FPSCR &fpscr)
 Floating-point compare greater than. More...
 
template<class T >
bool gem5::ArmISA::fplibCompareUN (T op1, T op2, FPSCR &fpscr)
 Floating-point compare unordered. More...
 
template<class T1 , class T2 >
T2 gem5::ArmISA::fplibConvert (T1 op, FPRounding rounding, FPSCR &fpscr)
 Floating-point convert precision. More...
 
template<class T >
gem5::ArmISA::fplibDiv (T op1, T op2, FPSCR &fpscr)
 Floating-point division. More...
 
template<class T >
gem5::ArmISA::fplibExpA (T op)
 Floating-point exponential accelerator. More...
 
template<class T >
gem5::ArmISA::fplibMax (T op1, T op2, FPSCR &fpscr)
 Floating-point maximum. More...
 
template<class T >
gem5::ArmISA::fplibMaxNum (T op1, T op2, FPSCR &fpscr)
 Floating-point maximum number. More...
 
template<class T >
gem5::ArmISA::fplibMin (T op1, T op2, FPSCR &fpscr)
 Floating-point minimum. More...
 
template<class T >
gem5::ArmISA::fplibMinNum (T op1, T op2, FPSCR &fpscr)
 Floating-point minimum number. More...
 
template<class T >
gem5::ArmISA::fplibMul (T op1, T op2, FPSCR &fpscr)
 Floating-point multiply. More...
 
template<class T >
gem5::ArmISA::fplibMulAdd (T addend, T op1, T op2, FPSCR &fpscr)
 Floating-point multiply-add. More...
 
template<class T >
gem5::ArmISA::fplibMulX (T op1, T op2, FPSCR &fpscr)
 Floating-point multiply extended. More...
 
template<class T >
gem5::ArmISA::fplibNeg (T op)
 Floating-point negate. More...
 
template<class T >
gem5::ArmISA::fplibRSqrtEstimate (T op, FPSCR &fpscr)
 Floating-point reciprocal square root estimate. More...
 
template<class T >
gem5::ArmISA::fplibRSqrtStepFused (T op1, T op2, FPSCR &fpscr)
 Floating-point reciprocal square root step. More...
 
template<class T >
gem5::ArmISA::fplibRecipEstimate (T op, FPSCR &fpscr)
 Floating-point reciprocal estimate. More...
 
template<class T >
gem5::ArmISA::fplibRecipStepFused (T op1, T op2, FPSCR &fpscr)
 Floating-point reciprocal step. More...
 
template<class T >
gem5::ArmISA::fplibRecpX (T op, FPSCR &fpscr)
 Floating-point reciprocal exponent. More...
 
template<class T >
gem5::ArmISA::fplibRoundInt (T op, FPRounding rounding, bool exact, FPSCR &fpscr)
 Floating-point convert to integer. More...
 
template<class T >
gem5::ArmISA::fplibScale (T op1, T op2, FPSCR &fpscr)
 Floating-point adjust exponent. More...
 
template<class T >
gem5::ArmISA::fplibSqrt (T op, FPSCR &fpscr)
 Floating-point square root. More...
 
template<class T >
gem5::ArmISA::fplibSub (T op1, T op2, FPSCR &fpscr)
 Floating-point subtract. More...
 
template<class T >
gem5::ArmISA::fplibTrigMulAdd (uint8_t coeff_index, T op1, T op2, FPSCR &fpscr)
 Floating-point trigonometric multiply-add coefficient. More...
 
template<class T >
gem5::ArmISA::fplibTrigSMul (T op1, T op2, FPSCR &fpscr)
 Floating-point trigonometric starting value. More...
 
template<class T >
gem5::ArmISA::fplibTrigSSel (T op1, T op2, FPSCR &fpscr)
 Floating-point trigonometric select coefficient. More...
 
template<class T1 , class T2 >
T2 gem5::ArmISA::fplibFPToFixed (T1 op, int fbits, bool u, FPRounding rounding, FPSCR &fpscr)
 Floating-point convert to fixed-point. More...
 
template<>
uint16_t gem5::ArmISA::fplibFixedToFP (uint64_t op, int fbits, bool u, FPRounding rounding, FPSCR &fpscr)
 Floating-point convert from fixed-point. More...
 
template<>
uint16_t gem5::ArmISA::fplibInfinity (int sgn)
 Floating-point value for +/- infinity. More...
 
template<>
uint16_t gem5::ArmISA::fplibDefaultNaN ()
 Foating-point value for default NaN. More...
 
uint32_t gem5::ArmISA::fplibFPToFixedJS (uint64_t op, FPSCR &fpscr, bool Is64, uint8_t &nz)
 Floating-point JS convert to a signed integer, with rounding to zero. More...
 
template<>
uint16_t gem5::ArmISA::fplibAbs (uint16_t op)
 
template<>
uint32_t gem5::ArmISA::fplibAbs (uint32_t op)
 
template<>
uint64_t gem5::ArmISA::fplibAbs (uint64_t op)
 
template<>
uint16_t gem5::ArmISA::fplibAdd (uint16_t op1, uint16_t op2, FPSCR &fpscr)
 
template<>
uint32_t gem5::ArmISA::fplibAdd (uint32_t op1, uint32_t op2, FPSCR &fpscr)
 
template<>
uint64_t gem5::ArmISA::fplibAdd (uint64_t op1, uint64_t op2, FPSCR &fpscr)
 
template<>
int gem5::ArmISA::fplibCompare (uint16_t op1, uint16_t op2, bool signal_nans, FPSCR &fpscr)
 
template<>
int gem5::ArmISA::fplibCompare (uint32_t op1, uint32_t op2, bool signal_nans, FPSCR &fpscr)
 
template<>
int gem5::ArmISA::fplibCompare (uint64_t op1, uint64_t op2, bool signal_nans, FPSCR &fpscr)
 
template<>
bool gem5::ArmISA::fplibCompareEQ (uint16_t a, uint16_t b, FPSCR &fpscr)
 
template<>
bool gem5::ArmISA::fplibCompareEQ (uint32_t a, uint32_t b, FPSCR &fpscr)
 
template<>
bool gem5::ArmISA::fplibCompareEQ (uint64_t a, uint64_t b, FPSCR &fpscr)
 
template<>
bool gem5::ArmISA::fplibCompareGE (uint16_t a, uint16_t b, FPSCR &fpscr)
 
template<>
bool gem5::ArmISA::fplibCompareGE (uint32_t a, uint32_t b, FPSCR &fpscr)
 
template<>
bool gem5::ArmISA::fplibCompareGE (uint64_t a, uint64_t b, FPSCR &fpscr)
 
template<>
bool gem5::ArmISA::fplibCompareGT (uint16_t a, uint16_t b, FPSCR &fpscr)
 
template<>
bool gem5::ArmISA::fplibCompareGT (uint32_t a, uint32_t b, FPSCR &fpscr)
 
template<>
bool gem5::ArmISA::fplibCompareGT (uint64_t a, uint64_t b, FPSCR &fpscr)
 
template<>
bool gem5::ArmISA::fplibCompareUN (uint16_t a, uint16_t b, FPSCR &fpscr)
 
template<>
bool gem5::ArmISA::fplibCompareUN (uint32_t a, uint32_t b, FPSCR &fpscr)
 
template<>
bool gem5::ArmISA::fplibCompareUN (uint64_t a, uint64_t b, FPSCR &fpscr)
 
template<>
uint16_t gem5::ArmISA::fplibConvert (uint32_t op, FPRounding rounding, FPSCR &fpscr)
 
template<>
uint16_t gem5::ArmISA::fplibConvert (uint64_t op, FPRounding rounding, FPSCR &fpscr)
 
template<>
uint32_t gem5::ArmISA::fplibConvert (uint16_t op, FPRounding rounding, FPSCR &fpscr)
 
template<>
uint16_t gem5::ArmISA::fplibDiv (uint16_t op1, uint16_t op2, FPSCR &fpscr)
 
template<>
uint32_t gem5::ArmISA::fplibDiv (uint32_t op1, uint32_t op2, FPSCR &fpscr)
 
template<>
uint64_t gem5::ArmISA::fplibDiv (uint64_t op1, uint64_t op2, FPSCR &fpscr)
 
template<>
uint16_t gem5::ArmISA::fplibExpA (uint16_t op)
 
template<>
uint32_t gem5::ArmISA::fplibExpA (uint32_t op)
 
template<>
uint64_t gem5::ArmISA::fplibExpA (uint64_t op)
 
template<>
uint16_t gem5::ArmISA::fplibMax (uint16_t op1, uint16_t op2, FPSCR &fpscr)
 
template<>
uint32_t gem5::ArmISA::fplibMax (uint32_t op1, uint32_t op2, FPSCR &fpscr)
 
template<>
uint64_t gem5::ArmISA::fplibMax (uint64_t op1, uint64_t op2, FPSCR &fpscr)
 
template<>
uint16_t gem5::ArmISA::fplibMaxNum (uint16_t op1, uint16_t op2, FPSCR &fpscr)
 
template<>
uint32_t gem5::ArmISA::fplibMaxNum (uint32_t op1, uint32_t op2, FPSCR &fpscr)
 
template<>
uint64_t gem5::ArmISA::fplibMaxNum (uint64_t op1, uint64_t op2, FPSCR &fpscr)
 
template<>
uint16_t gem5::ArmISA::fplibMin (uint16_t op1, uint16_t op2, FPSCR &fpscr)
 
template<>
uint32_t gem5::ArmISA::fplibMin (uint32_t op1, uint32_t op2, FPSCR &fpscr)
 
template<>
uint64_t gem5::ArmISA::fplibMin (uint64_t op1, uint64_t op2, FPSCR &fpscr)
 
template<>
uint16_t gem5::ArmISA::fplibMinNum (uint16_t op1, uint16_t op2, FPSCR &fpscr)
 
template<>
uint32_t gem5::ArmISA::fplibMinNum (uint32_t op1, uint32_t op2, FPSCR &fpscr)
 
template<>
uint64_t gem5::ArmISA::fplibMinNum (uint64_t op1, uint64_t op2, FPSCR &fpscr)
 
template<>
uint16_t gem5::ArmISA::fplibMul (uint16_t op1, uint16_t op2, FPSCR &fpscr)
 
template<>
uint32_t gem5::ArmISA::fplibMul (uint32_t op1, uint32_t op2, FPSCR &fpscr)
 
template<>
uint64_t gem5::ArmISA::fplibMul (uint64_t op1, uint64_t op2, FPSCR &fpscr)
 
template<>
uint16_t gem5::ArmISA::fplibMulAdd (uint16_t addend, uint16_t op1, uint16_t op2, FPSCR &fpscr)
 
template<>
uint32_t gem5::ArmISA::fplibMulAdd (uint32_t addend, uint32_t op1, uint32_t op2, FPSCR &fpscr)
 
template<>
uint64_t gem5::ArmISA::fplibMulAdd (uint64_t addend, uint64_t op1, uint64_t op2, FPSCR &fpscr)
 
template<>
uint16_t gem5::ArmISA::fplibMulX (uint16_t op1, uint16_t op2, FPSCR &fpscr)
 
template<>
uint32_t gem5::ArmISA::fplibMulX (uint32_t op1, uint32_t op2, FPSCR &fpscr)
 
template<>
uint64_t gem5::ArmISA::fplibMulX (uint64_t op1, uint64_t op2, FPSCR &fpscr)
 
template<>
uint16_t gem5::ArmISA::fplibNeg (uint16_t op)
 
template<>
uint32_t gem5::ArmISA::fplibNeg (uint32_t op)
 
template<>
uint64_t gem5::ArmISA::fplibNeg (uint64_t op)
 
template<>
uint16_t gem5::ArmISA::fplibRSqrtEstimate (uint16_t op, FPSCR &fpscr)
 
template<>
uint32_t gem5::ArmISA::fplibRSqrtEstimate (uint32_t op, FPSCR &fpscr)
 
template<>
uint64_t gem5::ArmISA::fplibRSqrtEstimate (uint64_t op, FPSCR &fpscr)
 
template<>
uint16_t gem5::ArmISA::fplibRSqrtStepFused (uint16_t op1, uint16_t op2, FPSCR &fpscr)
 
template<>
uint32_t gem5::ArmISA::fplibRSqrtStepFused (uint32_t op1, uint32_t op2, FPSCR &fpscr)
 
template<>
uint64_t gem5::ArmISA::fplibRSqrtStepFused (uint64_t op1, uint64_t op2, FPSCR &fpscr)
 
template<>
uint16_t gem5::ArmISA::fplibRecipEstimate (uint16_t op, FPSCR &fpscr)
 
template<>
uint32_t gem5::ArmISA::fplibRecipEstimate (uint32_t op, FPSCR &fpscr)
 
template<>
uint64_t gem5::ArmISA::fplibRecipEstimate (uint64_t op, FPSCR &fpscr)
 
template<>
uint16_t gem5::ArmISA::fplibRecipStepFused (uint16_t op1, uint16_t op2, FPSCR &fpscr)
 
template<>
uint32_t gem5::ArmISA::fplibRecipStepFused (uint32_t op1, uint32_t op2, FPSCR &fpscr)
 
template<>
uint64_t gem5::ArmISA::fplibRecipStepFused (uint64_t op1, uint64_t op2, FPSCR &fpscr)
 
template<>
uint16_t gem5::ArmISA::fplibRecpX (uint16_t op, FPSCR &fpscr)
 
template<>
uint32_t gem5::ArmISA::fplibRecpX (uint32_t op, FPSCR &fpscr)
 
template<>
uint64_t gem5::ArmISA::fplibRecpX (uint64_t op, FPSCR &fpscr)
 
template<>
uint16_t gem5::ArmISA::fplibRoundInt (uint16_t op, FPRounding rounding, bool exact, FPSCR &fpscr)
 
template<>
uint32_t gem5::ArmISA::fplibRoundInt (uint32_t op, FPRounding rounding, bool exact, FPSCR &fpscr)
 
template<>
uint64_t gem5::ArmISA::fplibRoundInt (uint64_t op, FPRounding rounding, bool exact, FPSCR &fpscr)
 
template<>
uint16_t gem5::ArmISA::fplibScale (uint16_t op1, uint16_t op2, FPSCR &fpscr)
 
template<>
uint32_t gem5::ArmISA::fplibScale (uint32_t op1, uint32_t op2, FPSCR &fpscr)
 
template<>
uint64_t gem5::ArmISA::fplibScale (uint64_t op1, uint64_t op2, FPSCR &fpscr)
 
template<>
uint16_t gem5::ArmISA::fplibSqrt (uint16_t op, FPSCR &fpscr)
 
template<>
uint32_t gem5::ArmISA::fplibSqrt (uint32_t op, FPSCR &fpscr)
 
template<>
uint64_t gem5::ArmISA::fplibSqrt (uint64_t op, FPSCR &fpscr)
 
template<>
uint16_t gem5::ArmISA::fplibSub (uint16_t op1, uint16_t op2, FPSCR &fpscr)
 
template<>
uint32_t gem5::ArmISA::fplibSub (uint32_t op1, uint32_t op2, FPSCR &fpscr)
 
template<>
uint64_t gem5::ArmISA::fplibSub (uint64_t op1, uint64_t op2, FPSCR &fpscr)
 
template<>
uint16_t gem5::ArmISA::fplibTrigMulAdd (uint8_t coeff_index, uint16_t op1, uint16_t op2, FPSCR &fpscr)
 
template<>
uint32_t gem5::ArmISA::fplibTrigMulAdd (uint8_t coeff_index, uint32_t op1, uint32_t op2, FPSCR &fpscr)
 
template<>
uint64_t gem5::ArmISA::fplibTrigMulAdd (uint8_t coeff_index, uint64_t op1, uint64_t op2, FPSCR &fpscr)
 
template<>
uint16_t gem5::ArmISA::fplibTrigSMul (uint16_t op1, uint16_t op2, FPSCR &fpscr)
 
template<>
uint32_t gem5::ArmISA::fplibTrigSMul (uint32_t op1, uint32_t op2, FPSCR &fpscr)
 
template<>
uint64_t gem5::ArmISA::fplibTrigSMul (uint64_t op1, uint64_t op2, FPSCR &fpscr)
 
template<>
uint16_t gem5::ArmISA::fplibTrigSSel (uint16_t op1, uint16_t op2, FPSCR &fpscr)
 
template<>
uint32_t gem5::ArmISA::fplibTrigSSel (uint32_t op1, uint32_t op2, FPSCR &fpscr)
 
template<>
uint64_t gem5::ArmISA::fplibTrigSSel (uint64_t op1, uint64_t op2, FPSCR &fpscr)
 
template<>
uint16_t gem5::ArmISA::fplibFPToFixed (uint16_t op, int fbits, bool u, FPRounding rounding, FPSCR &fpscr)
 
template<>
uint32_t gem5::ArmISA::fplibFPToFixed (uint32_t op, int fbits, bool u, FPRounding rounding, FPSCR &fpscr)
 
template<>
uint32_t gem5::ArmISA::fplibFPToFixed (uint64_t op, int fbits, bool u, FPRounding rounding, FPSCR &fpscr)
 

Detailed Description

Floating-point library code, which will gradually replace vfp.hh. For portability, this library does not use floating-point data types. Currently, C's standard integer types are used in the API, though this could be changed to something like class Fp32 { uint32_t x; }, etc.

Definition in file fplib.hh.


Generated on Thu Jul 28 2022 13:32:44 for gem5 by doxygen 1.8.17