diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
commit | 2aa4a82499d4becd2284cdb482213d541b8804dd (patch) | |
tree | b80bf8bf13c3766139fbacc530efd0dd9d54394c /gfx/cairo/pixman-android-cpu-detect.patch | |
parent | Initial commit. (diff) | |
download | firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.tar.xz firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.zip |
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gfx/cairo/pixman-android-cpu-detect.patch')
-rw-r--r-- | gfx/cairo/pixman-android-cpu-detect.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/gfx/cairo/pixman-android-cpu-detect.patch b/gfx/cairo/pixman-android-cpu-detect.patch new file mode 100644 index 0000000000..130af51308 --- /dev/null +++ b/gfx/cairo/pixman-android-cpu-detect.patch @@ -0,0 +1,29 @@ +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 |