MCUX CLNS
MCUX Crypto Library Normal Secure
Loading...
Searching...
No Matches

Access to dedicated instructions. More...

Topics

 CMSIS SIMD Intrinsics
 Access to dedicated SIMD instructions.

Macros

#define __NOP
 No Operation.
#define __WFI
 Wait For Interrupt.
#define __WFE
 Wait For Event.
#define __SEV
 Send Event.
#define __ISB()
 Instruction Synchronization Barrier.
#define __DSB()
 Data Synchronization Barrier.
#define __DMB()
 Data Memory Barrier.
#define __REV
 Reverse byte order (32 bit).
#define __ROR
 Rotate Right in unsigned value (32 bit).
#define __BKPT(value)
 Breakpoint.
#define __CLZ
 Count leading zeros.
#define __CMSIS_GCC_OUT_REG(r)
#define __CMSIS_GCC_RW_REG(r)
#define __CMSIS_GCC_USE_REG(r)
#define __NOP
 No Operation.
#define __WFI
 Wait For Interrupt.
#define __WFE
 Wait For Event.
#define __SEV
 Send Event.
#define __ISB()
 Instruction Synchronization Barrier.
#define __DSB()
 Data Synchronization Barrier.
#define __DMB()
 Data Memory Barrier.
#define __REV(value)
 Reverse byte order (32 bit).
#define __REV16(value)
 Reverse byte order (16 bit).
#define __REVSH(value)
 Reverse byte order (16 bit).
#define __BKPT(value)
 Breakpoint.
#define __RBIT
 Reverse bit order of value.
#define __CMSIS_GCC_OUT_REG(r)
#define __CMSIS_GCC_RW_REG(r)
#define __CMSIS_GCC_USE_REG(r)
#define __NOP()
 No Operation.
#define __WFI()
 Wait For Interrupt.
#define __WFE()
 Wait For Event.
#define __SEV()
 Send Event.
#define __BKPT(value)
 Breakpoint.
#define __CMSIS_GHS_OUT_REG(r)
#define __CMSIS_GHS_RW_REG(r)
#define __CMSIS_GHS_USE_REG(r)
#define __CLZ
 Count leading zeros.
#define __NOP
 No Operation.
#define __WFI
 Wait For Interrupt.
#define __WFE
 Wait For Event.
#define __SEV
 Send Event.
#define __ISB()
 Instruction Synchronization Barrier.
#define __DSB()
 Data Synchronization Barrier.
#define __DMB()
 Data Memory Barrier.
#define __REV
 Reverse byte order (32 bit).
#define __ROR
 Rotate Right in unsigned value (32 bit).
#define __BKPT(value)
 Breakpoint.
#define __CLZ
 Count leading zeros.
#define __CMSIS_GCC_OUT_REG(r)
#define __CMSIS_GCC_RW_REG(r)
#define __CMSIS_GCC_USE_REG(r)
#define __NOP
 No Operation.
#define __WFI
 Wait For Interrupt.
#define __WFE
 Wait For Event.
#define __SEV
 Send Event.
#define __ISB()
 Instruction Synchronization Barrier.
#define __DSB()
 Data Synchronization Barrier.
#define __DMB()
 Data Memory Barrier.
#define __REV(value)
 Reverse byte order (32 bit).
#define __REV16(value)
 Reverse byte order (16 bit).
#define __REVSH(value)
 Reverse byte order (16 bit).
#define __BKPT(value)
 Breakpoint.
#define __RBIT
 Reverse bit order of value.
#define __CMSIS_GCC_OUT_REG(r)
#define __CMSIS_GCC_RW_REG(r)
#define __CMSIS_GCC_USE_REG(r)
#define __NOP()
 No Operation.
#define __WFI()
 Wait For Interrupt.
#define __WFE()
 Wait For Event.
#define __SEV()
 Send Event.
#define __BKPT(value)
 Breakpoint.
#define __CMSIS_GHS_OUT_REG(r)
#define __CMSIS_GHS_RW_REG(r)
#define __CMSIS_GHS_USE_REG(r)
#define __CLZ
 Count leading zeros.
#define __NOP
 No Operation.
#define __WFI
 Wait For Interrupt.
#define __WFE
 Wait For Event.
#define __SEV
 Send Event.
#define __ISB()
 Instruction Synchronization Barrier.
#define __DSB()
 Data Synchronization Barrier.
#define __DMB()
 Data Memory Barrier.
#define __REV
 Reverse byte order (32 bit).
#define __ROR
 Rotate Right in unsigned value (32 bit).
#define __BKPT(value)
 Breakpoint.
#define __CLZ
 Count leading zeros.
#define __CMSIS_GCC_OUT_REG(r)
#define __CMSIS_GCC_RW_REG(r)
#define __CMSIS_GCC_USE_REG(r)
#define __NOP
 No Operation.
