Numeric Builtins (Using the GNU Compiler Collection (GCC)) (original) (raw)

Next: Builtins for Stack Allocation, Previous: Builtins for C Library Functions, Up: Built-in Functions Provided by GCC [Contents][Index]


7.2 Additional Builtins for Numeric Operations

GCC provides a large set of built-in functions for operating on GCC’s extended set of floating-point and integer types (see Additional Numeric Types). The floating-point builtins include functions for building and testing infinities and NaNs. On integer types, there are additional bit manipulation functions, byte-swapping, and CRC functions.

Many of these builtins are type-generic and can operate on any floating-point or integer operand.