Changeset 6eabb6e6 in mainline for kernel/test/fpu/fpu1/test.c
- Timestamp:
- 2006-09-13T13:16:30Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 34d9469e
- Parents:
- 9a5b556
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/fpu/fpu1/test.c
r9a5b556 r6eabb6e6 46 46 47 47 48 #ifdef __ia32_ARCH_H__48 #ifdef KERN_ia32_ARCH_H_ 49 49 static inline double sqrt(double x) { double v; __asm__ ("fsqrt\n" : "=t" (v) : "0" (x)); return v; } 50 50 #endif 51 51 52 #ifdef __amd64_ARCH_H__52 #ifdef KERN_amd64_ARCH_H_ 53 53 static inline double sqrt(double x) { double v; __asm__ ("fsqrt\n" : "=t" (v) : "0" (x)); return v; } 54 54 #endif 55 55 56 #ifdef __ia64_ARCH_H__56 #ifdef KERN_ia64_ARCH_H_ 57 57 static inline long double sqrt(long double a) 58 58 { … … 106 106 { 107 107 108 #ifdef __ia64_ARCH_H__108 #ifdef KERN_ia64_ARCH_H_ 109 109 #undef PI_10e8 110 110 #define PI_10e8 3141592 … … 135 135 } 136 136 137 #ifdef __ia64_ARCH_H__137 #ifdef KERN_ia64_ARCH_H_ 138 138 if((int)(1000000*pi)!=PI_10e8) 139 139 panic("tid%d: pi*10e8=%zd should be %zd\n", THREAD->tid, (unative_t) (1000000*pi),(unative_t) (PI_10e8/100));
Note:
See TracChangeset
for help on using the changeset viewer.