sse2 version of vec4 dot product

* use this for normalizing vector
This commit is contained in:
Recep Aslantas
2018-04-08 18:27:54 +03:00
parent 932f638d5a
commit e4e0fa623c
7 changed files with 61 additions and 3 deletions

View File

@@ -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));