Added #if (!defined BORLANDC && !defined CODEGEARC) to avoid a signaling_NaN trap on these compilers.