Changeset 280a27e in mainline for test/fpu/fpu1/test.c
- Timestamp:
- 2006-04-16T13:16:44Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 50de918
- Parents:
- c624b96
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/fpu/fpu1/test.c
rc624b96 r280a27e 94 94 95 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 100 atomic_inc(&threads_ok); 101 101 } … … 132 132 #ifdef __ia64_ARCH_H__ 133 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 135 #else 136 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 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 143 atomic_inc(&threads_ok); 144 144 }
Note:
See TracChangeset
for help on using the changeset viewer.