Skip to content

Commit

Permalink
utility to print selected simd path
Browse files Browse the repository at this point in the history
  • Loading branch information
recp committed Apr 7, 2023
1 parent 1d51459 commit a542d54
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions include/cglm/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a542d54

Please sign in to comment.