commit | 5d7c5d348d66794fd5e8aa3090f582358e6c5017 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jaxboe@fusionio.com> | Mon Jun 21 15:08:17 2010 +0200 |
committer | Jens Axboe <jaxboe@fusionio.com> | Mon Jun 21 15:08:17 2010 +0200 |
tree | a866d206e66ac9536f97d15ebfdd73d5a4b5235d | |
parent | fb47e9a5953a2da02016fb26434b8ca04e5bda90 [diff] [blame] |
Auto-detect missing hw support for crc32c and fallback to software Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
diff --git a/crc/crc32c.h b/crc/crc32c.h index 0976261..50f3665 100644 --- a/crc/crc32c.h +++ b/crc/crc32c.h
@@ -24,8 +24,13 @@ #ifdef ARCH_HAVE_SSE extern uint32_t crc32c_intel(unsigned char const *, unsigned long); +extern int crc32c_intel_works(void); #else #define crc32c_intel crc32c +static inline int crc32c_intel_works(void) +{ + return 0; +} #endif #endif