#define __WFI
 Wait For Interrupt.
#define __WFE
 Wait For Event.
#define __SEV
 Send Event.
#define __ISB()
 Instruction Synchronization Barrier.
#define __DSB()
 Data Synchronization Barrier.
#define __DMB()
 Data Memory Barrier.
#define __REV(value)
 Reverse byte order (32 bit).
#define __REV16(value)
 Reverse byte order (16 bit).
#define __REVSH(value)
 Reverse byte order (16 bit).
#define __BKPT(value)
 Breakpoint.
#define __RBIT
 Reverse bit order of value.
#define __CMSIS_GCC_OUT_REG(r)
#define __CMSIS_GCC_RW_REG(r)
#define __CMSIS_GCC_USE_REG(r)
#define __NOP()
 No Operation.
#define __WFI()
 Wait For Interrupt.
#define __WFE()
 Wait For Event.
#define __SEV()
 Send Event.
#define __BKPT(value)
 Breakpoint.
#define __CMSIS_GHS_OUT_REG(r)
#define __CMSIS_GHS_RW_REG(r)
#define __CMSIS_GHS_USE_REG(r)
#define __CLZ
 Count leading zeros.
#define __NOP
 No Operation.
#define __WFI
 Wait For Interrupt.
#define __WFE
 Wait For Event.
#define __SEV
 Send Event.
#define __ISB()
 Instruction Synchronization Barrier.
#define __DSB()
 Data Synchronization Barrier.
#define __DMB()
 Data Memory Barrier.
#define __REV
 Reverse byte order (32 bit).
#define __ROR
 Rotate Right in unsigned value (32 bit).
#define __BKPT(value)
 Breakpoint.
#define __CLZ
 Count leading zeros.
#define __CMSIS_GCC_OUT_REG(r)
#define __CMSIS_GCC_RW_REG(r)
#define __CMSIS_GCC_USE_REG(r)
#define __NOP
 No Operation.
#define __WFI
 Wait For Interrupt.
#define __WFE
 Wait For Event.
#define __SEV
 Send Event.
#define __ISB()
 Instruction Synchronization Barrier.
#define __DSB()
 Data Synchronization Barrier.
#define __DMB()
 Data Memory Barrier.
#define __REV(value)
 Reverse byte order (32 bit).
#define __REV16(value)
 Reverse byte order (16 bit).
#define __REVSH(value)
 Reverse byte order (16 bit).
#define __BKPT(value)
 Breakpoint.
#define __RBIT
 Reverse bit order of value.
#define __CMSIS_GCC_OUT_REG(r)
#define __CMSIS_GCC_RW_REG(r)
#define __CMSIS_GCC_USE_REG(r)
#define __NOP()
 No Operation.
#define __WFI()
 Wait For Interrupt.
#define __WFE()
 Wait For Event.
#define __SEV()
 Send Event.
#define __BKPT(value)
 Breakpoint.
#define __CMSIS_GHS_OUT_REG(r)
#define __CMSIS_GHS_RW_REG(r)
#define __CMSIS_GHS_USE_REG(r)
#define __CLZ

Functions

 __attribute__ ((section(".rev16_text"))) __STATIC_INLINE __ASM uint32_t __REV16(uint32_t value)
 Reverse byte order (16 bit).
 __attribute__ ((section(".revsh_text"))) __STATIC_INLINE __ASM int16_t __REVSH(int16_t value)
 Reverse byte order (16 bit).
 __attribute__ ((always_inline)) __STATIC_INLINE uint32_t __RBIT(uint32_t value)
 Reverse bit order of value.
__STATIC_FORCEINLINE uint32_t __ROR (uint32_t op1, uint32_t op2)
 Rotate Right in unsigned value (32 bit).
__STATIC_FORCEINLINE uint8_t __CLZ (uint32_t value)
 Count leading zeros.
__STATIC_FORCEINLINE int32_t __SSAT (int32_t val, uint32_t sat)
 Signed Saturate.
__STATIC_FORCEINLINE uint32_t __USAT (int32_t val, uint32_t sat)
 Unsigned Saturate.
__STATIC_FORCEINLINE void __ISB (void)
 Instruction Synchronization Barrier.
__STATIC_FORCEINLINE void __DSB (void)
 Data Synchronization Barrier.
__STATIC_FORCEINLINE void __DMB (void)
 Data Memory Barrier.
__STATIC_FORCEINLINE uint32_t __REV (uint32_t value)
 Reverse byte order (32 bit).
__STATIC_FORCEINLINE uint32_t __REV16 (uint32_t value)
 Reverse byte order (16 bit).
__STATIC_FORCEINLINE int16_t __REVSH (int16_t value)
 Reverse byte order (16 bit).
__STATIC_FORCEINLINE uint32_t __RBIT (uint32_t value)
 Reverse bit order of value.
