#include "llvm/Support/SwapByteOrder.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. | |
template<unsigned N> | |
bool | llvm::isInt (int64_t x) |
isInt - Checks if an integer fits into the given bit width. | |
template<> | |
bool | llvm::isInt< 8 > (int64_t x) |
template<> | |
bool | llvm::isInt< 16 > (int64_t x) |
template<> | |
bool | llvm::isInt< 32 > (int64_t x) |
template<unsigned N> | |
bool | llvm::isUInt (uint64_t x) |
isUInt - Checks if an unsigned integer fits into the given bit width. | |
template<> | |
bool | llvm::isUInt< 8 > (uint64_t x) |
template<> | |
bool | llvm::isUInt< 16 > (uint64_t x) |
template<> | |
bool | llvm::isUInt< 32 > (uint64_t x) |
bool | llvm::isUIntN (unsigned N, uint64_t x) |
isUIntN - Checks if an unsigned integer fits into the given (dynamic) bit width. | |
bool | llvm::isIntN (unsigned N, int64_t x) |
isIntN - Checks if an signed integer fits into the given (dynamic) bit width. | |
bool | llvm::isMask_32 (uint32_t Value) |
isMask_32 - This function returns true if the argument is a sequence of ones starting at the least significant bit with the remainder zero (32 bit version). | |
bool | llvm::isMask_64 (uint64_t Value) |
isMask_64 - This function returns true if the argument is a sequence of ones starting at the least significant bit with the remainder zero (64 bit version). | |
bool | llvm::isShiftedMask_32 (uint32_t Value) |
isShiftedMask_32 - This function returns true if the argument contains a sequence of ones with the remainder zero (32 bit version. | |
bool | llvm::isShiftedMask_64 (uint64_t Value) |
isShiftedMask_64 - This function returns true if the argument contains a sequence of ones with the remainder zero (64 bit version. | |
bool | llvm::isPowerOf2_32 (uint32_t Value) |
isPowerOf2_32 - This function returns true if the argument is a power of two > 0. | |
bool | llvm::isPowerOf2_64 (uint64_t Value) |
isPowerOf2_64 - This function returns true if the argument is a power of two > 0 (64 bit edition. | |
uint16_t | llvm::ByteSwap_16 (uint16_t Value) |
ByteSwap_16 - This function returns a byte-swapped representation of the 16-bit argument, Value. | |
uint32_t | llvm::ByteSwap_32 (uint32_t Value) |
ByteSwap_32 - This function returns a byte-swapped representation of the 32-bit argument, Value. | |
uint64_t | llvm::ByteSwap_64 (uint64_t Value) |
ByteSwap_64 - This function returns a byte-swapped representation of the 64-bit argument, Value. | |
unsigned | llvm::CountLeadingZeros_32 (uint32_t Value) |
CountLeadingZeros_32 - this function performs the platform optimal form of counting the number of zeros from the most significant bit to the first one bit. | |
unsigned | llvm::CountLeadingOnes_32 (uint32_t Value) |
CountLeadingOnes_32 - this function performs the operation of counting the number of ones from the most significant bit to the first zero bit. | |
unsigned | llvm::CountLeadingZeros_64 (uint64_t Value) |
CountLeadingZeros_64 - This function performs the platform optimal form of counting the number of zeros from the most significant bit to the first one bit (64 bit edition. | |
unsigned | llvm::CountLeadingOnes_64 (uint64_t Value) |
CountLeadingOnes_64 - This function performs the operation of counting the number of ones from the most significant bit to the first zero bit (64 bit edition. | |
unsigned | llvm::CountTrailingZeros_32 (uint32_t Value) |
CountTrailingZeros_32 - this function performs the platform optimal form of counting the number of zeros from the least significant bit to the first one bit. | |
unsigned | llvm::CountTrailingOnes_32 (uint32_t Value) |
CountTrailingOnes_32 - this function performs the operation of counting the number of ones from the least significant bit to the first zero bit. | |
unsigned | llvm::CountTrailingZeros_64 (uint64_t Value) |
CountTrailingZeros_64 - This function performs the platform optimal form of counting the number of zeros from the least significant bit to the first one bit (64 bit edition. | |
unsigned | llvm::CountTrailingOnes_64 (uint64_t Value) |
CountTrailingOnes_64 - This function performs the operation of counting the number of ones from the least significant bit to the first zero bit (64 bit edition. | |
unsigned | llvm::CountPopulation_32 (uint32_t Value) |
CountPopulation_32 - this function counts the number of set bits in a value. | |
unsigned | llvm::CountPopulation_64 (uint64_t Value) |
CountPopulation_64 - this function counts the number of set bits in a value, (64 bit edition. | |
unsigned | llvm::Log2_32 (uint32_t Value) |
Log2_32 - This function returns the floor log base 2 of the specified value, -1 if the value is zero. | |
unsigned | llvm::Log2_64 (uint64_t Value) |
Log2_64 - This function returns the floor log base 2 of the specified value, -1 if the value is zero. | |
unsigned | llvm::Log2_32_Ceil (uint32_t Value) |
Log2_32_Ceil - This function returns the ceil log base 2 of the specified value, 32 if the value is zero. | |
unsigned | llvm::Log2_64_Ceil (uint64_t Value) |
Log2_64_Ceil - This function returns the ceil log base 2 of the specified value, 64 if the value is zero. | |
uint64_t | llvm::GreatestCommonDivisor64 (uint64_t A, uint64_t B) |
GreatestCommonDivisor64 - Return the greatest common divisor of the two values using Euclid's algorithm. | |
double | llvm::BitsToDouble (uint64_t Bits) |
BitsToDouble - This function takes a 64-bit integer and returns the bit equivalent double. | |
float | llvm::BitsToFloat (uint32_t Bits) |
BitsToFloat - This function takes a 32-bit integer and returns the bit equivalent float. | |
uint64_t | llvm::DoubleToBits (double Double) |
DoubleToBits - This function takes a double and returns the bit equivalent 64-bit integer. | |
uint32_t | llvm::FloatToBits (float Float) |
FloatToBits - This function takes a float and returns the bit equivalent 32-bit integer. | |
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) |
MinAlign - A and B are either alignments or offsets. | |
static uint64_t | llvm::NextPowerOf2 (uint64_t A) |
NextPowerOf2 - Returns the next power of two (in 64-bits) that is strictly greater than A. | |
uint64_t | llvm::RoundUpToAlignment (uint64_t Value, uint64_t Align) |
RoundUpToAlignment - Returns the next integer (mod 2**64) that is greater than or equal to. | |
uint64_t | llvm::OffsetToAlignment (uint64_t Value, uint64_t Align) |
OffsetToAlignment - Return the offset to the next integer (mod 2**64) that is greater than or equal to. | |
int64_t | llvm::abs64 (int64_t x) |
abs64 - absolute value of a 64-bit int. | |
template<unsigned B> | |
int32_t | llvm::SignExtend32 (uint32_t x) |
SignExtend32 - Sign extend B-bit number x to 32-bit int. | |
template<unsigned B> | |
int64_t | llvm::SignExtend64 (uint64_t x) |
SignExtend64 - Sign extend B-bit number x to 64-bit int. |