unperfect.c

loading
details
attribute value
description
owner Johannes Waldmann
uploaded 2017-08-17 03:45:23.0
disk size 239 Bytes
downloadable true
type
attribute value
name no_type
processor id 1
description this is the default benchmark type for rejected benchmarks and benchmarks that are not associated with a type.
owning community none
loading contents
int unperfect(int x){
  int y1, y2, y3;

  if(x <= 0) return 0;

  y1=y2=y3=x;

  for(;;){
    y1 = y1-1;
    if(y1 == 0) break;
    while(y2 >= y1) y2 = y2 - y1;
    if(y2 == 0)
      y3 = y3 - y1;
    y2 = x;
  }

  return (y3 == 0);
}
popout

content may be truncated. 'popout' for larger text window.

actions get anonymous link download benchmark