File tree 4 files changed +8
-7
lines changed
4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -46,10 +46,11 @@ configure_file(
46
46
set (QUADMATH_NAMES ${QUADMATH_NAMES} libquadmath.so quadmath)
47
47
find_library (QUADMATH_LIBRARY
48
48
NAMES ${QUADMATH_NAMES}
49
- PATHS /usr/lib64/atlas /usr/lib/atlas
50
- /usr/lib64 /usr/lib /usr/local/lib64
49
+ PATHS /usr/lib64/atlas /usr/lib/atlas
50
+ /usr/lib64 /usr/lib /usr/local/lib64
51
51
/usr/local/lib /usr/x86_64-linux-gnu/*
52
52
/usr/lib/gcc/x86_64-linux-gnu/*
53
+ /usr/lib/gcc/x86_64-redhat-linux/*
53
54
)
54
55
55
56
if (QUADMATH_LIBRARY)
@@ -105,7 +106,7 @@ if(ENABLE_EXAMPLES)
105
106
add_executable (cache_test examples/cache_test.cc)
106
107
target_link_libraries (cache_test qcdloop ${QUADMATH_LIBRARIES} )
107
108
set_target_properties (cache_test PROPERTIES LINK_FLAGS "-Wl,-rpath,./" )
108
-
109
+
109
110
add_executable (cmass_test examples/cmass_test.cc)
110
111
target_link_libraries (cmass_test qcdloop ${QUADMATH_LIBRARIES} )
111
112
set_target_properties (cmass_test PROPERTIES LINK_FLAGS "-Wl,-rpath,./" )
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ tmp=$( echo "$*" | egrep -- '--\<incdir\>')
28
28
test -n " $tmp " && OUT=" $OUT @includedir@"
29
29
30
30
tmp=$( echo " $* " | egrep -- ' --\<cppflags\>' )
31
- test -n " $tmp " && OUT=" $OUT -I@includedir@"
31
+ test -n " $tmp " && OUT=" $OUT -I@includedir@ -std=c++11 "
32
32
33
33
tmp=$( echo " $* " | egrep -- ' --\<libdir\>' )
34
34
test -n " $tmp " && OUT=" $OUT @libdir@"
Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ namespace ql
34
34
inline qcomplex Sqrt (qcomplex const & x){ return csqrtq (x); }
35
35
36
36
// Absolute value
37
- inline double Abs (double const & x) { return std::fabs (x); }
37
+ inline double Abs (double const & x) { return std::abs (x); }
38
38
inline qdouble Abs (qdouble const & x) { return fabsq (x);}
39
- inline double Abs (complex const & x) { return std::fabs (x);}
39
+ inline double Abs (complex const & x) { return std::abs (x);}
40
40
inline qdouble Abs (qcomplex const & x) { return cabsq (x); }
41
41
42
42
// Complex tools, imag, real and conj.
Original file line number Diff line number Diff line change @@ -888,7 +888,7 @@ namespace ql
888
888
const TOutput ct = TOutput (this ->_pi2o6 );
889
889
890
890
TOutput dilog2;
891
- if (Abs (omarg2) < this ->_zero )
891
+ if (Real (omarg2) < this ->_zero )
892
892
dilog2 = ct-TOutput (this ->ddilog (omarg2))-Log (arg2)*wlog;
893
893
else
894
894
dilog2 = TOutput (this ->ddilog (arg2));
You can’t perform that action at this time.
0 commit comments