-
Notifications
You must be signed in to change notification settings - Fork 0
/
todo.go
21 lines (18 loc) · 593 Bytes
/
todo.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package vector
/*
These are trickier to write within Go's generics:
FloatBits, FloatFromBits - need to specify float32 or float64 because there is no way to deduce uint64 <-> float64, uint32 <-> float32
Mod/Rem - can be done with 2 different operation names but ints need x%y while floats need math.Mod(x,y)
Compress
Expand
Extract? Insert? - probably not because we can just index the [N]T array
AddSaturated? ints only
AverageInt ?
Uint64 multiple hi and lo e.g. VPMULHUW
Horizontal reductions
vec2.Split should return T not [1]T
math.Round
math.RoundToEven
math.Signbit
math.Copysign
*/