SGI Techpubs Library

IRIX 6.4  »  Books  »  Developer  »  
C Language Reference Manual
(document number: 007-0701-130 / published: 1999-05-21)    table of contents  |  additional info  |  download
find in page

Appendix C. Built-in Functions

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

Table C-1. Built-in Functions

Intrinsic

Short Description

void *__builtin_alloca(unsigned size)

Returns a pointer to a 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 x)

Treats double as long long.

double __builtin_cast_ll2d(long long x)

Treats long long as 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.

int __builtin_copy_dlo2i(double x)

Copies low part of double to int.

double __builtin_copy_i2dlo(int x, double y)

Copies int to low part of double.

 

<type> __high_multiply (<type>, <type> )

Multiplies two parameters as 32 (or 64) bit integers and returns the upper 32 (or 64) bits of a 64 (or 128) bit result. <type> can be signed or unsigned, int, long, or long long.


C Language Reference Manual
(document number: 007-0701-130 / published: 1999-05-21)    table of contents  |  additional info  |  download

    Front Matter
    New Features
    About This Manual
    Chapter 1. An Overview of ANSI C
    Chapter 2. C Language Changes
    Chapter 3. Lexical Conventions
    Chapter 4. Meaning of Identifiers
    Chapter 5. Operator Conversions
    Chapter 6. Expressions and Operators
    Chapter 7. Declarations
    Chapter 8. Statements
    Chapter 9. External Definitions
    Chapter 10. Multiprocessing Directives
    Chapter 11. Multiprocessing Advanced Features
    Chapter 12. Parallel Programming on Origin Servers
    Chapter 13. The Auto-Parallelizing Option (APO)
    Appendix A. Implementation-Defined Behavior
    Appendix B. lint-style Comments
    Appendix C. Built-in Functions


home/search | what's new | help