myfreeer
07bc4be18b
simd128: cmake options
...
After this, the required options for cmake are listed below:
```
-DCMAKE_C_FLAGS="-msimd128"
-DCMAKE_TOOLCHAIN_FILE=/path/to/wasi-sdk-19.0/share/cmake/wasi-sdk.cmake
-DWASI_SDK_PREFIX=/path/to/wasi-sdk-19.0
-DCGLM_USE_TEST=ON
```
If compiling to wasi with simd128 support, `-DCMAKE_C_FLAGS="-msimd128"` can be removed.
If tests are not needed, `-DCGLM_USE_TEST=ON` can be removed.
2023-04-02 13:09:00 +08:00
myfreeer
3a9e4df393
simd128: handle both sse2 and simd128 enabled by Emscripten
...
https://github.com/recp/cglm/pull/286#issuecomment-1492985403
2023-04-02 12:39:20 +08:00
myfreeer
7ca9a64ecf
simd128: code style
2023-04-01 19:38:57 +08:00
myfreeer
51ce4db82e
simd128: code style
2023-04-01 19:38:28 +08:00
myfreeer
73adfe08c0
simd128: inline _mm_cvtss_f32
2023-04-01 19:34:19 +08:00
myfreeer
48d6ab79bd
simd128: inline _mm_movehl_ps
2023-04-01 19:28:45 +08:00
myfreeer
e40b477929
simd128: inline _mm_movelh_ps
2023-04-01 19:19:49 +08:00
myfreeer
5e05eec6d6
simd128: inline _MM_TRANSPOSE4_PS
2023-04-01 19:03:48 +08:00
myfreeer
3aca10ecda
simd128: minor lint
2023-03-29 20:41:47 +08:00
myfreeer
5c7cd42407
simd128: inline _mm_sqrt_ss
2023-03-29 20:22:03 +08:00
myfreeer
e27f80b0bb
simd128: inline _mm_rcp_ps
2023-03-29 20:16:16 +08:00
myfreeer
3845345f4c
simd128: inline _mm_storeu_ps and _mm_store_ss
2023-03-29 20:12:51 +08:00
myfreeer
998d9626a2
simd128: inline _mm_unpackhi_ps and _mm_unpacklo_ps
2023-03-26 19:34:08 +08:00
myfreeer
84b482971d
simd128: inline _mm_shuffle_ps
2023-03-26 19:34:08 +08:00
myfreeer
f24ec41a26
simd128: inline _mm_shuffle_ps for glmm_shuff1
2023-03-26 19:34:08 +08:00
myfreeer
e62b782039
simd128: fix a const in glm_mat4_inv_fast_wasm
...
making it the same as glm_mat4_inv_wasm, does not make any difference in tests
2023-03-26 19:34:08 +08:00
myfreeer
be76d96e8f
simd128: inline _mm_set_ps
2023-03-26 19:34:07 +08:00
myfreeer
03c7bee863
simd128: inline some functions
2023-03-26 19:34:07 +08:00
myfreeer
71c585b159
simd128: enable in headers
2023-03-26 19:34:07 +08:00
myfreeer
6b7a63953c
simd128: enable in mat2
2023-03-26 19:34:07 +08:00
myfreeer
fdef58bd1a
simd128: enable in mat3
2023-03-26 19:34:07 +08:00
myfreeer
a0dd85f3d1
simd128: enable in quat
2023-03-26 19:34:07 +08:00
myfreeer
84c521c203
simd128: enable in mat4
2023-03-26 19:34:07 +08:00
myfreeer
5d60c17435
simd128: fix tests for vec4_norm_one and vec4_norm_inf
2023-03-26 19:34:07 +08:00
myfreeer
da5f18f10f
simd128: fix tests for glm_inv_tr
2023-03-26 19:34:07 +08:00
myfreeer
2bc9573e1a
simd128: include a fix
2023-03-26 19:34:07 +08:00
myfreeer
576d1d141e
initial code on wasm simd128
2023-03-26 19:34:07 +08:00
Recep Aslantas
92a8e38162
vscode settings
2023-03-23 23:18:08 +03:00
Recep Aslantas
dd3c3ceae0
Merge pull request #280 from recp/win32-msvc-arm-neon
...
fix building ARM NEON on windows & msvc
2023-03-16 13:19:47 +03:00
Recep Aslantas
77b4c5cffb
reset visual studio tool verisons
2023-03-16 13:16:24 +03:00
Recep Aslantas
e276b5b405
Update intrin.h
2023-03-14 09:54:32 +03:00
Recep Aslantas
13ed79a61a
arm: fix checking arm64
2023-03-12 16:43:47 +03:00
Recep Aslantas
ba993b3ea9
arm: use intrin to set/init vec4 as @gottfriedleibniz suggests
2023-03-11 14:15:30 +03:00
Recep Aslantas
4a6fc485fd
use CGLM_SIMD_NEON instead of CGLM_NEON_FP
2023-03-09 22:16:39 +03:00
Recep Aslantas
9ed325018d
Update intrin.h
2023-03-09 22:06:20 +03:00
Recep Aslantas
a30baffafa
arm: update ARM/NEON macros
2023-03-09 21:56:25 +03:00
Recep Aslantas
8a117017ea
fix building ARM NEON on windows & msvc
2023-03-07 13:11:08 +03:00
Recep Aslantas
799749fc6a
Merge pull request #279 from NeRdTheNed/master
...
Check for builtin before using it
2023-03-07 03:44:36 +03:00
Ned Loynd
f4c9ddf530
Check for builtin before using it
...
The check for __has_builtin being defined and using the __has_builtin() macro need to be on different lines, as when __has_builtin is not defined, using the __has_builtin() macro is an invalid preprocessor directive.
2023-03-07 10:17:44 +11:00
Recep Aslantas
bc8dc72739
now working on v0.9.0
2023-02-08 18:12:23 +03:00
Recep Aslantas
3eafc599ac
Merge pull request #277 from Ransel117/patch-1
...
Fixed glm_mat4_mulv3
2023-02-08 18:09:58 +03:00
Ransel117
7fba424f64
Fixed glm_mat4_mulv3
...
Fixed it so that the function has all of it's parameters in the comments
2023-02-05 20:57:36 +01:00
Recep Aslantas
c51040cd41
Merge pull request #276 from recp/cmake-fix-buildtype
...
cmake: prevent overriding CMAKE_BUILD_TYPE if it is subdirectory
v0.8.9
2023-01-27 21:01:54 +03:00
Recep Aslantas
9fc3a20d0f
cmake: prevent overriding CMAKE_BUILD_TYPE if it is subdirectory
2023-01-26 11:07:08 +03:00
Recep Aslantas
7f1c062696
Merge pull request #274 from duarm/master
...
Adding initialization macros for ivec types
2023-01-17 21:07:32 +03:00
duarm
e70571e9e0
ivec initialization macros docs, fixing vec2 macro docs
2023-01-15 20:52:18 -03:00
duarm
007ee48b58
adding initialization macros for ivec types
2023-01-15 20:47:40 -03:00
Recep Aslantas
38771599c7
Merge pull request #273 from JulianSchoenbaechler/fix-Wdouble-promotion
...
Make implicit double promotion/casting explicit (fixes #228 )
2022-12-31 21:18:40 +03:00
Julian Schönbächler
bfd87acfc4
Make double promotion in printf args explicit
...
Also use f-suffix on epsilon definitions for float comparisons.
2022-12-29 13:00:15 +01:00
Recep Aslantas
a38622e1d6
Merge pull request #272 from Artturin/revert259
...
Revert "fix: simplified pkgconfig generation"
2022-12-19 20:07:37 +03:00