Download "TMS320C6000 Optimizing C Compiler User's Guide"

Transcript
asinh/asinhf
asinh/asinhf
Syntax for C
Hyperbolic Arc Sine
#define _TI_ENHANCED_MATH_H 1
#include <math.h>
double asinh(double x);
float asinhf(float x);
Syntax for C++
#define _TI_ENHANCED_MATH_H 1
#include <cmath>
double std::asinh(double x);
float std::asinhf(float x);
Defined in
asinh.c and asinhf.c in rts.src
Description
The asinh and asinhf functions return the hyperbolic arc sine of a floating-point
number x. A range error occurs if the magnitude of the argument is too large.
assert
Syntax for C
Insert Diagnostic Information Macro
#include <assert.h>
void assert(int expr);
Syntax for C++
#include <cassert>
void std::assert(int expr);
Defined in
assert.h/cassert as macro
Description
The assert macro tests an expression; depending upon the value of the
expression, assert either issues a message and aborts execution or continues
execution. This macro is useful for debugging.
- If expr is false, the assert macro writes information about the call that failed
to the standard output device and aborts execution.
- If expr is true, the assert macro does nothing.
The header file that defines the assert macro refers to another macro,
NDEBUG. If you have defined NDEBUG as a macro name when the assert.h
header is included in the source file, the assert macro is defined as:
#define assert(ignore)
The header file that defines the assert macro refers to another macro,
NASSERT. If you have defined NASSERT as a macro name when the assert.h
header is included in the source file, the assert macro behaves as if it is a call
to the _nassert intrinsic.
9-44