__STATIC_FORCEINLINE uint8_t __CLZ_internal (uint32_t value)
 Count leading zeros.

Variables

uint32_t sat
uint32_t sat
uint32_t sat
uint32_t sat

Detailed Description

Access to dedicated instructions.

Macro Definition Documentation

◆ __NOP [1/12]

#define __NOP

No Operation.

No Operation does nothing. This instruction can be used for code alignment purposes.

◆ __WFI [1/12]

#define __WFI

Wait For Interrupt.

Wait For Interrupt is a hint instruction that suspends execution until one of a number of events occurs.

◆ __WFE [1/12]

#define __WFE

Wait For Event.

Wait For Event is a hint instruction that permits the processor to enter a low-power state until one of a number of events occurs.

◆ __SEV [1/12]

#define __SEV

Send Event.

Send Event is a hint instruction. It causes an event to be signaled to the CPU.

◆ __ISB [1/8]

__STATIC_FORCEINLINE void __ISB ( void)

Instruction Synchronization Barrier.

Instruction Synchronization Barrier flushes the pipeline in the processor, so that all instructions following the ISB are fetched from cache or memory, after the instruction has been completed.

◆ __DSB [1/8]

__STATIC_FORCEINLINE void __DSB ( void)

Data Synchronization Barrier.

Acts as a special kind of Data Memory Barrier. It completes when all explicit memory accesses before this instruction complete.

◆ __DMB [1/8]

__STATIC_FORCEINLINE void __DMB ( void)

Data Memory Barrier.

Ensures the apparent order of the explicit memory operations before and after the instruction, without ensuring their completion.

◆ __REV [1/8]

#define __REV

Reverse byte order (32 bit).

Reverses the byte order in unsigned integer value. For example, 0x12345678 becomes 0x78563412.

Parameters
[in]valueValue to reverse
Returns
Reversed value

◆ __ROR [1/4]

#define __ROR

Rotate Right in unsigned value (32 bit).

Rotate Right (immediate) provides the value of the contents of a register rotated by a variable number of bits.

Parameters
[in]op1Value to rotate
[in]op2Number of Bits to rotate
Returns
Rotated value

◆ __BKPT [1/12]

#define __BKPT ( value)

Breakpoint.

Causes the processor to enter Debug state. Debug tools can use this to investigate system state when the instruction at a particular address is reached.

Parameters
[in]valueis ignored by the processor. If required, a debugger can use it to store additional information about the breakpoint.

◆ __CLZ [1/7]

#define __CLZ

Count leading zeros.

Counts the number of leading zeros of a data value.

Parameters
[in]valueValue to count the leading zeros
Returns
number of leading zeros in value

◆ __NOP [2/12]

#define __NOP

No Operation.

No Operation does nothing. This instruction can be used for code alignment purposes.

◆ __WFI [2/12]

#define __WFI

Wait For Interrupt.

Wait For Interrupt is a hint instruction that suspends execution until one of a number of events occurs.

◆ __WFE [2/12]

#define __WFE

Wait For Event.

Wait For Event is a hint instruction that permits the processor to enter a low-power state until one of a number of events occurs.

◆ __SEV [2/12]

#define __SEV

Send Event.

Send Event is a hint instruction. It causes an event to be signaled to the CPU.

◆ __ISB [2/8]

#define __ISB ( void)

Instruction Synchronization Barrier.

Instruction Synchronization Barrier flushes the pipeline in the processor, so that all instructions following the ISB are fetched from cache or memory, after the instruction has been completed.

◆ __DSB [2/8]

#define __DSB ( void)

Data Synchronization Barrier.

Acts as a special kind of Data Memory Barrier. It completes when all explicit memory accesses before this instruction complete.

◆ __DMB [2/8]

#define __DMB ( void)

Data Memory Barrier.

Ensures the apparent order of the explicit memory operations before and after the instruction, without ensuring their completion.

◆ __REV [2/8]

#define __REV ( value)

Reverse byte order (32 bit).

Reverses the byte order in unsigned integer value. For example, 0x12345678 becomes 0x78563412.

Parameters
[in]valueValue to reverse
Returns
Reversed value

◆ __REV16 [1/4]

#define __REV16 ( value)

Reverse byte order (16 bit).

Reverses the byte order within each halfword of a word. For example, 0x12345678 becomes 0x34127856.

Parameters
[in]valueValue to reverse
Returns
Reversed value

◆ __REVSH [1/4]

#define __REVSH ( value)

Reverse byte order (16 bit).

Reverses the byte order in a 16-bit value and returns the signed 16-bit result. For example, 0x0080 becomes 0x8000.

Parameters
[in]valueValue to reverse
Returns
Reversed value

◆ __BKPT [2/12]

#define __BKPT ( value)

Breakpoint.

