forked from libjpeg-turbo/libjpeg-turbo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix crash when compiling with Clang for AArch64
This patch fixes android/ndk#110 The crash seemed to come from a change in LLVM and was reported to the LLVM bugzilla https://llvm.org/bugs/show_bug.cgi?id=28393 Upon investigation, LLVM optimized away the zeroing of the upper bits of the x2 register before calling color_convert. The convention is for the callee to do any truncation needed. The patch tries to use the Wn registers whenever possible, and otherwise use a zero-extend instruction to avoid using the random information in the upper 32 bits of the 64 bit registers.
- Loading branch information
Sebastian Pop
committed
Jul 12, 2016
1 parent
6e9d43e
commit 1fbae13
Showing
1 changed file
with
32 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters