LLVM API Documentation

MathExtras.h File Reference

#include "llvm/Support/DataTypes.h"

Include dependency graph for MathExtras.h:

Go to the source code of this file.

Namespaces

namespace  llvm

Functions

uint32_t llvm::Hi_32 (uint64_t Value)
 Hi_32 - This function returns the high 32 bits of a 64 bit value.
uint32_t llvm::Lo_32 (uint64_t Value)
 Lo_32 - This function returns the low 32 bits of a 64 bit value.
bool llvm::isInt8 (int64_t Value)
 is?Type - these functions produce optimal testing for integer data types.
bool llvm::isUInt8 (int64_t Value)
bool llvm::isInt16 (int64_t Value)
bool llvm::isUInt16 (int64_t Value)
bool llvm::isInt32 (int64_t Value)
bool llvm::isUInt32 (int64_t Value)
bool llvm::isMask_32 (uint32_t Value)
bool llvm::isMask_64 (uint64_t Value)
bool llvm::isShiftedMask_32 (uint32_t Value)
bool llvm::isShiftedMask_64 (uint64_t Value)
bool llvm::isPowerOf2_32 (uint32_t Value)
bool llvm::isPowerOf2_64 (uint64_t Value)
uint16_t llvm::ByteSwap_16 (uint16_t Value)
uint32_t llvm::ByteSwap_32 (uint32_t Value)
uint64_t llvm::ByteSwap_64 (uint64_t Value)
unsigned llvm::CountLeadingZeros_32 (uint32_t Value)
unsigned llvm::CountLeadingOnes_32 (uint32_t Value)
unsigned llvm::CountLeadingZeros_64 (uint64_t Value)
unsigned llvm::CountLeadingOnes_64 (uint64_t Value)
unsigned llvm::CountTrailingZeros_32 (uint32_t Value)
unsigned llvm::CountTrailingOnes_32 (uint32_t Value)
unsigned llvm::CountTrailingZeros_64 (uint64_t Value)
unsigned llvm::CountTrailingOnes_64 (uint64_t Value)
unsigned llvm::CountPopulation_32 (uint32_t Value)
unsigned llvm::CountPopulation_64 (uint64_t Value)
unsigned llvm::Log2_32 (uint32_t Value)
unsigned llvm::Log2_64 (uint64_t Value)
unsigned llvm::Log2_32_Ceil (uint32_t Value)
unsigned llvm::Log2_64_Ceil (uint64_t Value)
uint64_t llvm::GreatestCommonDivisor64 (uint64_t A, uint64_t B)
double llvm::BitsToDouble (uint64_t Bits)
float llvm::BitsToFloat (uint32_t Bits)
uint64_t llvm::DoubleToBits (double Double)
uint32_t llvm::FloatToBits (float Float)
int llvm::IsNAN (float f)
 Platform-independent wrappers for the C99 isnan() function.
int llvm::IsNAN (double d)
int llvm::IsInf (float f)
 Platform-independent wrappers for the C99 isinf() function.
int llvm::IsInf (double d)
static uint64_t llvm::MinAlign (uint64_t A, uint64_t B)
static uint64_t llvm::NextPowerOf2 (uint64_t A)