Causes the processor to enter Debug state. Debug tools can use this to investigate system state when the instruction at a particular address is reached.

Parameters
[in]valueis ignored by the processor. If required, a debugger can use it to store additional information about the breakpoint.

◆ __RBIT [1/4]

#define __RBIT

Reverse bit order of value.

Reverses the bit order of the given value.

Parameters
[in]valueValue to reverse
Returns
Reversed value

◆ __NOP [3/12]

#define __NOP ( )

No Operation.

No Operation does nothing. This instruction can be used for code alignment purposes.

◆ __WFI [3/12]

#define __WFI ( )

Wait For Interrupt.

Wait For Interrupt is a hint instruction that suspends execution until one of a number of events occurs.

◆ __WFE [3/12]

#define __WFE ( )

Wait For Event.

Wait For Event is a hint instruction that permits the processor to enter a low-power state until one of a number of events occurs.

◆ __SEV [3/12]

#define __SEV ( )

Send Event.

Send Event is a hint instruction. It causes an event to be signaled to the CPU.

◆ __BKPT [3/12]

#define __BKPT ( value)

Breakpoint.

Causes the processor to enter Debug state. Debug tools can use this to investigate system state when the instruction at a particular address is reached.

Parameters
[in]valueis ignored by the processor. If required, a debugger can use it to store additional information about the breakpoint.

◆ __CLZ [2/7]

#define __CLZ

Count leading zeros.

Counts the number of leading zeros of a data value.

Parameters
[in]valueValue to count the leading zeros
Returns
number of leading zeros in value

◆ __NOP [4/12]

#define __NOP

No Operation.

No Operation does nothing. This instruction can be used for code alignment purposes.

◆ __WFI [4/12]

#define __WFI

Wait For Interrupt.

Wait For Interrupt is a hint instruction that suspends execution until one of a number of events occurs.

◆ __WFE [4/12]

#define __WFE

Wait For Event.

Wait For Event is a hint instruction that permits the processor to enter a low-power state until one of a number of events occurs.

◆ __SEV [4/12]

#define __SEV

Send Event.

Send Event is a hint instruction. It causes an event to be signaled to the CPU.

◆ __ISB [3/8]

#define __ISB ( void)

Instruction Synchronization Barrier.

Instruction Synchronization Barrier flushes the pipeline in the processor, so that all instructions following the ISB are fetched from cache or memory, after the instruction has been completed.

◆ __DSB [3/8]

#define __DSB ( void)

Data Synchronization Barrier.

Acts as a special kind of Data Memory Barrier. It completes when all explicit memory accesses before this instruction complete.

◆ __DMB [3/8]

#define __DMB ( void)

Data Memory Barrier.

Ensures the apparent order of the explicit memory operations before and after the instruction, without ensuring their completion.

◆ __REV [3/8]

#define __REV

Reverse byte order (32 bit).

Reverses the byte order in unsigned integer value. For example, 0x12345678 becomes 0x78563412.

Parameters
[in]valueValue to reverse
Returns
Reversed value

◆ __ROR [2/4]

#define __ROR

Rotate Right in unsigned value (32 bit).

Rotate Right (immediate) provides the value of the contents of a register rotated by a variable number of bits.

Parameters
[in]op1Value to rotate
[in]op2Number of Bits to rotate
Returns
Rotated value

◆ __BKPT [4/12]

#define __BKPT ( value)

Breakpoint.

Causes the processor to enter Debug state. Debug tools can use this to investigate system state when the instruction at a particular address is reached.

Parameters
[in]valueis ignored by the processor. If required, a debugger can use it to store additional information about the breakpoint.

◆ __CLZ [3/7]

#define __CLZ

Count leading zeros.

Counts the number of leading zeros of a data value.

Parameters
[in]valueValue to count the leading zeros
Returns
number of leading zeros in value

◆ __NOP [5/12]

#define __NOP

No Operation.

No Operation does nothing. This instruction can be used for code alignment purposes.

◆ __WFI [5/12]

#define __WFI

Wait For Interrupt.

Wait For Interrupt is a hint instruction that suspends execution until one of a number of events occurs.

◆ __WFE [5/12]

#define __WFE

Wait For Event.

Wait For Event is a hint instruction that permits the processor to enter a low-power state until one of a number of events occurs.

◆ __SEV [5/12]

#define __SEV

Send Event.

Send Event is a hint instruction. It causes an event to be signaled to the CPU.

◆ __ISB [4/8]

#define __ISB ( void)

Instruction Synchronization Barrier.

Instruction Synchronization Barrier flushes the pipeline in the processor, so that all instructions following the ISB are fetched from cache or memory, after the instruction has been completed.

◆ __DSB [4/8]

#define __DSB ( void)

Data Synchronization Barrier.

Acts as a special kind of Data Memory Barrier. It completes when all explicit memory accesses before this instruction complete.

