diff --git a/submodules/rlottie/RLottieBinding_Xcode.xcodeproj/project.pbxproj b/submodules/rlottie/RLottieBinding_Xcode.xcodeproj/project.pbxproj index b0ebc62fb8..f11ab03acd 100755 --- a/submodules/rlottie/RLottieBinding_Xcode.xcodeproj/project.pbxproj +++ b/submodules/rlottie/RLottieBinding_Xcode.xcodeproj/project.pbxproj @@ -778,7 +778,10 @@ "@loader_path/Frameworks", ); MACH_O_TYPE = staticlib; - OTHER_CFLAGS = "-Dpixman_region_selfcheck(x)=1"; + OTHER_CFLAGS = ( + "-Dpixman_region_selfcheck(x)=1", + "-DLOTTIE_DISABLE_ARM_NEON=1", + ); PRODUCT_BUNDLE_IDENTIFIER = org.telegram.RLottieBinding; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -805,7 +808,10 @@ "@loader_path/Frameworks", ); MACH_O_TYPE = staticlib; - OTHER_CFLAGS = "-Dpixman_region_selfcheck(x)=1"; + OTHER_CFLAGS = ( + "-Dpixman_region_selfcheck(x)=1", + "-DLOTTIE_DISABLE_ARM_NEON=1", + ); PRODUCT_BUNDLE_IDENTIFIER = org.telegram.RLottieBinding; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -895,7 +901,10 @@ "@loader_path/Frameworks", ); MACH_O_TYPE = staticlib; - OTHER_CFLAGS = "-Dpixman_region_selfcheck(x)=1"; + OTHER_CFLAGS = ( + "-Dpixman_region_selfcheck(x)=1", + "-DLOTTIE_DISABLE_ARM_NEON=1", + ); PRODUCT_BUNDLE_IDENTIFIER = org.telegram.RLottieBinding; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -978,7 +987,10 @@ "@loader_path/Frameworks", ); MACH_O_TYPE = staticlib; - OTHER_CFLAGS = "-Dpixman_region_selfcheck(x)=1"; + OTHER_CFLAGS = ( + "-Dpixman_region_selfcheck(x)=1", + "-DLOTTIE_DISABLE_ARM_NEON=1", + ); PRODUCT_BUNDLE_IDENTIFIER = org.telegram.RLottieBinding; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; PROVISIONING_PROFILE_SPECIFIER = ""; diff --git a/submodules/rlottie/rlottie/src/vector/vdrawhelper.cpp b/submodules/rlottie/rlottie/src/vector/vdrawhelper.cpp index 771228ed64..00e4605ae6 100644 --- a/submodules/rlottie/rlottie/src/vector/vdrawhelper.cpp +++ b/submodules/rlottie/rlottie/src/vector/vdrawhelper.cpp @@ -867,7 +867,7 @@ void VSpanData::updateSpanFunc() } } -#if !defined(__SSE2__) && !defined(__ARM_NEON__) +#if !defined(__SSE2__) && (!defined(__ARM_NEON__) || defined(LOTTIE_DISABLE_ARM_NEON)) void memfill32(uint32_t *dest, uint32_t value, int length) { int n; @@ -912,7 +912,7 @@ void vInitDrawhelperFunctions() { vInitBlendFunctions(); -#if defined(__ARM_NEON__) +#if defined(__ARM_NEON__) && !defined(LOTTIE_DISABLE_ARM_NEON) // update fast path for NEON extern void Vcomp_func_solid_SourceOver_neon( uint32_t * dest, int length, uint32_t color, uint32_t const_alpha);