mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 21:23:06 +00:00
Update brace style.
Add braces around single-line blocks, and remove line breaks before function-opening braces. This resolves #537.
This commit is contained in:
@@ -7,8 +7,7 @@ static const uint64_t smoothstep_tab[] = {
|
||||
#undef STEP
|
||||
};
|
||||
|
||||
TEST_BEGIN(test_smoothstep_integral)
|
||||
{
|
||||
TEST_BEGIN(test_smoothstep_integral) {
|
||||
uint64_t sum, min, max;
|
||||
unsigned i;
|
||||
|
||||
@@ -20,8 +19,9 @@ TEST_BEGIN(test_smoothstep_integral)
|
||||
* integral may be off by as much as SMOOTHSTEP_NSTEPS ulps.
|
||||
*/
|
||||
sum = 0;
|
||||
for (i = 0; i < SMOOTHSTEP_NSTEPS; i++)
|
||||
for (i = 0; i < SMOOTHSTEP_NSTEPS; i++) {
|
||||
sum += smoothstep_tab[i];
|
||||
}
|
||||
|
||||
max = (KQU(1) << (SMOOTHSTEP_BFP-1)) * (SMOOTHSTEP_NSTEPS+1);
|
||||
min = max - SMOOTHSTEP_NSTEPS;
|
||||
@@ -36,8 +36,7 @@ TEST_BEGIN(test_smoothstep_integral)
|
||||
}
|
||||
TEST_END
|
||||
|
||||
TEST_BEGIN(test_smoothstep_monotonic)
|
||||
{
|
||||
TEST_BEGIN(test_smoothstep_monotonic) {
|
||||
uint64_t prev_h;
|
||||
unsigned i;
|
||||
|
||||
@@ -58,8 +57,7 @@ TEST_BEGIN(test_smoothstep_monotonic)
|
||||
}
|
||||
TEST_END
|
||||
|
||||
TEST_BEGIN(test_smoothstep_slope)
|
||||
{
|
||||
TEST_BEGIN(test_smoothstep_slope) {
|
||||
uint64_t prev_h, prev_delta;
|
||||
unsigned i;
|
||||
|
||||
@@ -96,8 +94,7 @@ TEST_BEGIN(test_smoothstep_slope)
|
||||
TEST_END
|
||||
|
||||
int
|
||||
main(void)
|
||||
{
|
||||
main(void) {
|
||||
return (test(
|
||||
test_smoothstep_integral,
|
||||
test_smoothstep_monotonic,
|
||||
|
||||
Reference in New Issue
Block a user