From a133942025da6fa62bb059b02f4e7a4b6e03e34a Mon Sep 17 00:00:00 2001 From: caiyinyu Date: Tue, 19 Jul 2022 09:20:46 +0800 Subject: LoongArch: ABI Implementation --- sysdeps/loongarch/bits/endianness.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 sysdeps/loongarch/bits/endianness.h (limited to 'sysdeps/loongarch/bits/endianness.h') diff --git a/sysdeps/loongarch/bits/endianness.h b/sysdeps/loongarch/bits/endianness.h new file mode 100644 index 0000000000..7290be7b18 --- /dev/null +++ b/sysdeps/loongarch/bits/endianness.h @@ -0,0 +1,11 @@ +#ifndef _BITS_ENDIANNESS_H +#define _BITS_ENDIANNESS_H 1 + +#ifndef _BITS_ENDIAN_H +#error "Never use directly; include instead." +#endif + +/* LoongArch is little-endian. */ +#define __BYTE_ORDER __LITTLE_ENDIAN + +#endif /* bits/endianness.h */ -- cgit 1.4.1