template.c: reformat the code
This commit is contained in:
parent
551933cddd
commit
19409e0860
@ -224,8 +224,6 @@ main(void)
|
|||||||
for (size_t seq = 0; seq < MAX; seq++) {
|
for (size_t seq = 0; seq < MAX; seq++) {
|
||||||
if ((w + BLOCK_SIZE) >= PRODUCT)
|
if ((w + BLOCK_SIZE) >= PRODUCT)
|
||||||
calc_block_size = PRODUCT - w;
|
calc_block_size = PRODUCT - w;
|
||||||
#else
|
|
||||||
do {
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// * bytebeat generating loop
|
// * bytebeat generating loop
|
||||||
@ -252,7 +250,8 @@ main(void)
|
|||||||
#elif IS_SIGNED
|
#elif IS_SIGNED
|
||||||
intmax_t bytebeat_res = (intmax_t) bytebeat(floor((long double) w));
|
intmax_t bytebeat_res = (intmax_t) bytebeat(floor((long double) w));
|
||||||
#else
|
#else
|
||||||
uintmax_t bytebeat_res = (uintmax_t) bytebeat(floor((long double) w));
|
uintmax_t bytebeat_res =
|
||||||
|
(uintmax_t) bytebeat(floor((long double) w));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// 2. if signed, then wrap up to unsigned
|
// 2. if signed, then wrap up to unsigned
|
||||||
@ -331,9 +330,9 @@ main(void)
|
|||||||
#if SEQUENTIAL_MODE
|
#if SEQUENTIAL_MODE
|
||||||
fflush(output_file);
|
fflush(output_file);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if SEQUENTIAL_MODE
|
||||||
}
|
}
|
||||||
#if !SEQUENTIAL_MODE
|
|
||||||
while (0);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// * free allocated heap
|
// * free allocated heap
|
||||||
|
Loading…
Reference in New Issue
Block a user