- Change the HAVE_SSE to HAVE_SSE4_2 and only provide it on
x86-64.
- Cast two values that otherwise cause the compiler to warn on 32-bit
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
}
#define ARCH_HAVE_FFZ
-#define ARCH_HAVE_SSE
#define ARCH_HAVE_CPU_CLOCK
#endif
}
#define ARCH_HAVE_FFZ
-#define ARCH_HAVE_SSE
+#define ARCH_HAVE_SSE4_2
#define ARCH_HAVE_CPU_CLOCK
#endif
* Volume 2A: Instruction Set Reference, A-M
*/
-#ifdef ARCH_HAVE_SSE
+#ifdef ARCH_HAVE_SSE4_2
#if BITS_PER_LONG == 64
#define REX_PRE "0x48, "
extern uint32_t crc32c(unsigned char const *, unsigned long);
-#ifdef ARCH_HAVE_SSE
+#ifdef ARCH_HAVE_SSE4_2
extern uint32_t crc32c_intel(unsigned char const *, unsigned long);
extern int crc32c_intel_works(void);
#else
for (i = 0; i < events; i++) {
struct b_user_cmd *buc = (struct b_user_cmd *) buf + i;
- bd->events[ev_index] = (struct io_u *) buc->usr_ptr;
+ bd->events[ev_index] = (struct io_u *) (unsigned long) buc->usr_ptr;
ev_index++;
}
}
log_err("trim: verify failed at file %s offset %llu, length %lu"
", block offset %lu\n",
io_u->file->file_name, io_u->offset, io_u->buflen,
- (p - io_u->buf));
+ (unsigned long) (p - io_u->buf));
return ret;
}