Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit b60a4a8

Browse files
committed
Use updated FML defines
1 parent f40a4ee commit b60a4a8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

fml/endianness.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ constexpr T ByteSwap(T n) {
4949
/// The given value must be an integral type of size 1, 2, 4, or 8.
5050
template <typename T, class = std::enable_if_t<std::is_integral_v<T>>>
5151
constexpr T BigEndianToArch(T n) {
52-
#if ARCH_CPU_LITTLE_ENDIAN
52+
#if FML_ARCH_CPU_LITTLE_ENDIAN
5353
return ByteSwap<T>(n);
5454
#else
5555
return n;
@@ -61,7 +61,7 @@ constexpr T BigEndianToArch(T n) {
6161
/// The given value must be an integral type of size 1, 2, 4, or 8.
6262
template <typename T, class = std::enable_if_t<std::is_integral_v<T>>>
6363
constexpr T LittleEndianToArch(T n) {
64-
#if !ARCH_CPU_LITTLE_ENDIAN
64+
#if !FML_ARCH_CPU_LITTLE_ENDIAN
6565
return ByteSwap<T>(n);
6666
#else
6767
return n;

fml/endianness_unittests.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ TEST(EndiannessTest, ByteSwap) {
1616
}
1717

1818
TEST(EndiannessTest, BigEndianToArch) {
19-
#if ARCH_CPU_LITTLE_ENDIAN
19+
#if FML_ARCH_CPU_LITTLE_ENDIAN
2020
uint32_t expected = 0x44332211;
2121
#else
2222
uint32_t expected = 0x11223344;
@@ -25,7 +25,7 @@ TEST(EndiannessTest, BigEndianToArch) {
2525
}
2626

2727
TEST(EndiannessTest, LittleEndianToArch) {
28-
#if ARCH_CPU_LITTLE_ENDIAN
28+
#if FML_ARCH_CPU_LITTLE_ENDIAN
2929
uint32_t expected = 0x11223344;
3030
#else
3131
uint32_t expected = 0x44332211;

0 commit comments

Comments
 (0)