mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-25 14:04:25 +00:00
openwrt needs roundl
This commit is contained in:
parent
30ed3fb648
commit
c93e5e95cd
6
miner.h
6
miner.h
@ -182,6 +182,12 @@ static inline int fsync (int fd)
|
|||||||
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
|
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
|
||||||
#endif
|
#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 {
|
enum alive {
|
||||||
LIFE_WELL,
|
LIFE_WELL,
|
||||||
LIFE_SICK,
|
LIFE_SICK,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user