This commit is contained in:
Intel A80486DX2-66 2024-01-21 15:04:55 +03:00
parent ba855735fb
commit b88d6d94f5
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B
1 changed files with 3 additions and 8 deletions

View File

@ -187,7 +187,7 @@ main(void)
// 4. write sample data
#if SEQUENTIAL_MODE
const size_t BLOCK_SIZE = BLOCK_SIZE_BYTES / (sizeof(SAMPLE_TYPE) /
size_t BLOCK_SIZE = BLOCK_SIZE_BYTES / (sizeof(SAMPLE_TYPE) /
sizeof(uint8_t));
if (BLOCK_SIZE < 1) {
printf("The block size %" PRIuMAX " is too small, should be at least "
@ -195,13 +195,8 @@ main(void)
(uintmax_t) (sizeof(SAMPLE_TYPE) / sizeof(uint8_t)));
exit(EXIT_FAILURE);
}
const size_t MAX =
#if BLOCK_SIZE > 0
(PRODUCT + (BLOCK_SIZE - 1)) / BLOCK_SIZE
#else
0
#endif
;
const size_t MAX = (PRODUCT + (BLOCK_SIZE - 1)) / BLOCK_SIZE;
size_t w = 0;
for (size_t seq = 0; seq < MAX; seq++) {