From a1fba4ebd42df637b481bf0ed3531e11d241c3f1 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 27 Jan 2025 12:52:03 -0700 Subject: [PATCH] [hvgl] Micro-optimize --- src/hb-aat-var-hvgl-table.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-aat-var-hvgl-table.cc b/src/hb-aat-var-hvgl-table.cc index 7050d6422..74f828ec3 100644 --- a/src/hb-aat-var-hvgl-table.cc +++ b/src/hb-aat-var-hvgl-table.cc @@ -96,9 +96,9 @@ PartShape::get_path_at (const struct hvgl &hvgl, // APPLE SIMD bool src_aligned = (uintptr_t) (deltas.get_matrix (axisCount, segmentCount).arrayZ) % 8 == 0; - bool dest_aligned = (uintptr_t) (v.arrayZ) % 8 == 0; + // dest is always aligned. bool be = CFByteOrderGetCurrent () == CFByteOrderBigEndian; - if (!be && src_aligned && dest_aligned) + if (!be && src_aligned) { unsigned rows_count = v.length; double c[4];