Mac OS 9
fp.h File Reference

FPCE Floating-Point Definitions and Declarations. More...

#include <ConditionalMacros.h>
#include <MacTypes.h>

Go to the source code of this file.

Macros

#define NAN   sqrt(-1)
 
#define x80told(x80, x)   (*(x) = (long double)x80tod(x80))
 
#define ldtox80(x, x80)
 

Functions

double x80tod (const extended80 *x80)
 
void dtox80 (const double *x, extended80 *x80)
 
void x80told (const extended80 *x80, long double *x)
 
void ldtox80 (const long double *x, extended80 *x80)
 

Detailed Description

FPCE Floating-Point Definitions and Declarations.

Introduced In: MathLib v2
Avaliable From: Universal Interfaces 3.4.1
Copyright: � 1987-2001 by Apple Computer, Inc., all rights reserved.

Macro Definition Documentation

◆ ldtox80

#define ldtox80 (   x,
  x80 
)
Value:
do \
{ \
double d = (double)*(x); \
dtox80(&d, (x80)); \
} while (false)
x
Definition: ToolUtils.h:163

Function Documentation

◆ dtox80()

void dtox80 ( const double *  x,
extended80 x80 
)

dtox80()

Non-Carbon CFM: in MathLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ ldtox80()

void ldtox80 ( const long double *  x,
extended80 x80 
)

ldtox80()

Non-Carbon CFM: in MathLib 1.0 and later or as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: not available

◆ x80tod()

double x80tod ( const extended80 x80)

MathLib v2 has two new transfer functions: x80tod and dtox80. They can be used to directly transform 68k 80-bit extended data types to double and back for PowerPC based machines without using the functions x80told or ldtox80. Double rounding may occur. x80tod()

Non-Carbon CFM: in MathLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ x80told()

void x80told ( const extended80 x80,
long double *  x 
)

x80told()

Non-Carbon CFM: in MathLib 1.0 and later or as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: not available