Documentation ¶
Index ¶
- type FPException
- type FPRounding
- type FPSCR
- func (fpscr *FPSCR) AHP() bool
- func (fpscr *FPSCR) C() bool
- func (fpscr *FPSCR) DN() bool
- func (fpscr *FPSCR) FZ() bool
- func (fpscr *FPSCR) N() bool
- func (fpscr *FPSCR) RMode() FPRounding
- func (fpscr *FPSCR) SetAHP(set bool)
- func (fpscr *FPSCR) SetC(set bool)
- func (fpscr *FPSCR) SetDN(set bool)
- func (fpscr *FPSCR) SetFZ(set bool)
- func (fpscr *FPSCR) SetN(set bool)
- func (fpscr *FPSCR) SetNZCV(nzcv uint8)
- func (fpscr *FPSCR) SetRMode(mode FPRounding)
- func (fpscr *FPSCR) SetUFC(set bool)
- func (fpscr *FPSCR) SetV(set bool)
- func (fpscr *FPSCR) SetZ(set bool)
- func (fpscr *FPSCR) UFC() bool
- func (fpscr *FPSCR) V() bool
- func (fpscr *FPSCR) Value() uint32
- func (fpscr *FPSCR) Z() bool
- type FPType
- type FPU
- func (fpu *FPU) FPAbs(value uint64, N int) uint64
- func (fpu *FPU) FPAdd(op1 uint64, op2 uint64, N int, fpscrControlled bool) uint64
- func (fpu *FPU) FPCompare(op1 uint64, op2 uint64, N int, quietNaNexc bool, fpscrControlled bool)
- func (fpu *FPU) FPDefaultNaN(N int) uint64
- func (fpu *FPU) FPDiv(op1 uint64, op2 uint64, N int, fpscrControlled bool) uint64
- func (fpu *FPU) FPInfinity(sign bool, N int) uint64
- func (fpu *FPU) FPMaxNormal(sign bool, N int) uint64
- func (fpu *FPU) FPMul(op1 uint64, op2 uint64, N int, fpscrControlled bool) uint64
- func (fpu *FPU) FPMulAdd(addend uint64, op1 uint64, op2 uint64, N int, fpscrControlled bool) uint64
- func (fpu *FPU) FPNeg(value uint64, N int) uint64
- func (fpu *FPU) FPProcessException(exception FPException, fpscr FPSCR)
- func (fpu *FPU) FPProcessNaN(typ FPType, N int, op uint64, fpscr FPSCR) uint64
- func (fpu *FPU) FPProcessNaNs(typ1 FPType, typ2 FPType, N int, op1 uint64, op2 uint64, fpscr FPSCR) (bool, uint64)
- func (fpu *FPU) FPProcessNaNs3(typ1 FPType, typ2 FPType, typ3 FPType, N int, op1 uint64, op2 uint64, ...) (bool, uint64)
- func (fpu *FPU) FPRound(value float64, N int, fpscr FPSCR) uint64
- func (fpu *FPU) FPSub(op1 uint64, op2 uint64, N int, fpscrControlled bool) uint64
- func (fpu *FPU) FPToFixed(operand uint64, N int, fractionBits int, unsigned bool, roundZero bool, ...) uint64
- func (fpu *FPU) FPUnpack(fpval uint64, N int, fpscr FPSCR) (FPType, bool, float64)
- func (fpu *FPU) FPZero(sign bool, N int) uint64
- func (fpu *FPU) FixedToFP(operand uint64, N int, fractionBits int, unsigned bool, nearest bool, ...) uint64
- func (fpu *FPU) SignedSatQ(i int, N int) (uint64, bool)
- func (fpu *FPU) StandardFPSCRValue() FPSCR
- func (fpu *FPU) UnsignedSatQ(i int, N int) (uint64, bool)
- func (fpu *FPU) VFPExpandImm(imm8 uint8, N int) uint64
- type VFPNegMul
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FPException ¶
type FPException int
const ( FPExc_InvalidOp FPException = iota FPExc_DivideByZero FPExc_Overflow FPExc_Underflow FPExc_Inexact FPExc_InputDenorm )
type FPRounding ¶
type FPRounding byte
const ( FPRoundNearest FPRounding = 0b00 FPRoundPlusInf FPRounding = 0b01 FPRoundNegInf FPRounding = 0b10 FPRoundZero FPRounding = 0b11 )
List of valid rounding methods for FPU
type FPSCR ¶
type FPSCR struct {
// contains filtered or unexported fields
}
func (*FPSCR) RMode ¶
func (fpscr *FPSCR) RMode() FPRounding
func (*FPSCR) SetNZCV ¶
SetNZCV sets all four basic status registers at once. The upper four bits of the nzcv parameter are ignored
func (*FPSCR) SetRMode ¶
func (fpscr *FPSCR) SetRMode(mode FPRounding)
type FPU ¶
func (*FPU) FPDefaultNaN ¶
func (*FPU) FPProcessException ¶
func (fpu *FPU) FPProcessException(exception FPException, fpscr FPSCR)
func (*FPU) FPProcessNaN ¶
func (*FPU) FPProcessNaNs ¶
func (*FPU) FPProcessNaNs3 ¶
func (*FPU) StandardFPSCRValue ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.