◆ __DMB [4/8]

#define __DMB ( void)

Data Memory Barrier.

Ensures the apparent order of the explicit memory operations before and after the instruction, without ensuring their completion.

◆ __REV [4/8]

#define __REV ( value)

Reverse byte order (32 bit).

Reverses the byte order in unsigned integer value. For example, 0x12345678 becomes 0x78563412.

Parameters
[in]valueValue to reverse
Returns
Reversed value

◆ __REV16 [2/4]

#define __REV16 ( value)

Reverse byte order (16 bit).

Reverses the byte order within each halfword of a word. For example, 0x12345678 becomes 0x34127856.

Parameters
[in]valueValue to reverse
Returns
Reversed value

◆ __REVSH [2/4]

#define __REVSH ( value)

Reverse byte order (16 bit).

Reverses the byte order in a 16-bit value and returns the signed 16-bit result. For example, 0x0080 becomes 0x8000.

Parameters
[in]valueValue to reverse
Returns
Reversed value

◆ __BKPT [5/12]

#define __BKPT ( value)

Breakpoint.

Causes the processor to enter Debug state. Debug tools can use this to investigate system state when the instruction at a particular address is reached.

Parameters
[in]valueis ignored by the processor. If required, a debugger can use it to store additional information about the breakpoint.

◆ __RBIT [2/4]

#define __RBIT

Reverse bit order of value.

Reverses the bit order of the given value.

Parameters
[in]valueValue to reverse
Returns
Reversed value

◆ __NOP [6/12]

#define __NOP ( )

No Operation.

No Operation does nothing. This instruction can be used for code alignment purposes.

◆ __WFI [6/12]

#define __WFI ( )

Wait For Interrupt.

Wait For Interrupt is a hint instruction that suspends execution until one of a number of events occurs.

◆ __WFE [6/12]

#define __WFE ( )

Wait For Event.

Wait For Event is a hint instruction that permits the processor to enter a low-power state until one of a number of events occurs.

◆ __SEV [6/12]

#define __SEV ( )

Send Event.

Send Event is a hint instruction. It causes an event to be signaled to the CPU.

◆ __BKPT [6/12]

#define __BKPT ( value)

Breakpoint.

Causes the processor to enter Debug state. Debug tools can use this to investigate system state when the instruction at a particular address is reached.

Parameters
[in]valueis ignored by the processor. If required, a debugger can use it to store additional information about the breakpoint.

◆ __CLZ [4/7]

#define __CLZ

Count leading zeros.

Counts the number of leading zeros of a data value.

Parameters
[in]valueValue to count the leading zeros
Returns
number of leading zeros in value

◆ __NOP [7/12]

#define __NOP

No Operation.

No Operation does nothing. This instruction can be used for code alignment purposes.

◆ __WFI [7/12]

#define __WFI

Wait For Interrupt.

Wait For Interrupt is a hint instruction that suspends execution until one of a number of events occurs.

◆ __WFE [7/12]

#define __WFE

Wait For Event.

Wait For Event is a hint instruction that permits the processor to enter a low-power state until one of a number of events occurs.

◆ __SEV [7/12]

#define __SEV

Send Event.

Send Event is a hint instruction. It causes an event to be signaled to the CPU.

◆ __ISB [5/8]

#define __ISB ( void)

Instruction Synchronization Barrier.

Instruction Synchronization Barrier flushes the pipeline in the processor, so that all instructions following the ISB are fetched from cache or memory, after the instruction has been completed.

◆ __DSB [5/8]

#define __DSB ( void)

Data Synchronization Barrier.

Acts as a special kind of Data Memory Barrier. It completes when all explicit memory accesses before this instruction complete.

◆ __DMB [5/8]

#define __DMB ( void)

Data Memory Barrier.

Ensures the apparent order of the explicit memory operations before and after the instruction, without ensuring their completion.

◆ __REV [5/8]

#define __REV

Reverse byte order (32 bit).

Reverses the byte order in unsigned integer value. For example, 0x12345678 becomes 0x78563412.

Parameters
[in]valueValue to reverse
Returns
Reversed value

◆ __ROR [3/4]

#define __ROR

Rotate Right in unsigned value (32 bit).

Rotate Right (immediate) provides the value of the contents of a register rotated by a variable number of bits.

Parameters
[in]op1Value to rotate
[in]op2Number of Bits to rotate
Returns
Rotated value

◆ __BKPT [7/12]

#define __BKPT ( value)

Breakpoint.

Causes the processor to enter Debug state. Debug tools can use this to investigate system state when the instruction at a particular address is reached.

Parameters
[in]valueis ignored by the processor. If required, a debugger can use it to store additional information about the breakpoint.

◆ __CLZ [5/7]

#define __CLZ

Count leading zeros.

Counts the number of leading zeros of a data value.

