src/test/benchmarks/unixbench-5.1.2/src/hanoi.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include "timeit.c"

Go to the source code of this file.

Defines

#define other(i, j)   (6-(i+j))

Functions

void mov (int n, int f, int t)
void report (int sig)
int main (int argc, char *argv[])

Variables

char SCCSid [] = "@(#) @(#)hanoi.c:3.3 -- 5/15/91 19:30:20"
unsigned long iter = 0
int num [4]
long cnt


Define Documentation

#define other ( i,
j   )     (6-(i+j))

Definition at line 21 of file hanoi.c.


Function Documentation

int main ( int argc  ,
char *  argv[] 
)

Definition at line 40 of file hanoi.c.

void mov ( int  n,
int  f,
int  t 
)

Definition at line 63 of file hanoi.c.

void report ( int  sig  ) 

Definition at line 33 of file hanoi.c.


Variable Documentation

long cnt

Definition at line 31 of file hanoi.c.

unsigned long iter = 0

Definition at line 29 of file hanoi.c.

int num[4]

Definition at line 30 of file hanoi.c.

char SCCSid[] = "@(#) @(#)hanoi.c:3.3 -- 5/15/91 19:30:20"

Definition at line 19 of file hanoi.c.


Generated on Tue Mar 9 04:37:03 2010 for Minix by  doxygen 1.5.8