11.07.2015 Views

CrossWorks for ARM User Guide

CrossWorks for ARM User Guide

CrossWorks for ARM User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

If x = +Infinity and y < 0 and y NaN, powf returns +0.If x = -Infinity, powf returns powf(-0, y)If x < 0 and x Infinity and y is a non-integer, powf returns NaN.Portabilitypowf con<strong>for</strong>ms to ISO/IEC 9899:1990 (C90) and ISO/IEC 9899:1999 (C99).scalbnSynopsisDescriptionFast math librarybehaviorIEC 60559 mathlibrary behaviorPortability#include double scalbn(double x, int exp);scalbn multiplies a floating-point number by an integral power of FLT_RADIX.As floating-point aritmetic con<strong>for</strong>ms to IEC 60559, FLT_RADIX is 2 and scalbn is (inthis implementation) identical to ldexp.scalbn returns x * FLT_RADIX^exp.If the result overflows, errno is set to ERANGE and scalbn returns HUGE_VAL.If x is Infinity or NaN, scalbn returns x.If the result overflows, scalbn returns Infinity.scalbn con<strong>for</strong>ms to ISO/IEC 9899:1999 (C99).See Also ldexp (page 268)scalbnfSynopsisDescriptionFast math librarybehaviorIEC 60559 mathlibrary behaviorPortability#include float scalbnf(float x, int exp);scalbnf multiplies a floating-point number by an integral power of FLT_RADIX.As floating-point aritmetic con<strong>for</strong>ms to IEC 60559, FLT_RADIX is 2 and scalbnf is (inthis implementation) identical to ldexpf.scalbnf returns x * FLT_RADIX^exp.If the result overflows, errno (page 247) is set to ERANGE and scalbnf returnsHUGE_VALF.If x is Infinity or NaN, scalbnf returns x.If the result overflows, scalbnf returns Infinity.scalbnf con<strong>for</strong>ms to ISO/IEC 9899:1999 (C99).See Also ldexpf (page 268)272 Chapter 28 Standard C Library Reference

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!