mirror of
https://github.com/intel/isa-l.git
synced 2025-03-04 07:27:21 +01:00
igzip: Remove unecessary validation checks from igzip_perf
Change-Id: I0a79bfc9604153ab554275949caf987265e17113 Signed-off-by: Roy Oursler <roy.j.oursler@intel.com>
This commit is contained in:
parent
5793a8514e
commit
e4bfb4d22e
@ -266,21 +266,6 @@ int isal_deflate_stateful_perf(uint8_t * outbuf, uint64_t * outbuf_size, uint8_t
|
||||
return 1;
|
||||
}
|
||||
|
||||
isal_deflate_init(&stream);
|
||||
stream.end_of_stream = 1; /* Do the entire file at once */
|
||||
stream.flush = flush_type;
|
||||
stream.next_in = inbuf;
|
||||
stream.avail_in = inbuf_size;
|
||||
stream.next_out = outbuf;
|
||||
stream.avail_out = *outbuf_size;
|
||||
stream.level = level;
|
||||
stream.level_buf = level_buf;
|
||||
stream.level_buf_size = level_size_buf[level];
|
||||
check = isal_deflate(&stream);
|
||||
|
||||
if (check || stream.avail_in)
|
||||
return 1;
|
||||
|
||||
perf_start(start);
|
||||
|
||||
for (i = 0; i < iterations; i++) {
|
||||
@ -339,12 +324,6 @@ int zlib_deflate_perf(uint8_t * outbuf, uint64_t * outbuf_size, uint8_t * inbuf,
|
||||
if (0 != deflateInit2(&gstream, level, Z_DEFLATED, -15, 9, Z_DEFAULT_STRATEGY))
|
||||
return 1;
|
||||
|
||||
gstream.next_out = outbuf;
|
||||
gstream.avail_out = *outbuf_size;
|
||||
check = deflate(&gstream, Z_FINISH);
|
||||
if (check != Z_STREAM_END)
|
||||
return 1;
|
||||
|
||||
perf_start(start);
|
||||
for (i = 0; i < iterations; i++) {
|
||||
inbuf_remaining = inbuf_size;
|
||||
|
Loading…
x
Reference in New Issue
Block a user