Parameters
[in]valueValue to count the leading zeros
Returns
number of leading zeros in value

◆ __NOP [8/12]

#define __NOP

No Operation.

No Operation does nothing. This instruction can be used for code alignment purposes.

◆ __WFI [8/12]

#define __WFI

Wait For Interrupt.

Wait For Interrupt is a hint instruction that suspends execution until one of a number of events occurs.

◆ __WFE [8/12]

#define __WFE

Wait For Event.

Wait For Event is a hint instruction that permits the processor to enter a low-power state until one of a number of events occurs.

◆ __SEV [8/12]

#define __SEV

Send Event.

Send Event is a hint instruction. It causes an event to be signaled to the CPU.

◆ __ISB [6/8]

#define __ISB ( void)

Instruction Synchronization Barrier.

Instruction Synchronization Barrier flushes the pipeline in the processor, so that all instructions following the ISB are fetched from cache or memory, after the instruction has been completed.

◆ __DSB [6/8]

#define __DSB ( void)

Data Synchronization Barrier.

Acts as a special kind of Data Memory Barrier. It completes when all explicit memory accesses before this instruction complete.

◆ __DMB [6/8]

#define __DMB ( void)

Data Memory Barrier.

Ensures the apparent order of the explicit memory operations before and after the instruction, without ensuring their completion.

◆ __REV [6/8]

#define __REV ( value)

Reverse byte order (32 bit).

Reverses the byte order in unsigned integer value. For example, 0x12345678 becomes 0x78563412.

Parameters
[in]valueValue to reverse
Returns
Reversed value

◆ __REV16 [3/4]

#define __REV16 ( value)

Reverse byte order (16 bit).

Reverses the byte order within each halfword of a word. For example, 0x12345678 becomes 0x34127856.

Parameters
[in]valueValue to reverse
Returns
Reversed value

◆ __REVSH [3/4]

#define __REVSH ( value)

Reverse byte order (16 bit).

Reverses the byte order in a 16-bit value and returns the signed 16-bit result. For example, 0x0080 becomes 0x8000.

Parameters
[in]valueValue to reverse
Returns
Reversed value

◆ __BKPT [8/12]

#define __BKPT ( value)

Breakpoint.

Causes the processor to enter Debug state. Debug tools can use this to investigate system state when the instruction at a particular address is reached.

Parameters
[in]valueis ignored by the processor. If required, a debugger can use it to store additional information about the breakpoint.

◆ __RBIT [3/4]

#define __RBIT

Reverse bit order of value.

Reverses the bit order of the given value.

Parameters
[in]valueValue to reverse
Returns
Reversed value

◆ __NOP [9/12]

#define __NOP ( )

No Operation.

No Operation does nothing. This instruction can be used for code alignment purposes.

◆ __WFI [9/12]

#define __WFI ( )

Wait For Interrupt.

Wait For Interrupt is a hint instruction that suspends execution until one of a number of events occurs.

◆ __WFE [9/12]

#define __WFE ( )

Wait For Event.

Wait For Event is a hint instruction that permits the processor to enter a low-power state until one of a number of events occurs.

◆ __SEV [9/12]

#define __SEV ( )

Send Event.

Send Event is a hint instruction. It causes an event to be signaled to the CPU.

◆ __BKPT [9/12]

#define __BKPT ( value)

Breakpoint.

Causes the processor to enter Debug state. Debug tools can use this to investigate system state when the instruction at a particular address is reached.

Parameters
[in]valueis ignored by the processor. If required, a debugger can use it to store additional information about the breakpoint.

◆ __CLZ [6/7]

#define __CLZ

Count leading zeros.

Counts the number of leading zeros of a data value.

Parameters
[in]valueValue to count the leading zeros
Returns
number of leading zeros in value

◆ __NOP [10/12]

#define __NOP

No Operation.

No Operation does nothing. This instruction can be used for code alignment purposes.

◆ __WFI [10/12]

#define __WFI

Wait For Interrupt.

Wait For Interrupt is a hint instruction that suspends execution until one of a number of events occurs.

◆ __WFE [10/12]

#define __WFE

Wait For Event.

Wait For Event is a hint instruction that permits the processor to enter a low-power state until one of a number of events occurs.

◆ __SEV [10/12]

#define __SEV

Send Event.

Send Event is a hint instruction. It causes an event to be signaled to the CPU.

◆ __ISB [7/8]

#define __ISB ( void)

Instruction Synchronization Barrier.

Instruction Synchronization Barrier flushes the pipeline in the processor, so that all instructions following the ISB are fetched from cache or memory, after the instruction has been completed.

◆ __DSB [7/8]

#define __DSB ( void)

Data Synchronization Barrier.

Acts as a special kind of Data Memory Barrier. It completes when all explicit memory accesses before this instruction complete.

◆ __DMB [7/8]

