mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-29 17:44:06 +01:00
[hvgl/simd] Only enable if little-endian
This commit is contained in:
1 parent
8e7eeb5f7a
commit
4f3c3ee0ea
1 file changed
+3
-1
@@ -9,6 +9,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef HB_NO_APPLE_SIMD
|
||||
#include <CoreFoundation/CoreFoundation.h>
|
||||
#include <simd/simd.h> // Apple SIMD https://developer.apple.com/documentation/accelerate/simd
|
||||
#endif
|
||||
|
||||
@@ -96,7 +97,8 @@ PartShape::get_path_at (const struct hvgl &hvgl,
|
||||
|
||||
bool src_aligned = (uintptr_t) (deltas.get_matrix (axisCount, segmentCount).arrayZ) % 8 == 0;
|
||||
bool dest_aligned = (uintptr_t) (v.arrayZ) % 8 == 0;
|
||||
if (src_aligned && dest_aligned)
|
||||
bool be = CFByteOrderGetCurrent () == CFByteOrderBigEndian;
|
||||
if (!be && src_aligned && dest_aligned)
|
||||
{
|
||||
unsigned rows_count = v.length;
|
||||
for (; axis_index + 4 <= axis_count; axis_index += 4)
|
||||
|
||||
Reference in new issue
Block a user