]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Revert "benchtests: Avoid overflow in random memcpy/memset benchmarks"
authorWilco Dijkstra <wilco.dijkstra@arm.com>
Mon, 4 Aug 2025 17:31:51 +0000 (17:31 +0000)
committerWilco Dijkstra <wilco.dijkstra@arm.com>
Mon, 4 Aug 2025 17:31:51 +0000 (17:31 +0000)
This reverts commit 09604542d31abf1e35cd00c1db8d9bee9568bdd0.

benchtests/bench-memcpy-random.c
benchtests/bench-memset-random.c

index 0734bc84aea937dff1efec1faa251a83a6db20b7..d17c784eb67809dfbb0e30100156bdd6d4e6d487 100644 (file)
@@ -34,7 +34,7 @@ typedef struct { uint8_t align; uint16_t freq; } align_data_t;
 
 #define SIZE_NUM 65536
 #define SIZE_MASK (SIZE_NUM-1)
-static uint16_t size_arr[SIZE_NUM];
+static uint8_t size_arr[SIZE_NUM];
 
 /* Frequency data for memcpy of less than 4096 bytes based on SPEC2017.  */
 static freq_data_t size_freq[] =
index 758c53bc6f5031dabd972a493ae800b50df5bb69..642bf411d482944949b6451f2426363e0de5115c 100644 (file)
@@ -39,7 +39,7 @@ typedef struct { uint8_t align; uint16_t freq; } align_data_t;
 
 #define SIZE_NUM 65536
 #define SIZE_MASK (SIZE_NUM-1)
-static uint16_t len_arr[SIZE_NUM];
+static uint8_t len_arr[SIZE_NUM];
 
 /* Frequency data for memset sizes up to 4096 bytes based on SPEC2017.  */
 static freq_data_t memset_len_freq[] =