projects
/
qt6-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d89449f
)
Don't use yield on CPUs that might not support it
author
Debian Qt/KDE Maintainers
<debian-qt-kde@lists.debian.org>
Fri, 5 Jul 2024 05:44:11 +0000
(07:44 +0200)
committer
Pino Toscano
<pino@debian.org>
Fri, 5 Jul 2024 05:44:11 +0000
(07:44 +0200)
Gbp-Pq: Name armel-noyield.patch
src/corelib/global/qsimd_p.h
patch
|
blob
|
history
diff --git
a/src/corelib/global/qsimd_p.h
b/src/corelib/global/qsimd_p.h
index 3a5cadaf811ef3b1309a8784fa88c57c16dc160e..196138eab9c42b404334b8a20da2869c6b43bb9a 100644
(file)
--- a/
src/corelib/global/qsimd_p.h
+++ b/
src/corelib/global/qsimd_p.h
@@
-417,7
+417,9
@@
static inline void qYieldCpu()
https://stackoverflow.com/a/70076751/134841
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105416
*/
+# if !defined(Q_CC_GNU) || (__ARM_ARCH >= 7)
asm volatile("yield"); /* this works everywhere */
+# endif
# else
__yield(); /* this is what should work everywhere */
# endif