Intrinsics allowing you to perform select, absolute and delay operations on integer scalars.
More...
Intrinsics allowing you to perform select, absolute and delay operations on integer scalars.
|
Scalar select
These instructions are equivalent to the ternary ?: operator and should normally be inferred by the compiler automatically.
|
char | select (bool, char, char) |
|
unsigned char | select (bool, unsigned char, unsigned char) |
|
signed short | select (bool, signed short, signed short) |
|
unsigned short | select (bool, unsigned short, unsigned short) |
|
int | select (bool, int, int) |
|
unsigned int | select (bool, unsigned int, unsigned int) |
|
long | select (bool, long, long) |
|
unsigned long | select (bool, unsigned long, unsigned long) |
|
void * | select (bool, void *, void *) |
|
|
Returns the pointer that is given as input after N cycles.
|
void * | delay1 (void *) |
|
void * | delay2 (void *) |
|
void * | delay3 (void *) |
|
void * | delay4 (void *) |
|
void * | delay5 (void *) |
|
void * | delay6 (void *) |
|
|
unsigned | clb (int n) |
| Count number of leading consecutive bits. If a is positive, count leading 0's, otherwise count leading 1's. More...
|
|
unsigned | clb (unsigned n) |
| Count number of leading consecutive 0's. More...
|
|
unsigned | clb (long long a) |
| Count number of leading consecutive bits. If a is positive, count leading 0's, otherwise count leading 1's. More...
|
|
unsigned | clb (unsigned long long a) |
| Count number of leading consecutive 0's. More...
|
|
|
void | nop (unsigned delay) |
| Insert pipeline bubbles in the micro-code. More...
|
|
void | nop () |
| Insert 2 pipeline bubbles in the micro-code. More...
|
|
◆ clb() [1/4]
Count number of leading consecutive bits. If a is positive, count leading 0's, otherwise count leading 1's.
◆ clb() [2/4]
unsigned clb |
( |
long long |
a | ) |
|
Count number of leading consecutive bits. If a is positive, count leading 0's, otherwise count leading 1's.
◆ clb() [3/4]
unsigned clb |
( |
unsigned long long |
a | ) |
|
Count number of leading consecutive 0's.
◆ clb() [4/4]
unsigned clb |
( |
unsigned |
n | ) |
|
Count number of leading consecutive 0's.
◆ delay1() [1/2]
◆ delay1() [2/2]
◆ delay2() [1/2]
◆ delay2() [2/2]
◆ delay3() [1/2]
◆ delay3() [2/2]
◆ delay4() [1/2]
◆ delay4() [2/2]
◆ delay5() [1/2]
◆ delay5() [2/2]
◆ delay6() [1/2]
◆ delay6() [2/2]
◆ nop() [1/2]
Insert 2 pipeline bubbles in the micro-code.
- Note
- Subsequent nops will be collapsed into a single nop (only the maximum value will be seen).
◆ nop() [2/2]
void nop |
( |
unsigned |
delay | ) |
|
Insert pipeline bubbles in the micro-code.
- Parameters
-
delay | Number of cycles between two instructions. |
- Note
- Delay must be a compile time constant.
-
Subsequent nops will be collapsed into a single nop (only the maximum value will be seen).
◆ scalar_abs()
Scalar absolute value intrinsic.
◆ select() [1/9]
char select |
( |
bool |
, |
|
|
char |
, |
|
|
char |
|
|
) |
| |
◆ select() [2/9]
int select |
( |
bool |
, |
|
|
int |
, |
|
|
int |
|
|
) |
| |
◆ select() [3/9]
long select |
( |
bool |
, |
|
|
long |
, |
|
|
long |
|
|
) |
| |
◆ select() [4/9]
signed short select |
( |
bool |
, |
|
|
signed short |
, |
|
|
signed short |
|
|
) |
| |
◆ select() [5/9]
unsigned char select |
( |
bool |
, |
|
|
unsigned char |
, |
|
|
unsigned char |
|
|
) |
| |
◆ select() [6/9]
unsigned int select |
( |
bool |
, |
|
|
unsigned int |
, |
|
|
unsigned int |
|
|
) |
| |
◆ select() [7/9]
unsigned long select |
( |
bool |
, |
|
|
unsigned long |
, |
|
|
unsigned long |
|
|
) |
| |
◆ select() [8/9]
unsigned short select |
( |
bool |
, |
|
|
unsigned short |
, |
|
|
unsigned short |
|
|
) |
| |
◆ select() [9/9]
void* select |
( |
bool |
, |
|
|
void * |
, |
|
|
void * |
|
|
) |
| |