Andrei Alexeyev
5fa908602f
simd/x86: fix -Wcast-align warnings (gcc/clang)
...
This modifies glmm_{load,store}3 functions to make the compiler assume
the v pointer is appropriately aligned for the type it is being cast to.
Not tested with CGLM_ALL_UNALIGNED, but it probably doesn't matter.
2020-11-08 20:09:57 +02:00
Luigi Castelli
27cc9c3351
vec: some useful functions ( #103 )
...
These functions are added:
- abs(): absolute value
- fract(): fractional part
- norm_one(): L1 norm
- norm_inf(): infinity norm
- hadd(): horizontal add
- hmax(): horizontal max
2019-09-01 00:30:15 +03:00
Luigi Castelli
1d804781de
swapped argument order in glmm_store3() ( #102 )
...
close https://github.com/recp/cglm/issues/101
2019-08-26 16:37:44 +03:00
Luigi Castelli
43b36f1dc1
squared distance with SIMD support ( #96 )
...
squared distance for vec4
2019-08-23 10:32:54 +03:00
Recep Aslantas
bb8ff25752
Revert "mark readonly parameters as const"
2019-04-30 08:19:07 +03:00
Recep Aslantas
6ed275734b
mark readonly parameters as const
2019-04-28 12:15:43 +03:00
Recep Aslantas
fc7f958167
simd: remove re-load in SSE4 and SSE3
2019-01-25 21:56:17 +03:00
Recep Aslantas
31bb303c55
simd: organise SIMD-functions
...
* optimize dot product
2019-01-24 10:17:49 +03:00