CLRX  1
An unofficial OpenCL extensions designed for Radeon GPUs
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Namespaces | Functions
MemAccess.h File Reference

inlines for accessing memory words in LittleEndian and unaligned More...

#include <CLRX/Config.h>
#include <cstdint>

Go to the source code of this file.

Namespaces

 CLRX
 main namespace
 

Functions

uint8_t CLRX::BEV (uint8_t t)
 convert from/to big endian value
 
int8_t CLRX::BEV (int8_t t)
 convert from/to big endian value
 
uint16_t CLRX::BEV (uint16_t t)
 convert from/to big endian value
 
int16_t CLRX::BEV (int16_t t)
 convert from/to big endian value
 
uint32_t CLRX::BEV (uint32_t t)
 convert from/to big endian value
 
int32_t CLRX::BEV (int32_t t)
 convert from/to big endian value
 
uint64_t CLRX::BEV (uint64_t t)
 convert from/to big endian value
 
int64_t CLRX::BEV (int64_t t)
 convert from/to big endian value
 
uint8_t CLRX::UBEV (const uint8_t &t)
 convert from/to big endian value from unaligned memory
 
int8_t CLRX::UBEV (const int8_t &t)
 convert from/to big endian value from unaligned memory
 
uint16_t CLRX::UBEV (const uint16_t &t)
 convert from/to big endian value from unaligned memory
 
int16_t CLRX::UBEV (const int16_t &t)
 convert from/to big endian value from unaligned memory
 
uint32_t CLRX::UBEV (const uint32_t &t)
 convert from/to big endian value from unaligned memory
 
int32_t CLRX::UBEV (const int32_t &t)
 convert from/to big endian value from unaligned memory
 
uint64_t CLRX::UBEV (const uint64_t &t)
 convert from/to big endian value from unaligned memory
 
int64_t CLRX::UBEV (const int64_t &t)
 convert from/to big endian value from unaligned memory
 
uint8_t CLRX::LEV (uint8_t t)
 convert from/to little endian value
 
int8_t CLRX::LEV (int8_t t)
 convert from/to little endian value
 
uint16_t CLRX::LEV (uint16_t t)
 convert from/to little endian value
 
int16_t CLRX::LEV (int16_t t)
 convert from/to little endian value
 
uint32_t CLRX::LEV (uint32_t t)
 convert from/to little endian value
 
int32_t CLRX::LEV (int32_t t)
 convert from/to little endian value
 
uint64_t CLRX::LEV (uint64_t t)
 convert from/to little endian value
 
int64_t CLRX::LEV (int64_t t)
 convert from/to little endian value
 
uint8_t CLRX::ULEV (const uint8_t &t)
 convert from/to little endian value from unaligned memory
 
int8_t CLRX::ULEV (const int8_t &t)
 convert from/to little endian value from unaligned memory
 
uint16_t CLRX::ULEV (const uint16_t &t)
 convert from/to little endian value from unaligned memory
 
int16_t CLRX::ULEV (const int16_t &t)
 convert from/to little endian value from unaligned memory
 
uint32_t CLRX::ULEV (const uint32_t &t)
 convert from/to little endian value from unaligned memory
 
int32_t CLRX::ULEV (const int32_t &t)
 convert from/to little endian value from unaligned memory
 
uint64_t CLRX::ULEV (const uint64_t &t)
 convert from/to little endian value from unaligned memory
 
int64_t CLRX::ULEV (const int64_t &t)
 convert from/to little endian value from unaligned memory
 
void CLRX::SBEV (uint8_t &r, uint8_t v)
 save from/to big endian value
 
void CLRX::SBEV (int8_t &r, int8_t v)
 save from/to big endian value
 
void CLRX::SBEV (uint16_t &r, uint16_t v)
 save from/to big endian value
 
void CLRX::SBEV (int16_t &r, int16_t v)
 save from/to big endian value
 
void CLRX::SBEV (uint32_t &r, uint32_t v)
 save from/to big endian value
 
void CLRX::SBEV (int32_t &r, int32_t v)
 save from/to big endian value
 
void CLRX::SBEV (uint64_t &r, uint64_t v)
 save from/to big endian value
 
void CLRX::SBEV (int64_t &r, int64_t v)
 save from/to big endian value
 
void CLRX::SUBEV (uint16_t &r, uint16_t v)
 save from/to big endian value to unaligned memory
 
void CLRX::SUBEV (int16_t &r, int16_t v)
 save from/to big endian value to unaligned memory
 
void CLRX::SUBEV (uint32_t &r, uint32_t v)
 save from/to big endian value to unaligned memory
 
void CLRX::SUBEV (int32_t &r, int32_t v)
 save from/to big endian value to unaligned memory
 
void CLRX::SUBEV (uint64_t &r, uint64_t v)
 save from/to big endian value to unaligned memory
 
void CLRX::SUBEV (int64_t &r, int64_t v)
 save from/to big endian value to unaligned memory
 
void CLRX::SLEV (uint8_t &r, uint8_t v)
 save from/to little endian value
 
void CLRX::SLEV (int8_t &r, int8_t v)
 save from/to little endian value
 
void CLRX::SLEV (uint16_t &r, uint16_t v)
 save from/to little endian value
 
void CLRX::SLEV (int16_t &r, int16_t v)
 save from/to little endian value
 
void CLRX::SLEV (uint32_t &r, uint32_t v)
 save from/to little endian value
 
void CLRX::SLEV (int32_t &r, int32_t v)
 save from/to little endian value
 
void CLRX::SLEV (uint64_t &r, uint64_t v)
 save from/to little endian value
 
void CLRX::SLEV (int64_t &r, int64_t v)
 save from/to little endian value
 
void CLRX::SULEV (uint8_t &r, uint8_t v)
 save from/to little endian value to unaligned memory
 
void CLRX::SULEV (int8_t &r, int8_t v)
 save from/to little endian value to unaligned memory
 
void CLRX::SULEV (uint16_t &r, uint16_t v)
 save from/to little endian value to unaligned memory
 
void CLRX::SULEV (int16_t &r, int16_t v)
 save from/to little endian value to unaligned memory
 
void CLRX::SULEV (uint32_t &r, uint32_t v)
 save from/to little endian value to unaligned memory
 
void CLRX::SULEV (int32_t &r, int32_t v)
 save from/to little endian value to unaligned memory
 
void CLRX::SULEV (uint64_t &r, uint64_t v)
 save from/to little endian value to unaligned memory
 
void CLRX::SULEV (int64_t &r, int64_t v)
 save from/to little endian value to unaligned memory
 
uint16_t CLRX::BSWAP16 (uint16_t v)
 BSWAP 16-bit.
 
uint32_t CLRX::BSWAP32 (uint32_t v)
 BSWAP 32-bit.
 
uint64_t CLRX::BSWAP64 (uint64_t v)
 BSWAP 64-bit.
 
uint8_t CLRX::UBEV (uint8_t t)
 convert from/to big endian value from unaligned memory
 
int8_t CLRX::UBEV (int8_t t)
 convert from/to big endian value from unaligned memory
 
uint8_t CLRX::ULEV (uint8_t t)
 convert from/to little endian value from unaligned memory
 
int8_t CLRX::ULEV (int8_t t)
 convert from/to little endian value from unaligned memory
 
void CLRX::SUBEV (uint8_t &r, uint8_t v)
 save from/to big endian value to unaligned memory
 
void CLRX::SUBEV (int8_t &r, int8_t v)
 save from/to bif endian value to unaligned memory
 

Detailed Description

inlines for accessing memory words in LittleEndian and unaligned