diff --git a/dep/rapidyaml/include/c4/cpu.hpp b/dep/rapidyaml/include/c4/cpu.hpp index f37b9fa14..a6cd4952f 100644 --- a/dep/rapidyaml/include/c4/cpu.hpp +++ b/dep/rapidyaml/include/c4/cpu.hpp @@ -131,6 +131,16 @@ # endif # define C4_BYTE_ORDER _C4EL +#elif defined(__loongarch__) +# if defined(__loongarch64) +# define C4_CPU_LOONGARCH64 +# define C4_WORDSIZE 8 +# else +# define C4_CPU_LOONGARCH +# define C4_WORDSIZE 4 +# endif +# define C4_BYTE_ORDER _C4EL + #elif defined(__EMSCRIPTEN__) # define C4_BYTE_ORDER _C4EL # define C4_WORDSIZE 4