mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-24 17:47:22 +03: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:
parent
5154ff32ee
commit
c4c2592c83
119 changed files with 2971 additions and 3572 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue