RAPP Compute layer word type and operations. More...
Go to the source code of this file.
Defines | |
| #define | RC_WORD_SIZE |
| The number of bytes in a word is the native machine word size if not set explicitly. | |
| #define | RC_WORD_ZERO |
| The word type definition. | |
| #define | RC_WORD_ONE |
| A word with all one bits. | |
| #define | RC_WORD_LOAD(ptr) |
| Load a word from memory. | |
| #define | RC_WORD_STORE(ptr, word) |
| Store a word in memory. | |
| #define | RC_WORD_BIT(pos) |
| Word constants. | |
| #define | RC_WORD_SHR(word, bits) |
| Nominal right bit shift. | |
| #define | RC_WORD_SHL(word, bits) |
| Nominal left bit shift. | |
| #define | RC_WORD_ALIGN(word1, word2, bits) |
| Align word1 and word2, starting at bit bits into concatenation of word1 and word2. | |
| #define | RC_WORD_INSERT(value, pos, bits) |
| Insert bits into the logical positions pos, . | |
| #define | RC_32_INSERT(value, pos, bits) |
| #define | RC_WORD_EXTRACT(word, pos, bits) |
| Extract the bits at the logical positions pos, . | |
| #define | RC_32_EXTRACT(word, pos, bits) |
| #define | RC_WORD_BITCOUNT(cnt, word) |
| Count the number of set bits in a word. | |
| #define | RC_WORD_MASK__(bits) |
| A bit mask with the bits least significant bits set. | |
| #define | RC_32_MASK__(bits) |
| #define | RC_WORD_HEX_8__(digs, suff) |
| An hexadecimal word constant with eight fields. | |
| #define | RC_WORD_HEX_4__(digs, suff) |
| An hexadecimal word constant with four fields. | |
| #define | RC_WORD_HEX_2__(digs, suff) |
| An hexadecimal word constant with two fields. | |
| #define | RC_WORD_HEX_1__(digs, suff) |
| An hexadecimal word constant with one field. | |
RAPP Compute layer word type and operations.
| #define RC_32_EXTRACT | ( | word, | |||
| pos, | |||||
| bits | ) |
| #define RC_32_INSERT | ( | value, | |||
| pos, | |||||
| bits | ) |
| #define RC_32_MASK__ | ( | bits | ) |
| #define RC_WORD_ALIGN | ( | word1, | |||
| word2, | |||||
| bits | ) |
Align word1 and word2, starting at bit bits into concatenation of word1 and word2.
| #define RC_WORD_BIT | ( | pos | ) |
Word constants.
A word with the bit at the logical position pos set.
| #define RC_WORD_BITCOUNT | ( | cnt, | |||
| word | ) |
Count the number of set bits in a word.
| #define RC_WORD_EXTRACT | ( | word, | |||
| pos, | |||||
| bits | ) |
Extract the bits at the logical positions pos, .
.., pos + bits of a word into an integer.
| #define RC_WORD_HEX_1__ | ( | digs, | |||
| suff | ) |
An hexadecimal word constant with one field.
| #define RC_WORD_HEX_2__ | ( | digs, | |||
| suff | ) |
An hexadecimal word constant with two fields.
| #define RC_WORD_HEX_4__ | ( | digs, | |||
| suff | ) |
An hexadecimal word constant with four fields.
| #define RC_WORD_HEX_8__ | ( | digs, | |||
| suff | ) |
An hexadecimal word constant with eight fields.
| #define RC_WORD_INSERT | ( | value, | |||
| pos, | |||||
| bits | ) |
Insert bits into the logical positions pos, .
.., pos + bits of a word.
| #define RC_WORD_LOAD | ( | ptr | ) |
Load a word from memory.
| #define RC_WORD_MASK__ | ( | bits | ) |
A bit mask with the bits least significant bits set.
| #define RC_WORD_ONE |
A word with all one bits.
| #define RC_WORD_SHL | ( | word, | |||
| bits | ) |
Nominal left bit shift.
| #define RC_WORD_SHR | ( | word, | |||
| bits | ) |
Nominal right bit shift.
| #define RC_WORD_SIZE |
The number of bytes in a word is the native machine word size if not set explicitly.
| #define RC_WORD_STORE | ( | ptr, | |||
| word | ) |
Store a word in memory.
| #define RC_WORD_ZERO |
The word type definition.
A word with all zero bits.
1.6.1