Browse Source

bitmain: No-op htole8

cgminer does a *bit*-flip on big endian for this for some reason.
A no-op should be safe on ARM at least.
Luke Dashjr 10 years ago
parent
commit
6867d3c3ac
1 changed files with 2 additions and 0 deletions
  1. 2 0
      driver-bitmain.c

+ 2 - 0
driver-bitmain.c

@@ -42,6 +42,8 @@ static inline unsigned int bfg_work_block(struct work * const work)
 	return *((unsigned int*)(&work->data[4]));
 }
 
+#define htole8(x) (x)
+
 struct cgpu_info *btm_alloc_cgpu(struct device_drv *drv, int threads)
 {
 	struct cgpu_info *cgpu = calloc(1, sizeof(*cgpu));