File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -46,10 +46,11 @@ configure_file(
4646set (QUADMATH_NAMES ${QUADMATH_NAMES} libquadmath.so quadmath)
4747find_library (QUADMATH_LIBRARY
4848 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
5151 /usr/local/lib /usr/x86_64-linux-gnu/*
5252 /usr/lib/gcc/x86_64-linux-gnu/*
53+ /usr/lib/gcc/x86_64-redhat-linux/*
5354)
5455
5556if (QUADMATH_LIBRARY)
@@ -105,7 +106,7 @@ if(ENABLE_EXAMPLES)
105106 add_executable (cache_test examples/cache_test.cc)
106107 target_link_libraries (cache_test qcdloop ${QUADMATH_LIBRARIES} )
107108 set_target_properties (cache_test PROPERTIES LINK_FLAGS "-Wl,-rpath,./" )
108-
109+
109110 add_executable (cmass_test examples/cmass_test.cc)
110111 target_link_libraries (cmass_test qcdloop ${QUADMATH_LIBRARIES} )
111112 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\>')
2828test -n " $tmp " && OUT=" $OUT @includedir@"
2929
3030tmp=$( echo " $* " | egrep -- ' --\<cppflags\>' )
31- test -n " $tmp " && OUT=" $OUT -I@includedir@"
31+ test -n " $tmp " && OUT=" $OUT -I@includedir@ -std=c++11 "
3232
3333tmp=$( echo " $* " | egrep -- ' --\<libdir\>' )
3434test -n " $tmp " && OUT=" $OUT @libdir@"
Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ namespace ql
3434 inline qcomplex Sqrt (qcomplex const & x){ return csqrtq (x); }
3535
3636 // Absolute value
37- inline double Abs (double const & x) { return std::fabs (x); }
37+ inline double Abs (double const & x) { return std::abs (x); }
3838 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);}
4040 inline qdouble Abs (qcomplex const & x) { return cabsq (x); }
4141
4242 // Complex tools, imag, real and conj.
Original file line number Diff line number Diff line change @@ -888,7 +888,7 @@ namespace ql
888888 const TOutput ct = TOutput (this ->_pi2o6 );
889889
890890 TOutput dilog2;
891- if (Abs (omarg2) < this ->_zero )
891+ if (Real (omarg2) < this ->_zero )
892892 dilog2 = ct-TOutput (this ->ddilog (omarg2))-Log (arg2)*wlog;
893893 else
894894 dilog2 = TOutput (this ->ddilog (arg2));
You can’t perform that action at this time.
0 commit comments