Browse Source

Remove roundl check and define

Luke Dashjr 12 years ago
parent
commit
f329f78787
2 changed files with 0 additions and 19 deletions
  1. 0 15
      configure.ac
  2. 0 4
      miner.h

+ 0 - 15
configure.ac

@@ -1142,21 +1142,6 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([static int __attribute__((warn_unused_result)
 			  AC_DEFINE([HAVE_WARN_UNUSED_RESULT], [1],
                                     [Define if __attribute__((warn_unused_result))]))
 
-AC_MSG_CHECKING([for roundl function])
-save_LIBS="${LIBS}"
-LIBS="$LIBS -lm"
-AC_LINK_IFELSE([AC_LANG_PROGRAM([[
-	#include <math.h>
-]], [[
-	return (roundl(*(long double *)0xdeadbeef) == 1.0);
-]])], [
-	AC_MSG_RESULT([yes])
-], [
-	AC_MSG_RESULT([no])
-	AC_DEFINE([NEED_ROUNDL], [1], [Defined to 1 if C99 roundl is missing])
-])
-LIBS="${save_LIBS}"
-
 
 # byteswap functions
 AH_TEMPLATE([HAVE_BYTESWAP_H], [Define to use byteswap macros from byteswap.h])

+ 0 - 4
miner.h

@@ -213,10 +213,6 @@ static inline int fsync (int fd)
 #	endif
 #endif
 
-#ifdef NEED_ROUNDL
-#define roundl(x)   (long double)((long long)((x==0)?0.0:((x)+(((x)>0)?0.5:-0.5))))
-#endif
-
 enum alive {
 	LIFE_WELL,
 	LIFE_SICK,