summaryrefslogtreecommitdiff
path: root/lib/atomic64_test.c
diff options
context:
space:
mode:
authorLuca Barbieri <luca@luca-barbieri.com>2010-02-26 12:22:40 +0100
committerH. Peter Anvin <hpa@zytor.com>2010-03-01 11:37:55 -0800
commit8f4f202b335144bf5be5c9e5b1bc9477ecdae958 (patch)
treea1bc2508079fe2312e87a8a29d8553f4985148d6 /lib/atomic64_test.c
parenta7e926abc3adfbd2e5e20d2b46177adb4e313915 (diff)
lib: Only test atomic64_dec_if_positive on archs having it
Currently atomic64_dec_if_positive() is only supported by PowerPC, MIPS and x86-32. Signed-off-by: Luca Barbieri <luca@luca-barbieri.com> LKML-Reference: <1267183361-20775-1-git-send-email-luca@luca-barbieri.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'lib/atomic64_test.c')
-rw-r--r--lib/atomic64_test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/atomic64_test.c b/lib/atomic64_test.c
index 4ff649e46ba..0effcacbebd 100644
--- a/lib/atomic64_test.c
+++ b/lib/atomic64_test.c
@@ -112,6 +112,7 @@ static __init int test_atomic64(void)
r += one;
BUG_ON(v.counter != r);
+#if defined(CONFIG_X86_32) || defined(CONFIG_MIPS) || defined(CONFIG_PPC) || defined(_ASM_GENERIC_ATOMIC64_H)
INIT(onestwos);
BUG_ON(atomic64_dec_if_positive(&v) != (onestwos - 1));
r -= one;
@@ -124,6 +125,9 @@ static __init int test_atomic64(void)
INIT(-one);
BUG_ON(atomic64_dec_if_positive(&v) != (-one - one));
BUG_ON(v.counter != r);
+#else
+#warning Please implement atomic64_dec_if_positive for your architecture, and add it to the IF above
+#endif
INIT(onestwos);
BUG_ON(atomic64_inc_not_zero(&v));
breoffice-4-2-5'>libreoffice-4-2-5 Unnamed repository; edit this file to name it for gitweb.root
summaryrefslogtreecommitdiff
AgeCommit message (Expand)AuthorFilesLines
19 hoursUpdated Slovenian translationHEADmasterMartin Srebotnjak64-13501/+19617
3 daysupdate translations for master / 25.2 alpha1Christian Lohmaier1934-72263/+100204
2024-11-05update translations for masterChristian Lohmaier2013-339716/+413548
2024-10-25update translations for masterChristian Lohmaier248-8678/+9001
2024-10-23add Tagalog (tl) translationsChristian Lohmaier220-0/+789621
2024-10-23update translations for masterChristian Lohmaier1725-190947/+231197
2024-10-04update translations for masterChristian Lohmaier2839-243555/+298302
2024-09-17update translations for masterChristian Lohmaier4999-1016811/+1482054
2024-09-06update translations for 24.8.1 rc2Christian Lohmaier294-4826/+4802
2024-08-23update translations for 24.8.1 rc1Christian Lohmaier464-7996/+9278
2024-08-08update translations for 24.8.0 rc3Christian Lohmaier330-7999/+7194
2024-07-26update translations for 24.8.0 rc2/masterChristian Lohmaier78-778/+848
2024-07-24update translations for 24.8.0 rc2Christian Lohmaier334-5629/+5300
2024-07-15update translations for master/24-8Christian Lohmaier449-6941/+7245
2024-07-08update translations for 24.8.0 rc1/masterChristian Lohmaier752-13300/+15854
2024-07-07Updated Slovenian translationMartin Srebotnjak40-2210/+2458
2024-06-28update translations for 24.8/masterChristian Lohmaier1401-55124/+51822
2024-06-20update translations for 24-8/masterChristian Lohmaier696-19433/+27756
2024-06-20Updated Slovenian translationMartin Srebotnjak39-1188/+1555
2024-06-17update translations for 24-8/masterChristian Lohmaier888-57427/+58764
2024-06-11update translations for master / 24.8.0 beta1libreoffice-24-8-branch-pointChristian Lohmaier1034-10831/+33947
2024-06-06update translations for master / 24.8.0 beta1Christian Lohmaier897-61626/+70322
2024-06-03update translations for masterChristian Lohmaier1417-43940/+50260
2024-06-01add files for Sundanese (sun)Christian Lohmaier158-0/+274687
2024-06-01update translations for masterChristian Lohmaier