Floating-point support instructions

These functions are intended to help convert between the two floating point formats. For more information on these instructions, see the topic of z/Architecture Principles of Operation.

If you want to use any of the following instructions, your program must include the builtins.h header file and be compiled with LANGLVL(EXTENDED) or LANGLVL(LIBEXT).

Table 1. Floating-point instruction prototypes
PROTOTYPE and Notes Sample Pseudo Assembly MIN ARCH
int __tbdr(double *Op1, int M3, double Op2)

The return value is the condition code.

TBDR  F1,M3,Op2
LDR  *Op1,F1
ARCH(3)
int __tbedr(double *Op1, int M3, float Op2)

The return value is the condition code.

TBEDR F1,M3,Op2
LDR  *Op1,F1
ARCH(3)
int __thder(double *Op1, float Op2)

The return value is the condition code.

THDER F1,Op2
LDR  *Op1,F1
ARCH(3)
int __thdr(double *Op1, double Op2)

The return value is the condition code.

THDR  F1,Op2
LDR  *Op1,F1
ARCH(3)