Changeset 6eabb6e6 in mainline for kernel/test/fpu/fpu1/test.c


Ignore:
Timestamp:
2006-09-13T13:16:30Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
34d9469e
Parents:
9a5b556
Message:

Support for sparc64 FPU context.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/fpu/fpu1/test.c

    r9a5b556 r6eabb6e6  
    4646
    4747
    48 #ifdef __ia32_ARCH_H__
     48#ifdef KERN_ia32_ARCH_H_
    4949static inline double sqrt(double x) { double v; __asm__ ("fsqrt\n" : "=t" (v) : "0" (x)); return v; }
    5050#endif
    5151
    52 #ifdef __amd64_ARCH_H__
     52#ifdef KERN_amd64_ARCH_H_
    5353static inline double sqrt(double x) { double v; __asm__ ("fsqrt\n" : "=t" (v) : "0" (x)); return v; }
    5454#endif
    5555
    56 #ifdef __ia64_ARCH_H__
     56#ifdef KERN_ia64_ARCH_H_
    5757static inline long double sqrt(long double a)
    5858{   
     
    106106{
    107107
    108 #ifdef __ia64_ARCH_H__
     108#ifdef KERN_ia64_ARCH_H_
    109109#undef PI_10e8 
    110110#define PI_10e8 3141592
     
    135135                }
    136136
    137 #ifdef __ia64_ARCH_H__
     137#ifdef KERN_ia64_ARCH_H_
    138138                if((int)(1000000*pi)!=PI_10e8)
    139139                        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.