aboutsummaryrefslogtreecommitdiff
path: root/math/combblas/files/patch-include_CombBLAS_PBBS_utils.h
blob: 5fb24a9f4edc3d46828cbb7d4869702f10887290 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- include/CombBLAS/PBBS/utils.h.orig	2018-12-16 06:18:22 UTC
+++ include/CombBLAS/PBBS/utils.h
@@ -26,7 +26,7 @@
 #include <algorithm>
 #include <limits.h>
 
-#if defined(__APPLE__)
+#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__)
 #define PTCMPXCH "  cmpxchgl %2,%1\n"
 #else
 #define PTCMPXCH "  cmpxchgq %2,%1\n"