forked from elliotchance/c2go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
math.go
58 lines (45 loc) · 777 Bytes
/
math.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package darwin
import (
"math"
)
type Float2 struct {
Sinval float32
Cosval float32
}
type Double2 struct {
Sinval float64
Cosval float64
}
func Fabsf(x float32) float32 {
return float32(math.Abs(float64(x)))
}
func Fabs(x float64) float64 {
return math.Abs(x)
}
func Fabsl(x float64) float64 {
return math.Abs(x)
}
func Inff() float32 {
return float32(math.Inf(0))
}
func Inf() float64 {
return math.Inf(0)
}
func Infl() float64 {
return math.Inf(0)
}
func SincosfStret(x float32) Float2 {
return Float2{0, 0}
}
func SincosStret(x float64) Double2 {
return Double2{0, 0}
}
func SincospifStret(x float32) Float2 {
return Float2{0, 0}
}
func SincospiStret(x float64) Double2 {
return Double2{0, 0}
}
func NaN(s []byte) float64 {
return math.NaN()
}