Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Built-in Functions [C]

Table 19, page 195, list the built-in functions available in the Silicon Graphics C
compiler, along with a short description.

Table 19. Built-in Functions

Intrinsic Short Description


void *__builtin_alloca(unsigned Returns a pointer to a
size) specified number of bytes of
uninitialized local stack
space.
float __builtin_fsqrt(float x) Computes the non-negative
square root of a floating
point argument.
double __builtin_sqrt(double x) Computes the non-negative
square root of a double
argument.
float __builtin_fabs(float x) Computes the absolute
value of a float argument.
double __builtin_dabs(double x) Computes the absolute
value of a double
argument.

int __builtin_cast_f2i(float x) Treats float as int.


float __builtin_cast_i2f(int x) Treats int as float.
long long __builtin_cast_d2ll(double Treats double as long
x) long.
double __builtin_cast_ll2d(long long Treats long long as
x) double.
int __builtin_copy_dhi2i(double x) Copies high part of double
to int.
double __builtin_copy_i2dhi(int x) Copies int to high part of
double.

007–0701–130 195

You might also like