Subversion Repositories HelenOS-historic

Rev

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

Rev 1104 Rev 1196
Line 91... Line 91...
91
            le=e;
91
            le=e;
92
            e=e+1/d;
92
            e=e+1/d;
93
        }
93
        }
94
 
94
 
95
        if((int)(100000000*e)!=E_10e8)
95
        if((int)(100000000*e)!=E_10e8)
96
            panic("tid%d: e*10e8=%d should be %d\n", THREAD->tid, (__native) (100000000*e),(__native) E_10e8);
96
            panic("tid%d: e*10e8=%zd should be %zd\n", THREAD->tid, (__native) (100000000*e),(__native) E_10e8);
97
    }
97
    }
98
 
98
 
99
    printf("tid%d: e*10e8=%d should be %d\n", THREAD->tid, (__native) (100000000*e),(__native) E_10e8);
99
    printf("tid%d: e*10e8=%zd should be %zd\n", THREAD->tid, (__native) (100000000*e),(__native) E_10e8);
100
    atomic_inc(&threads_ok);
100
    atomic_inc(&threads_ok);
101
}
101
}
102
 
102
 
103
static void pi(void *data)
103
static void pi(void *data)
104
{
104
{
Line 129... Line 129...
129
            pi = 2 * n * ad;
129
            pi = 2 * n * ad;
130
        }
130
        }
131
 
131
 
132
#ifdef __ia64_ARCH_H__
132
#ifdef __ia64_ARCH_H__
133
        if((int)(1000000*pi)!=PI_10e8)
133
        if((int)(1000000*pi)!=PI_10e8)
134
            panic("tid%d: pi*10e8=%d should be %d\n", THREAD->tid, (__native) (1000000*pi),(__native) (PI_10e8/100));
134
            panic("tid%d: pi*10e8=%zd should be %zd\n", THREAD->tid, (__native) (1000000*pi),(__native) (PI_10e8/100));
135
#else
135
#else
136
        if((int)(100000000*pi)!=PI_10e8)
136
        if((int)(100000000*pi)!=PI_10e8)
137
            panic("tid%d: pi*10e8=%d should be %d\n", THREAD->tid, (__native) (100000000*pi),(__native) PI_10e8);
137
            panic("tid%d: pi*10e8=%zd should be %zd\n", THREAD->tid, (__native) (100000000*pi),(__native) PI_10e8);
138
#endif
138
#endif
139
 
139
 
140
    }
140
    }
141
 
141
 
142
    printf("tid%d: pi*10e8=%d should be %d\n", THREAD->tid, (__native) (100000000*pi),(__native) PI_10e8);
142
    printf("tid%d: pi*10e8=%zd should be %zd\n", THREAD->tid, (__native) (100000000*pi),(__native) PI_10e8);
143
    atomic_inc(&threads_ok);
143
    atomic_inc(&threads_ok);
144
}
144
}
145
 
145
 
146
void test(void)
146
void test(void)
147
{
147
{