Ravishankar S said:
Is there any predefined constant in Std C which specifed that the
implementation uses the IEEE754
standard for floating point operation ?
C99 has __STDC_IEC_559__:
F.1 Introduction
1 This annex specifies C language support for the IEC 60559
floating-point standard. The IEC 60559 floating-point
standard is specifically Binary floating-point arithmetic
for microprocessor systems, second edition (IEC 60559:1989),
previously designated IEC 559:1989 and as IEEE Standard for
Binary Floating-Point Arithmetic (ANSI/IEEE 754-1985). IEEE
Standard for Radix-Independent Floating-Point Arithmetic
(ANSI/IEEE 854-1987) generalizes the binary standard to
remove dependencies on radix and word length. IEC 60559
generally refers to the floating-point standard, as in IEC
60559 operation, IEC 60559 format, etc. An implementation
that defines __STDC_IEC_559__ shall conform to the
specifications in this annex. Where a binding between the C
language and IEC 60559 is indicated, the IEC 60559-specified
behavior is adopted by reference, unless stated otherwise.