Commit c93e5e95cd54274046b77d8b77873bab9ad5bb8a

nelisky 2012-11-04T13:26:39

openwrt needs roundl

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 ba174a8..736f605 100644
--- a/miner.h
+++ b/miner.h
@@ -182,6 +182,12 @@ 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
+
 enum alive {
 	LIFE_WELL,
 	LIFE_SICK,