diff --git a/include/cglm/io.h b/include/cglm/io.h index 3381cff69..97837f37c 100644 --- a/include/cglm/io.h +++ b/include/cglm/io.h @@ -60,6 +60,27 @@ # define CGLM_PRINT_COLOR_RESET "\033[0m" #endif +CGLM_INLINE +void +glm_arch_print_name(FILE* __restrict ostream) { +#ifdef CGLM_SIMD_x86 + fprintf(ostream, CGLM_PRINT_COLOR "\ncglm arch: x86 SSE*" +#ifdef __AVX__ + " AVX" +#endif + "\n\n" CGLM_PRINT_COLOR_RESET); +#elif defined(CGLM_SIMD_ARM) + fprintf(ostream, CGLM_PRINT_COLOR "\ncglm arch: arm" +#ifndef __ARM_NEON_FP + " NEON_FP" +#endif +#ifdef CGLM_ARM64 + " ARM64" +#endif + "\n\n" CGLM_PRINT_COLOR_RESET); +#endif +} + CGLM_INLINE void glm_mat4_print(mat4 matrix,