AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
#Operatingsystems
#Servers
 View Only
  • 1.  FPU precision on AIX 5.3

    Posted 01/02/08 06:34 AM

    Originally posted by: SystemAdmin


    Hi,

    how can I switch float point precision used by FPU from extended-double to double in C/C++ code (compiled by xlc)? On Linux it is simple, for example:

    fpu_control_t fpu;
    _FPU_GETCW(fpu);
    fpu &= ~_FPU_EXTENDED;
    fpu |= _FPU_DOUBLE;
    _FPU_SETCW(fpu);

    Is there any switch for xlc or syscall?

    thanks
    #AIX-Forum