Skip to content

Commit

Permalink
speedup check logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
aikiriao committed Jun 15, 2024
1 parent 67a17bd commit 66e95b0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/srla_encode_decode/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,11 @@ static int32_t SRLAEncodeDecodeTest_ExecuteTestCase(const struct EncodeDecodeTes

/* 一致確認 */
for (ch = 0; ch < num_channels; ch++) {
/* バイナリ一致していたら次へ */
if (memcmp(input[ch], output[ch], sizeof(int32_t) * num_samples) == 0) {
continue;
}
/* 間違っている箇所の確認 */
for (smpl = 0; smpl < num_samples; smpl++) {
if (input[ch][smpl] != output[ch][smpl]) {
printf("%5d %12d vs %12d \n", smpl, input[ch][smpl], output[ch][smpl]);
Expand Down

0 comments on commit 66e95b0

Please sign in to comment.