Subversion Repositories HelenOS

Rev

Rev 111 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 111 Rev 119
Line 67... Line 67...
67
 
67
 
68
        if((int)(100000000*e)!=E_10e8)
68
        if((int)(100000000*e)!=E_10e8)
69
            panic("tid%d: e*10e8=%d\n", THREAD->tid, (int) 100000000*e);
69
            panic("tid%d: e*10e8=%d\n", THREAD->tid, (int) 100000000*e);
70
    }
70
    }
71
 
71
 
72
    atomic_inc((int *) &threads_ok);
72
    atomic_inc(&threads_ok);
73
}
73
}
74
 
74
 
75
static void pi(void *data)
75
static void pi(void *data)
76
{
76
{
77
    int i;
77
    int i;
Line 97... Line 97...
97
 
97
 
98
        if((int)(100000000*pi)!=PI_10e8)
98
        if((int)(100000000*pi)!=PI_10e8)
99
            panic("tid%d: pi*10e8=%d\n", THREAD->tid, (int) 100000000*pi);
99
            panic("tid%d: pi*10e8=%d\n", THREAD->tid, (int) 100000000*pi);
100
    }
100
    }
101
 
101
 
102
    atomic_inc((int *) &threads_ok);
102
    atomic_inc(&threads_ok);
103
}
103
}
104
 
104
 
105
 
105
 
106
void test(void)
106
void test(void)
107
{
107
{