#define __DMB ( void)

Data Memory Barrier.

Ensures the apparent order of the explicit memory operations before and after the instruction, without ensuring their completion.

◆ __REV [7/8]

#define __REV

Reverse byte order (32 bit).

Reverses the byte order in unsigned integer value. For example, 0x12345678 becomes 0x78563412.

Parameters
[in]valueValue to reverse
Returns
Reversed value

◆ __ROR [4/4]

#define __ROR

Rotate Right in unsigned value (32 bit).

Rotate Right (immediate) provides the value of the contents of a register rotated by a variable number of bits.

Parameters
[in]op1Value to rotate
[in]op2Number of Bits to rotate
Returns
Rotated value

◆ __BKPT [10/12]

#define __BKPT ( value)

Breakpoint.

Causes the processor to enter Debug state. Debug tools can use this to investigate system state when the instruction at a particular address is reached.

Parameters
[in]valueis ignored by the processor. If required, a debugger can use it to store additional information about the breakpoint.

◆ __CLZ [7/7]

#define __CLZ

Count leading zeros.

Counts the number of leading zeros of a data value.

Parameters
[in]valueValue to count the leading zeros
Returns
number of leading zeros in value

◆ __NOP [11/12]

#define __NOP

No Operation.

No Operation does nothing. This instruction can be used for code alignment purposes.

◆ __WFI [11/12]

#define __WFI

Wait For Interrupt.

Wait For Interrupt is a hint instruction that suspends execution until one of a number of events occurs.

◆ __WFE [11/12]

#define __WFE

Wait For Event.

Wait For Event is a hint instruction that permits the processor to enter a low-power state until one of a number of events occurs.

◆ __SEV [11/12]

#define __SEV

Send Event.

Send Event is a hint instruction. It causes an event to be signaled to the CPU.

◆ __ISB [8/8]

#define __ISB ( void)

Instruction Synchronization Barrier.

Instruction Synchronization Barrier flushes the pipeline in the processor, so that all instructions following the ISB are fetched from cache or memory, after the instruction has been completed.

◆ __DSB [8/8]

#define __DSB ( void)

Data Synchronization Barrier.

Acts as a special kind of Data Memory Barrier. It completes when all explicit memory accesses before this instruction complete.

◆ __DMB [8/8]

#define __DMB ( void)

Data Memory Barrier.

Ensures the apparent order of the explicit memory operations before and after the instruction, without ensuring their completion.

◆ __REV [8/8]

#define __REV ( value)

Reverse byte order (32 bit).

Reverses the byte order in unsigned integer value. For example, 0x12345678 becomes 0x78563412.

Parameters
[in]valueValue to reverse
Returns
Reversed value

◆ __REV16 [4/4]

#define __REV16 ( value)

Reverse byte order (16 bit).

Reverses the byte order within each halfword of a word. For example, 0x12345678 becomes 0x34127856.

Parameters
[in]valueValue to reverse
Returns
Reversed value

◆ __REVSH [4/4]

#define __REVSH ( value)

Reverse byte order (16 bit).

Reverses the byte order in a 16-bit value and returns the signed 16-bit result. For example, 0x0080 becomes 0x8000.

Parameters
[in]valueValue to reverse
Returns
Reversed value

◆ __BKPT [11/12]

#define __BKPT ( value)

Breakpoint.

Causes the processor to enter Debug state. Debug tools can use this to investigate system state when the instruction at a particular address is reached.

Parameters
[in]valueis ignored by the processor. If required, a debugger can use it to store additional information about the breakpoint.

◆ __RBIT [4/4]

#define __RBIT

Reverse bit order of value.

Reverses the bit order of the given value.

Parameters
[in]valueValue to reverse
Returns
Reversed value

◆ __NOP [12/12]

#define __NOP ( )

No Operation.

No Operation does nothing. This instruction can be used for code alignment purposes.

◆ __WFI [12/12]

#define __WFI ( )

Wait For Interrupt.

Wait For Interrupt is a hint instruction that suspends execution until one of a number of events occurs.

◆ __WFE [12/12]

#define __WFE ( )

Wait For Event.

Wait For Event is a hint instruction that permits the processor to enter a low-power state until one of a number of events occurs.

◆ __SEV [12/12]

#define __SEV ( )

Send Event.

Send Event is a hint instruction. It causes an event to be signaled to the CPU.

◆ __BKPT [12/12]

#define __BKPT ( value)

Breakpoint.

Causes the processor to enter Debug state. Debug tools can use this to investigate system state when the instruction at a particular address is reached.

Parameters
[in]valueis ignored by the processor. If required, a debugger can use it to store additional information about the breakpoint.

Function Documentation

◆ __attribute__() [1/3]

__attribute__ ( (section(".rev16_text")) )

Reverse byte order (16 bit).

