1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-10 23:08:07 +00:00

openwrt needs roundl

This commit is contained in:
nelisky 2012-11-04 13:26:39 -08:00
parent 30ed3fb648
commit c93e5e95cd

View File

@ -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,