debug of obimultiplex

Former-commit-id: 1cf276840feb9d6135d96bd1bf63627d3085ae6e
This commit is contained in:
Eric Coissac
2024-06-18 23:38:33 +02:00
parent 44533fb61e
commit a812fe8b72
9 changed files with 468 additions and 50 deletions

10
pkg/obiutils/abs.go Normal file
View File

@ -0,0 +1,10 @@
package obiutils
import "golang.org/x/exp/constraints"
func Abs[T constraints.Signed](x T) T {
if x < 0 {
return -x
}
return x
}