mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-11 03:40:06 +00:00
Fix coding style
This commit is contained in:
parent
ab2b94613d
commit
5c637fe5ee
@ -1,3 +1,7 @@
|
|||||||
|
2013-05-10 Siddhesh Poyarekar <siddhesh@redhat.com>
|
||||||
|
|
||||||
|
* benchtests/bench-skeleton.c (startup): Fix coding style.
|
||||||
|
|
||||||
2013-05-10 Joseph Myers <joseph@codesourcery.com>
|
2013-05-10 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
[BZ #6809]
|
[BZ #6809]
|
||||||
|
@ -23,7 +23,9 @@
|
|||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
|
||||||
volatile unsigned int dontoptimize = 0;
|
volatile unsigned int dontoptimize = 0;
|
||||||
void startup ()
|
|
||||||
|
void
|
||||||
|
startup (void)
|
||||||
{
|
{
|
||||||
/* This loop should cause CPU to switch to maximal freqency.
|
/* This loop should cause CPU to switch to maximal freqency.
|
||||||
This makes subsequent measurement more accurate. We need a side effect
|
This makes subsequent measurement more accurate. We need a side effect
|
||||||
@ -31,9 +33,7 @@ void startup ()
|
|||||||
This should be enough to cause CPU to speed up and it is simpler than
|
This should be enough to cause CPU to speed up and it is simpler than
|
||||||
running loop for constant time. This is used when user does not have root
|
running loop for constant time. This is used when user does not have root
|
||||||
access to set a constant freqency. */
|
access to set a constant freqency. */
|
||||||
|
for (int k = 0; k < 10000000; k++)
|
||||||
int k;
|
|
||||||
for (k = 0; k < 10000000; k++)
|
|
||||||
dontoptimize += 23 * dontoptimize + 2;
|
dontoptimize += 23 * dontoptimize + 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user