testlapack: consolidate floating-point constants

This commit is contained in:
Vladimir Chalupecky
2021-05-27 13:03:22 +02:00
committed by Vladimír Chalupecký
parent 7a7717c859
commit 8c7f0017f9
9 changed files with 77 additions and 89 deletions

View File

@@ -24,6 +24,12 @@ const (
dlamchP = dlamchB * dlamchE
// dlamchS is the smallest normal number. For IEEE this is 2^{-1022}.
dlamchS = 0x1p-1022
safmin = dlamchS
safmax = 1 / safmin
ulp = dlamchP
smlnum = safmin / ulp
bignum = safmax * ulp
)
func max(a, b int) int {