Commit 0265eaf7d50b13ead4ca27f5939d59f9eb920208

Scott Howard 2014-06-10T22:43:57

delete unused roundl definition roundl is no longer used in cgminer.c and this definition causes build failure on some MIPS machines.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/miner.h b/miner.h
index a97b5b8..b74feb6 100644
--- a/miner.h
+++ b/miner.h
@@ -208,12 +208,6 @@ static inline int fsync (int fd)
 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
 #endif
 
-#ifdef MIPSEB
-#ifndef roundl
-#define roundl(x)   (long double)((long long)((x==0)?0.0:((x)+((x)>0)?0.5:-0.5)))
-#endif
-#endif
-
 /* No semtimedop on apple so ignore timeout till we implement one */
 #ifdef __APPLE__
 #define semtimedop(SEM, SOPS, VAL, TIMEOUT) semop(SEM, SOPS, VAL)