aboutsummaryrefslogtreecommitdiff
path: root/src/leveldb/port/port_example.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2017-08-01 12:40:42 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2017-08-01 12:40:42 -0700
commit47f3e8c74d390139967cc40e37cf5b433f0b0f9f (patch)
treef43c285be47ec5bc66a25a7fa1c072d2cd32dc97 /src/leveldb/port/port_example.h
parentf66c59650527022b4f7abd98ff0a1a4e4741bd34 (diff)
parentb13a68e129f51b664e33b1894e33ebb7b94cdcc7 (diff)
downloadbitcoin-47f3e8c74d390139967cc40e37cf5b433f0b0f9f.tar.xz
Update LevelDB with latest Bitcoin-specific patches
Diffstat (limited to 'src/leveldb/port/port_example.h')
-rw-r--r--src/leveldb/port/port_example.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/leveldb/port/port_example.h b/src/leveldb/port/port_example.h
index 97bd669a5e..5b1d027de5 100644
--- a/src/leveldb/port/port_example.h
+++ b/src/leveldb/port/port_example.h
@@ -129,6 +129,10 @@ extern bool Snappy_Uncompress(const char* input_data, size_t input_length,
// The concatenation of all "data[0,n-1]" fragments is the heap profile.
extern bool GetHeapProfile(void (*func)(void*, const char*, int), void* arg);
+// Determine whether a working accelerated crc32 implementation exists
+// Returns true if AcceleratedCRC32C is safe to call
+bool HasAcceleratedCRC32C();
+
// Extend the CRC to include the first n bytes of buf.
//
// Returns zero if the CRC cannot be extended using acceleration, else returns