mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
sse2 version of vec4 dot product
* use this for normalizing vector
This commit is contained in:
@@ -36,6 +36,16 @@ test_rand_vec3(vec3 dest) {
|
||||
dest[2] = drand48();
|
||||
}
|
||||
|
||||
void
|
||||
test_rand_vec4(vec4 dest) {
|
||||
srand((unsigned int)time(NULL));
|
||||
|
||||
dest[0] = drand48();
|
||||
dest[1] = drand48();
|
||||
dest[2] = drand48();
|
||||
dest[3] = drand48();
|
||||
}
|
||||
|
||||
float
|
||||
test_rand_angle(void) {
|
||||
srand((unsigned int)time(NULL));
|
||||
|
||||
Reference in New Issue
Block a user