]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commitdiff
DNM: intensionally BRAKE build when there is no fast CRC32 path available. wip-testing-bug22534
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 7 Mar 2018 14:21:09 +0000 (15:21 +0100)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 7 Mar 2018 14:21:32 +0000 (15:21 +0100)
DO NOT merge! This is solely for testing bug #22534.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
util/crc32c.cc

index 2c8cb097d93f2fc0f25c28cba7ba2eed674f7bd5..ba4f594b0b6e1fa8008d1420c0a14a17c1b6aa0c 100644 (file)
@@ -352,9 +352,11 @@ static inline void Fast_CRC32(uint64_t* l, uint8_t const **p) {
   *l = _mm_crc32_u64(*l, LE_LOAD64(*p));
   *p += 8;
 #else
+# error "Oops, __AVX2__ and _WIN64 are NOT defined. Going Slow_CRC32()!"
   Slow_CRC32(l, p);
 #endif
 #else
+# error "Oops, __SSE4_2__ is NOT defined. Going Slow_CRC32()!"
   Slow_CRC32(l, p);
 #endif
 }