C Run-Time Library Reference
abs
absolute value
Synopsis
#include <stdlib.h>
int abs(int j);
Description
The
function returns the absolute value of its
abs
function is implemented through a built-in. The built-in causes the com-
piler to emit an inline instruction to perform the required function at the
point where
abs
abs(INT_MIN)
Error Conditions
The
function does not return an error condition.
abs
Example
#include <stdlib.h>
int i;
i = abs(-5);
See Also
fabs,
labs
3-28
is called.
returns
INT_MIN
/* i == 5 */
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
input. The
int
.
for ADSP-219x DSPs
abs
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers