History

add more missing functions (to run SunVox)

Sigrid Solveig Haflínudóttir committed 2 months ago

Commit 6d0ae021 parent 8fa8ef51 file · +38 −0Browse files

Unified · Split

mvec.c+38−0
@@ -22,6 +22,36 @@ _ZGVbN4v_expf(v4sf x) · 21 unmodified lines
2222 return x;
2323 }
2424
25+v4sf
26+_ZGVbN4v_sinf(v4sf x)
27+{
28+ x[0] = sinf(x[0]);
29+ x[1] = sinf(x[1]);
30+ x[2] = sinf(x[2]);
31+ x[3] = sinf(x[3]);
32+ return x;
33+}
34+
35+v4sf
36+_ZGVbN4v_cosf(v4sf x)
37+{
38+ x[0] = cosf(x[0]);
39+ x[1] = cosf(x[1]);
40+ x[2] = cosf(x[2]);
41+ x[3] = cosf(x[3]);
42+ return x;
43+}
44+
45+v4sf
46+_ZGVbN4v_log10f(v4sf x)
47+{
48+ x[0] = log10f(x[0]);
49+ x[1] = log10f(x[1]);
50+ x[2] = log10f(x[2]);
51+ x[3] = log10f(x[3]);
52+ return x;
53+}
54+
2555 v2df
2656 _ZGVbN2v_log(v2df x)
2757 {
@@ -40,6 +70,14 @@ _ZGVbN4v_logf(v4sf x) · 12 unmodified lines
4070 return x;
4171 }
4272
73+v2df
74+_ZGVbN2v_cos(v2df x)
75+{
76+ x[0] = cos(x[0]);
77+ x[1] = cos(x[1]);
78+ return x;
79+}
80+
4381 v2df
4482 _ZGVbN2v_sin(v2df x)
4583 {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t