Skip to content

Commit

Permalink
external C API baseline - compat w/ liberasurecode
Browse files Browse the repository at this point in the history
  • Loading branch information
vrancurel committed Jan 11, 2019
1 parent c84f572 commit e8e2b6a
Show file tree
Hide file tree
Showing 9 changed files with 952 additions and 45 deletions.
8 changes: 4 additions & 4 deletions benchmark/benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,9 +478,9 @@ bool Benchmark<T>::encode()
reset_c_streams();

if (operation_on_packet)
fec->encode_packet(*d_streams, *c_streams, c_props);
fec->encode_streams_vertical(*d_streams, *c_streams, c_props);
else
fec->encode_bufs(*d_streams, *c_streams, c_props);
fec->encode_streams_horizontal(*d_streams, *c_streams, c_props);

// update stats
enc_stats->add(fec->total_enc_usec);
Expand All @@ -506,14 +506,14 @@ bool Benchmark<T>::decode()
reset_r_streams();

if (operation_on_packet) {
if (!fec->decode_packet(
if (!fec->decode_streams_vertical(
d_streams_shuffled,
c_streams_shuffled,
c_props_shuffled,
*r_streams))
return false;
} else {
if (!fec->decode_bufs(
if (!fec->decode_streams_horizontal(
d_streams_shuffled,
c_streams_shuffled,
c_props_shuffled,
Expand Down
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ set(LIB_SRC
${SOURCE_DIR}/gf_nf4.cpp
${SOURCE_DIR}/gf_ring.cpp
${SOURCE_DIR}/property.cpp
${SOURCE_DIR}/quadiron_c.cpp

CACHE
INTERNAL
Expand Down
Loading

0 comments on commit e8e2b6a

Please sign in to comment.