代码搜索:Loop
找到约 10,000 项符合「Loop」的源代码
代码结果 10,000
www.eeworm.com/read/233448/4682046
c loop-6.c
main()
{
char c;
char d;
int nbits;
c = -1;
for (nbits = 1 ; nbits < 100; nbits++) {
d = (1
www.eeworm.com/read/233448/4682080
c loop-4.c
int
f()
{
int j = 1;
long i;
for (i = -0x70000000L; i < 0x60000000L; i += 0x10000000L) j
www.eeworm.com/read/233448/4682107
c loop-14.c
int a3[3];
void f(int *a)
{
int i;
for (i=3; --i;)
a[i] = 42 / i;
}
int
main ()
{
f(a3);
if (a3[1] != 42 || a3[2] != 21)
abort ();
exit (0);
}
www.eeworm.com/read/233448/4682159
c loop-11.c
static int a[199];
static void
foo ()
{
int i;
for (i = 198; i >= 0; i--)
a[i] = i;
}
int
main ()
{
int i;
foo ();
for (i = 0; i < 199; i++)
if (a[i] != i)
abort ();
return
www.eeworm.com/read/233448/4682261
c loop-15.c
/* Bombed with a segfault on powerpc-linux. doloop.c generated wrong
loop count. */
void
foo (unsigned long *start, unsigned long *end)
{
unsigned long *temp = end - 1;
while (end > start)
www.eeworm.com/read/233448/4682403
c loop-2.c
int a[2];
f (b)
{
unsigned int i;
for (i = 0; i < b; i++)
a[i] = i - 2;
}
main ()
{
a[0] = a[1] = 0;
f (2);
if (a[0] != -2 || a[1] != -1)
abort ();
exit (0);
}
www.eeworm.com/read/233448/4682407
c loop-13.c
/* PR opt/7130 */
#define TYPE long
void
scale (TYPE *alpha, TYPE *x, int n)
{
int i, ix;
if (*alpha != 1)
for (i = 0, ix = 0; i < n; i++, ix += 2)
{
TYPE tmpr, tmpi;
tmpr = *alpha *
www.eeworm.com/read/233448/4682466
c loop-7.c
void foo (unsigned int n)
{
int i, j = -1;
for (i = 0; i < 10 && j < 0; i++)
{
if ((1UL
www.eeworm.com/read/233448/4682624
c loop-12.c
/* Checks that pure functions are not treated as const. */
char *p;
static int __attribute__ ((pure))
is_end_of_statement (void)
{
return *p == '\n' || *p == ';' || *p == '!';
}
void foo (void)
www.eeworm.com/read/233448/4682635
c loop-10.c
/* Reduced from PR optimization/5076, PR optimization/2847 */
static int count = 0;
static void
inc (void)
{
count++;
}
int
main (void)
{
int iNbr = 1;
int test = 0;
while (test == 0)
{