Rev 1658 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1658 | Rev 1780 | ||
---|---|---|---|
Line 93... | Line 93... | ||
93 | le=e; |
93 | le=e; |
94 | e=e+1/d; |
94 | e=e+1/d; |
95 | } |
95 | } |
96 | 96 | ||
97 | if((int)(100000000*e)!=E_10e8) |
97 | if((int)(100000000*e)!=E_10e8) |
98 | panic("tid%d: e*10e8=%zd should be %zd\n", THREAD->tid, (__native) (100000000*e),(__native) E_10e8); |
98 | panic("tid%d: e*10e8=%zd should be %zd\n", THREAD->tid, (unative_t) (100000000*e),(unative_t) E_10e8); |
99 | } |
99 | } |
100 | 100 | ||
101 | printf("tid%d: e*10e8=%zd should be %zd\n", THREAD->tid, (__native) (100000000*e),(__native) E_10e8); |
101 | printf("tid%d: e*10e8=%zd should be %zd\n", THREAD->tid, (unative_t) (100000000*e),(unative_t) E_10e8); |
102 | atomic_inc(&threads_ok); |
102 | atomic_inc(&threads_ok); |
103 | } |
103 | } |
104 | 104 | ||
105 | static void pi(void *data) |
105 | static void pi(void *data) |
106 | { |
106 | { |
Line 134... | Line 134... | ||
134 | pi = 2 * n * ad; |
134 | pi = 2 * n * ad; |
135 | } |
135 | } |
136 | 136 | ||
137 | #ifdef __ia64_ARCH_H__ |
137 | #ifdef __ia64_ARCH_H__ |
138 | if((int)(1000000*pi)!=PI_10e8) |
138 | if((int)(1000000*pi)!=PI_10e8) |
139 | panic("tid%d: pi*10e8=%zd should be %zd\n", THREAD->tid, (__native) (1000000*pi),(__native) (PI_10e8/100)); |
139 | panic("tid%d: pi*10e8=%zd should be %zd\n", THREAD->tid, (unative_t) (1000000*pi),(unative_t) (PI_10e8/100)); |
140 | #else |
140 | #else |
141 | if((int)(100000000*pi)!=PI_10e8) |
141 | if((int)(100000000*pi)!=PI_10e8) |
142 | panic("tid%d: pi*10e8=%zd should be %zd\n", THREAD->tid, (__native) (100000000*pi),(__native) PI_10e8); |
142 | panic("tid%d: pi*10e8=%zd should be %zd\n", THREAD->tid, (unative_t) (100000000*pi),(unative_t) PI_10e8); |
143 | #endif |
143 | #endif |
144 | 144 | ||
145 | } |
145 | } |
146 | 146 | ||
147 | printf("tid%d: pi*10e8=%zd should be %zd\n", THREAD->tid, (__native) (100000000*pi),(__native) PI_10e8); |
147 | printf("tid%d: pi*10e8=%zd should be %zd\n", THREAD->tid, (unative_t) (100000000*pi),(unative_t) PI_10e8); |
148 | atomic_inc(&threads_ok); |
148 | atomic_inc(&threads_ok); |
149 | } |
149 | } |
150 | 150 | ||
151 | void test(void) |
151 | void test(void) |
152 | { |
152 | { |