mirror of
https://github.com/intel/isa-l.git
synced 2024-12-12 09:23:50 +01:00
igzip: export isal_adler32
Change-Id: Iadb73851f826131cc59974b65240b501e9d57f98 Signed-off-by: Zach Bjornson <zbbjornson@gmail.com>
This commit is contained in:
parent
19fb012e81
commit
f9588bbedc
@ -67,7 +67,7 @@ extern_hdrs += include/igzip_lib.h
|
||||
|
||||
check_tests += igzip/igzip_rand_test
|
||||
check_tests += igzip/igzip_wrapper_hdr_test
|
||||
unit_tests += igzip/checksum32_funcs_test
|
||||
check_tests += igzip/checksum32_funcs_test
|
||||
|
||||
other_tests += igzip/igzip_file_perf igzip/igzip_stateless_file_perf igzip/igzip_hist_perf
|
||||
other_tests += igzip/igzip_perf
|
||||
|
@ -33,6 +33,7 @@
|
||||
#include <stdint.h>
|
||||
#include "igzip_checksums.h"
|
||||
#include "checksum_test_ref.h"
|
||||
#include "types.h"
|
||||
|
||||
#ifndef TEST_SEED
|
||||
# define TEST_SEED 0x1234
|
||||
|
@ -914,6 +914,23 @@ int isal_inflate(struct inflate_state *state);
|
||||
*/
|
||||
int isal_inflate_stateless(struct inflate_state *state);
|
||||
|
||||
/******************************************************************************/
|
||||
/* Other functions */
|
||||
/******************************************************************************/
|
||||
/**
|
||||
* @brief Calculate Adler-32 checksum, runs appropriate version.
|
||||
*
|
||||
* This function determines what instruction sets are enabled and selects the
|
||||
* appropriate version at runtime.
|
||||
*
|
||||
* @param init: initial Adler-32 value
|
||||
* @param buf: buffer to calculate checksum on
|
||||
* @param len: buffer length in bytes
|
||||
*
|
||||
* @returns 32-bit Adler-32 checksum
|
||||
*/
|
||||
uint32_t isal_adler32(uint32_t init, const unsigned char *buf, uint64_t len);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
13
isa-l.def
13
isa-l.def
@ -105,9 +105,10 @@ isal_deflate_reset @101
|
||||
isal_inflate_set_dict @102
|
||||
isal_inflate_reset @103
|
||||
crc16_t10dif_copy @104
|
||||
isal_read_gzip_header @105
|
||||
isal_read_zlib_header @106
|
||||
isal_write_gzip_header @107
|
||||
isal_write_zlib_header @108
|
||||
isal_zero_detect @109
|
||||
isal_gzip_header_init @110
|
||||
isal_read_gzip_header @105
|
||||
isal_read_zlib_header @106
|
||||
isal_write_gzip_header @107
|
||||
isal_write_zlib_header @108
|
||||
isal_zero_detect @109
|
||||
isal_gzip_header_init @110
|
||||
isal_adler32 @111
|
||||
|
Loading…
Reference in New Issue
Block a user