Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
[email protected] webmail now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!

Paste

Pasted as C by faster_slower ( 10 years ago )
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

void fn1(void)
{
 int i = 64;

 while (i >= 0) i--;
}  

void fn2(void)
{
 unsigned int value = 1999999999, i;

 while(value)
 {
  i = value % 10;
  value /= 10;
 }
}

int main(void)
{
 int j;

        printf("test 1\n");

 for(j = 0; j < 20000000; j++)
 {
  fn1();
 }

        printf("test 2\n");

 for(j = 0; j < 20000000; j++)
 {
  fn2();
 }

 return 0;
}

 

Revise this Paste

Your Name: Code Language: