warning: array subscript # is outside array bounds
of ‘float[#]’ [-Warray-bounds]
Commit also fixes variable order when calculating
multiplication between two matrices.
Signed-off-by: Vincent Davis Jr <vince@underview.tech>
__builtin_assume_aligned is available since GCC 4.7, but __has_builtin
was added much later. Check for the GCC version if __has_builtin is not
available.
Users can also define CGLM_HAVE_BUILTIN_ASSUME_ALIGNED to either 1 or 0
to explicitly enable/disable the use of __builtin_assume_aligned. Meson
will do it automatically (by performing a configure-time test).
Missing tests where
* MACRO_GLM_MAT2X3_ZERO_INIT
* MACRO_GLM_MAT2X3_ZERO
* mat2x3s_zero_init
* mat2x3s_zero
* mat2x4s_zero_init
* mat2x4s_zero
Commit:
* removes (mat2x3) from
((mat2x3)GLM_MAT2X3_ZERO_INIT) to fix
error: array initialized from non-constant array expression
* removes test_assert_mat2x3_eq_zero
from test/src/test_struct.c
* adds TEST_IMPL(mat2x3s_zero) to
test/src/test_struct.c
Signed-off-by: Vincent Davis Jr <vince@underview.tech>
Function takes in a float array. Array must be
at least of size 4 and converts it into
a 4D vector.
Signed-off-by: Vincent Davis Jr <vince@underview.tech>
Function takes in a float array. Array must be
at least of size 3 and converts it into
a 3D vector.
Signed-off-by: Vincent Davis Jr <vince@underview.tech>
Just a copy of glm_vec2, but with the
word _make suffixed at the end.
Function takes in a float array array must be
at least of size 2 and converts it into
a 2D vector.
Signed-off-by: Vincent Davis Jr <vince@underview.tech>
Makes it so that it's easier to identify
the potential usecase of function. Commit also
includes a fix to the struct/quat.h glms_quat_make
comment. Should be returning versors it's not
a void function.
Signed-off-by: Vincent Davis Jr <vince@underview.tech>
Problem:
../test/runner.c:29:3: error: implicit declaration of function
‘glm_arch_print’ [-Werror=implicit-function-declaration]
29 | glm_arch_print(stderr);
| ^~~~~~~~~~~~~~
| glm_vec2_print
glm_arch_print is not available unless you add the DEBUG macro.
Signed-off-by: Vincent Davis Jr <vince@underview.tech>