Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Case ¶
type Case struct { ID string Prec int Clamp bool Mode RoundingMode MaxScale int MinScale int Op Op Inputs []Data Output Data Conditions Condition }
func (Case) ShortString ¶
ShortString returns the same as String, except long data values are capped at length digits.
type Data ¶
type Data string
Data is input or output from a test case.
const NoData Data = "?"
NoData is output when the operation throws some sort of Condition and does not "return" any data.
func (Data) IsInf ¶
IsInf returns a boolean indicating whether the data is an Infinity and an int indicating the signedness of the Infinity.
func (Data) IsNaN ¶
IsNaN returns two booleans indicating whether the data is a NaN value and whether it's signaling or not.
func (Data) TrimQuotes ¶
type Op ¶
type Op uint8
Op is a specific operation the test case must perform.
const ( OpUnknownOp Op = iota OpAbs OpAdd OpAnd OpApply OpCanonical OpClass OpCompare OpCompareSig OpCompareTotal OpCompareTotMag OpCopy OpCopyAbs OpCopyNegate OpCopySign OpDivide OpDivideInt OpExp OpFMA OpInvert OpLn OpLog10 OpLogB OpMax OpMaxMag OpMin OpMinMag OpMinus OpMultiply OpNextMinus OpNextPlus OpNextToward OpOr OpPlus OpPower OpQuantize OpReduce OpRemainder OpRemainderNear OpRescale OpRotate OpSameQuantum OpScaleB OpShift OpSquareRoot OpSubtract OpToEng OpToIntegral OpToIntegralX OpToSci OpTrim OpXor )
Click to show internal directories.
Click to hide internal directories.