diff options
author | Matt A. Tobin <email@mattatobin.com> | 2019-11-10 15:43:51 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2019-11-10 15:43:51 -0500 |
commit | b0e23e79e72b7892b826fabea4f9e02c421d2861 (patch) | |
tree | 26f20aea660514c213a3ae942eab222e5ccebde3 /gfx/cairo/pixman-android-cpu-detect.patch | |
parent | 03590a6711d601ef3ddb48787e9f3f556705b5db (diff) | |
parent | b00601953bade944cd6df9cde6fcdd1f10d76feb (diff) | |
download | UXP-b0e23e79e72b7892b826fabea4f9e02c421d2861.tar UXP-b0e23e79e72b7892b826fabea4f9e02c421d2861.tar.gz UXP-b0e23e79e72b7892b826fabea4f9e02c421d2861.tar.lz UXP-b0e23e79e72b7892b826fabea4f9e02c421d2861.tar.xz UXP-b0e23e79e72b7892b826fabea4f9e02c421d2861.zip |
Merge branch 'master' into mailnews-work
Diffstat (limited to 'gfx/cairo/pixman-android-cpu-detect.patch')
-rw-r--r-- | gfx/cairo/pixman-android-cpu-detect.patch | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/gfx/cairo/pixman-android-cpu-detect.patch b/gfx/cairo/pixman-android-cpu-detect.patch deleted file mode 100644 index 130af5130..000000000 --- a/gfx/cairo/pixman-android-cpu-detect.patch +++ /dev/null @@ -1,29 +0,0 @@ -diff --git a/gfx/cairo/libpixman/src/pixman-cpu.c b/gfx/cairo/libpixman/src/pixman-cpu.c ---- a/gfx/cairo/libpixman/src/pixman-cpu.c -+++ b/gfx/cairo/libpixman/src/pixman-cpu.c -@@ -257,19 +257,22 @@ pixman_arm_read_auxv() - arm_tests_initialized = TRUE; - return; - } - - fread(buf, sizeof(char), 1024, f); - fclose(f); - pos = strstr(buf, ver_token); - if (pos) { -- int ver = *(pos + strlen(ver_token)) - '0'; -- arm_has_v7 = ver >= 7; -- arm_has_v6 = ver >= 6; -+ char vchar = *(pos + strlen(ver_token)); -+ if (vchar >= '0' && vchar <= '9') { -+ int ver = vchar - '0'; -+ arm_has_v7 = ver >= 7; -+ arm_has_v6 = ver >= 6; -+ } - } - arm_has_neon = strstr(buf, "neon") != NULL; - arm_has_vfp = strstr(buf, "vfp") != NULL; - arm_has_iwmmxt = strstr(buf, "iwmmxt") != NULL; - arm_tests_initialized = TRUE; - } - - #else |