iPXE
rotate.h File Reference

Bit operations. More...

#include <stdint.h>

Go to the source code of this file.

Macros

#define ROLx(data, rotation)
#define RORx(data, rotation)

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 FILE_SECBOOT (PERMITTED)
static __attribute__ ((always_inline)) uint8_t rol8(uint8_t data

Variables

static unsigned int rotation

Detailed Description

Bit operations.

Definition in file rotate.h.

Macro Definition Documentation

◆ ROLx

#define ROLx ( data,
rotation )
Value:
( ( (data) << (rotation) ) | \
( (data) >> ( ( 8 * sizeof (data) ) - (rotation) ) ) );
uint8_t data[48]
Additional event data.
Definition ena.h:11
static unsigned int rotation
Definition rotate.h:23

Definition at line 14 of file rotate.h.

14#define ROLx( data, rotation ) \
15 ( ( (data) << (rotation) ) | \
16 ( (data) >> ( ( 8 * sizeof (data) ) - (rotation) ) ) );

◆ RORx

#define RORx ( data,
rotation )
Value:
( ( (data) >> (rotation) ) | \
( (data) << ( ( 8 * sizeof (data) ) - (rotation) ) ) );

Definition at line 18 of file rotate.h.

18#define RORx( data, rotation ) \
19 ( ( (data) >> (rotation) ) | \
20 ( (data) << ( ( 8 * sizeof (data) ) - (rotation) ) ) );

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )

◆ FILE_SECBOOT()

FILE_SECBOOT ( PERMITTED )

◆ __attribute__()

__attribute__ ( (always_inline) )
inlinestatic

Variable Documentation

◆ rotation

unsigned int rotation
Initial value:
{
return ROLx ( data, rotation )
#define ROLx(data, rotation)
Definition rotate.h:14

Definition at line 23 of file rotate.h.

Referenced by efi_stack_cookie().