fixup for ba855735fb
This commit is contained in:
parent
ba855735fb
commit
b88d6d94f5
@ -187,7 +187,7 @@ main(void)
|
|||||||
|
|
||||||
// 4. write sample data
|
// 4. write sample data
|
||||||
#if SEQUENTIAL_MODE
|
#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));
|
sizeof(uint8_t));
|
||||||
if (BLOCK_SIZE < 1) {
|
if (BLOCK_SIZE < 1) {
|
||||||
printf("The block size %" PRIuMAX " is too small, should be at least "
|
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)));
|
(uintmax_t) (sizeof(SAMPLE_TYPE) / sizeof(uint8_t)));
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
const size_t MAX =
|
|
||||||
#if BLOCK_SIZE > 0
|
const size_t MAX = (PRODUCT + (BLOCK_SIZE - 1)) / BLOCK_SIZE;
|
||||||
(PRODUCT + (BLOCK_SIZE - 1)) / BLOCK_SIZE
|
|
||||||
#else
|
|
||||||
0
|
|
||||||
#endif
|
|
||||||
;
|
|
||||||
|
|
||||||
size_t w = 0;
|
size_t w = 0;
|
||||||
for (size_t seq = 0; seq < MAX; seq++) {
|
for (size_t seq = 0; seq < MAX; seq++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user