diff options
author | Tuan M. Hoang <tmhoang@flatglobe.org> | 2017-03-17 07:02:48 -0400 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-03-20 13:49:43 +0000 |
commit | c2c0f2974096fa9fb107e47e42d28307351e8b77 (patch) | |
tree | d4bc356b96b0bd80b6863f8a70180196ef39ed2d /main/qt/qt-everywhere-opensource-src-4.8.0-s390-atomic.patch | |
parent | c4f89da3f50ae4d781a61a93c6447776ed68c4dc (diff) | |
download | aports-c2c0f2974096fa9fb107e47e42d28307351e8b77.tar.bz2 aports-c2c0f2974096fa9fb107e47e42d28307351e8b77.tar.xz |
main/qt: add s390x support
Diffstat (limited to 'main/qt/qt-everywhere-opensource-src-4.8.0-s390-atomic.patch')
-rw-r--r-- | main/qt/qt-everywhere-opensource-src-4.8.0-s390-atomic.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/main/qt/qt-everywhere-opensource-src-4.8.0-s390-atomic.patch b/main/qt/qt-everywhere-opensource-src-4.8.0-s390-atomic.patch new file mode 100644 index 0000000000..6fedcc8104 --- /dev/null +++ b/main/qt/qt-everywhere-opensource-src-4.8.0-s390-atomic.patch @@ -0,0 +1,20 @@ +diff -up qt-everywhere-opensource-src-4.8.0/src/corelib/arch/qatomic_s390.h.s390-atomic qt-everywhere-opensource-src-4.8.0/src/corelib/arch/qatomic_s390.h +--- qt-everywhere-opensource-src-4.8.0/src/corelib/arch/qatomic_s390.h.s390-atomic 2011-12-18 16:15:20.000000000 +0100 ++++ qt-everywhere-opensource-src-4.8.0/src/corelib/arch/qatomic_s390.h 2011-12-18 16:17:34.000000000 +0100 +@@ -400,6 +400,16 @@ Q_INLINE_TEMPLATE T* QBasicAtomicPointer + + + template <typename T> ++Q_INLINE_TEMPLATE T *QBasicAtomicPointer<T>::fetchAndAddOrdered(qptrdiff valueToAdd) ++{ ++#ifndef __s390x__ ++ return (T *)__CS_OLD_LOOP(&_q_value, valueToAdd * sizeof(T), "ar", "", "bcr 15,0\n"); ++#else ++ return (T *)__CSG_OLD_LOOP(&_q_value, valueToAdd * sizeof(T), "agr", "", "bcr 15,0\n"); ++#endif ++} ++ ++template <typename T> + Q_INLINE_TEMPLATE T *QBasicAtomicPointer<T>::fetchAndAddRelaxed(qptrdiff valueToAdd) + { + return fetchAndAddOrdered(valueToAdd); |