mirror of
https://github.com/intel/isa-l.git
synced 2024-12-12 17:33:50 +01:00
erasure_code: Limit efence test length
Change-Id: Ib3bb0fa2fbcbbb759af7ea54fef5ea24ee1ba7cd Signed-off-by: Roy Oursler <roy.j.oursler@intel.com>
This commit is contained in:
parent
52f644d3ff
commit
4f2d148ae5
@ -47,6 +47,7 @@
|
||||
#define KMAX TEST_SOURCES
|
||||
|
||||
#define EFENCE_TEST_MIN_SIZE 16
|
||||
#define EFENCE_TEST_MAX_SIZE EFENCE_TEST_MIN_SIZE + 0x100
|
||||
|
||||
#ifdef EC_ALIGNED_ADDR
|
||||
// Define power of 2 range to check ptr, len alignment
|
||||
@ -489,7 +490,7 @@ int main(int argc, char *argv[])
|
||||
for (j = 0; j < TEST_LEN; j++)
|
||||
buffs[i][j] = rand();
|
||||
|
||||
for (size = EFENCE_TEST_MIN_SIZE; size <= TEST_SIZE; size += align) {
|
||||
for (size = EFENCE_TEST_MIN_SIZE; size <= EFENCE_TEST_MAX_SIZE; size += align) {
|
||||
for (i = 0; i < m; i++) { // Line up TEST_SIZE from end
|
||||
efence_buffs[i] = buffs[i] + TEST_LEN - size;
|
||||
}
|
||||
|
@ -56,6 +56,8 @@
|
||||
#define MMAX TEST_SOURCES
|
||||
#define KMAX TEST_SOURCES
|
||||
|
||||
#define EFENCE_TEST_MAX_SIZE 0x100
|
||||
|
||||
#ifdef EC_ALIGNED_ADDR
|
||||
// Define power of 2 range to check ptr, len alignment
|
||||
# define PTR_ALIGN_CHK_B 0
|
||||
@ -592,7 +594,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
for (size = 0; size <= TEST_SIZE; size += align) {
|
||||
for (size = 0; size <= EFENCE_TEST_MAX_SIZE; size += align) {
|
||||
for (i = 0; i < m; i++) { // Line up TEST_SIZE from end
|
||||
efence_buffs[i] = buffs[i] + TEST_LEN - size;
|
||||
efence_update_buffs[i] = update_buffs[i] + TEST_LEN - size;
|
||||
|
Loading…
Reference in New Issue
Block a user