From 4fc694185a0302cd6caabf3a013e2eabf44cdcd4 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 27 Jan 2025 23:43:39 -0500 Subject: [PATCH] [hvgl] Rename "be" var to "le" --- src/hb-aat-var-hvgl-table.cc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/hb-aat-var-hvgl-table.cc b/src/hb-aat-var-hvgl-table.cc index acb9358af..eefe30423 100644 --- a/src/hb-aat-var-hvgl-table.cc +++ b/src/hb-aat-var-hvgl-table.cc @@ -91,14 +91,14 @@ PartShape::get_path_at (const struct hvgl &hvgl, auto v = hb_vector_t (); #ifdef __BYTE_ORDER - constexpr bool be = __BYTE_ORDER == __BIG_ENDIAN; + constexpr bool le = __BYTE_ORDER == __LITTLE_ENDIAN; #elif defined(__APPLE__) - bool be = CFByteOrderGetCurrent () == CFByteOrderBigEndian; + bool le = CFByteOrderGetCurrent () == CFByteOrderLittleEndian; #else - constexpr bool be = true; // Set to true to avoid fast-path if we can't determine endianness + constexpr bool le = false; #endif - if (!be) + if (le) { // Endianness matches; Faster to memcpy(). v.resize (a.length, false, false); @@ -120,8 +120,7 @@ PartShape::get_path_at (const struct hvgl &hvgl, bool src_aligned = (uintptr_t) (deltas.get_matrix (axisCount, segmentCount).arrayZ) % 8 == 0; // dest is always aligned. - bool be = CFByteOrderGetCurrent () == CFByteOrderBigEndian; - if (!be && src_aligned) + if (le && src_aligned) { unsigned rows_count = v.length; double c[4];