IS_DEC_DPD 3CW "03 February 2009" "mathcw-1.00"

Table of contents


NAME

is_dec_dpd - test for IBM DPD decimal floating-point arithmetic encoding

SYNOPSIS

cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ]

#include <mathcw.h>

extern int is_dec_dpd (void);

DESCRIPTION

Determine whether decimal floating-point arithmetic is supported, and if so, whether the encoding used is the IBM Densely-Packed Decimal (DPD) format.

Some systems may use an alternative encoding, the Intel Binary-Integer Decimal (BID) format.

This function is provided because a few low-level primitives for decimal arithmetic need to distinguish between the two encodings, even though both formats have the same storage size, precision, and range.


RETURN VALUES

Return 1 if decimal arithmetic is supported and the DPD format is used, and 0 otherwise.

ERRORS

None.

SEE ALSO

is_dec_bid(3CW).