#define _GNU_SOURCE
#include <unistd.h>
#include <errno.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
#include <ctype.h>
#include "lsfpu.c"
#include "lsmem.c"
#include <math.h>       /* for sin, exp etc.           */
#include <stdio.h>      /* standard I/O                */
#include <string.h>     /* for strcpy - 3 occurrences  */
#include <stdlib.h>     /* for exit   - 1 occurrence   */
#include <time.h>


void title() {
        printf("\tLSBENCH is a product of the linuxsociety team\n");
        printf("\tThis is version beta-0.0.2 dated 02/27/2007\n");
        printf("\tIt is not recommended that you run this benchmark on systems with less than 64MB of physical memory\n\n");
return;
}

int main() {
        title();
        printf("\nRunning Memory tests (3 for now):\n");
        memtests();
        printf("\nRunning FPU tests:");
        Section1();
     /*   Section2();
        Section3();
        Section4();
        Section5();
        Section6();
        Section7();
        Section8(); */
        lsfpu = (pass0) / 2000 / 15;
        printf("\n\nLSBENCH Results:\n");
        printf("\tMemory index: %.3f \n", lsmem);
        printf("\tFPU index:    %lf\n\n", lsfpu);
        return 0;
}