Reverses the byte order within each halfword of a word. For example, 0x12345678 becomes 0x34127856.

Parameters
[in]valueValue to reverse
Returns
Reversed value
Examples
mcuxClEcc_EdDSA_Ed25519ph_example.c, mcuxClPsaDriver_key_agreement_SECP_R1_example.c, mcuxClRsa_Cipher_Crypt_RSAES_OAEP_1000b_example.c, mcuxClRsa_Cipher_Crypt_RSAES_OAEP_example.c, and mcuxClRsa_Cipher_Crypt_RSAES_PKCS1_v1_5_example.c.

◆ __attribute__() [2/3]

__attribute__ ( (section(".revsh_text")) )

Reverse byte order (16 bit).

Reverses the byte order in a 16-bit value and returns the signed 16-bit result. For example, 0x0080 becomes 0x8000.

Parameters
[in]valueValue to reverse
Returns
Reversed value

◆ __attribute__() [3/3]

__attribute__ ( (always_inline) )

Reverse bit order of value.

Unsigned Saturate.

Signed Saturate.

Reverses the bit order of the given value.

Parameters
[in]valueValue to reverse
Returns
Reversed value

Saturates a signed value.

Parameters
[in]valueValue to be saturated
[in]satBit position to saturate to (1..32)
Returns
Saturated value

Saturates an unsigned value.

Parameters
[in]valueValue to be saturated
[in]satBit position to saturate to (0..31)
Returns
Saturated value

◆ __ROR()

__STATIC_FORCEINLINE uint32_t __ROR ( uint32_t op1,
uint32_t op2 )

Rotate Right in unsigned value (32 bit).

Rotate Right (immediate) provides the value of the contents of a register rotated by a variable number of bits.

Parameters
[in]op1Value to rotate
[in]op2Number of Bits to rotate
Returns
Rotated value

◆ __CLZ()

__STATIC_FORCEINLINE uint8_t __CLZ ( uint32_t value)

Count leading zeros.

Counts the number of leading zeros of a data value.

Parameters
[in]valueValue to count the leading zeros
Returns
number of leading zeros in value

◆ __SSAT()

__STATIC_FORCEINLINE int32_t __SSAT ( int32_t val,
uint32_t sat )

Signed Saturate.

Saturates a signed value.

Parameters
[in]valueValue to be saturated
[in]satBit position to saturate to (1..32)
Returns
Saturated value

◆ __USAT()

__STATIC_FORCEINLINE uint32_t __USAT ( int32_t val,
uint32_t sat )

Unsigned Saturate.

Saturates an unsigned value.

Parameters
[in]valueValue to be saturated
[in]satBit position to saturate to (0..31)
Returns
Saturated value

◆ __ISB()

__STATIC_FORCEINLINE void __ISB ( void )

Instruction Synchronization Barrier.

Instruction Synchronization Barrier flushes the pipeline in the processor, so that all instructions following the ISB are fetched from cache or memory, after the instruction has been completed.

◆ __DSB()

__STATIC_FORCEINLINE void __DSB ( void )

Data Synchronization Barrier.

Acts as a special kind of Data Memory Barrier. It completes when all explicit memory accesses before this instruction complete.

◆ __DMB()

__STATIC_FORCEINLINE void __DMB ( void )

Data Memory Barrier.

Ensures the apparent order of the explicit memory operations before and after the instruction, without ensuring their completion.

◆ __REV()

__STATIC_FORCEINLINE uint32_t __REV ( uint32_t value)

Reverse byte order (32 bit).

Reverses the byte order in unsigned integer value. For example, 0x12345678 becomes 0x78563412.

Parameters
[in]valueValue to reverse
Returns
Reversed value

◆ __REV16()

__STATIC_FORCEINLINE uint32_t __REV16 ( uint32_t value)

Reverse byte order (16 bit).

Reverses the byte order within each halfword of a word. For example, 0x12345678 becomes 0x34127856.

Parameters
[in]valueValue to reverse
Returns
Reversed value

◆ __REVSH()

__STATIC_FORCEINLINE int16_t __REVSH ( int16_t value)

Reverse byte order (16 bit).

Reverses the byte order in a 16-bit value and returns the signed 16-bit result. For example, 0x0080 becomes 0x8000.

Parameters
[in]valueValue to reverse
Returns
Reversed value

◆ __RBIT()

__STATIC_FORCEINLINE uint32_t __RBIT ( uint32_t value)

Reverse bit order of value.

Reverses the bit order of the given value.

Parameters
[in]valueValue to reverse
Returns
Reversed value

◆ __CLZ_internal()

__STATIC_FORCEINLINE uint8_t __CLZ_internal ( uint32_t value)

Count leading zeros.

Counts the number of leading zeros of a data value.

Parameters
[in]valueValue to count the leading zeros
Returns
number of leading zeros in value