Monero
Loading...
Searching...
No Matches
macros.h File Reference
#include <stdint.h>
Include dependency graph for macros.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define UNUSED(arg)
#define FALL_THROUGH
#define INLINE   static inline
#define READNU32(p)
#define READNU16(p)
#define WRITENU32(p, n)
#define WRITENU16(p, n)

Functions

INLINE uint32_t readnu32 (const uint8_t *p)
INLINE uint16_t readnu16 (const uint8_t *p)
INLINE void writenu32 (uint8_t *p, uint32_t n)
INLINE void writenu16 (uint8_t *p, uint16_t n)

Macro Definition Documentation

◆ FALL_THROUGH

#define FALL_THROUGH

◆ INLINE

#define INLINE   static inline

◆ READNU16

#define READNU16 ( p)
Value:
INLINE uint16_t readnu16(const uint8_t *p)
Definition macros.h:33

◆ READNU32

#define READNU32 ( p)
Value:
INLINE uint32_t readnu32(const uint8_t *p)
Definition macros.h:28

◆ UNUSED

#define UNUSED ( arg)
Value:
(void)(arg)

◆ WRITENU16

#define WRITENU16 ( p,
n )
Value:
writenu16(p, n)
INLINE void writenu16(uint8_t *p, uint16_t n)
Definition macros.h:46

◆ WRITENU32

#define WRITENU32 ( p,
n )
Value:
writenu32(p, n)
INLINE void writenu32(uint8_t *p, uint32_t n)
Definition macros.h:38

Function Documentation

◆ readnu16()

INLINE uint16_t readnu16 ( const uint8_t * p)

◆ readnu32()

INLINE uint32_t readnu32 ( const uint8_t * p)

◆ writenu16()

INLINE void writenu16 ( uint8_t * p,
uint16_t n )

◆ writenu32()

INLINE void writenu32 ( uint8_t * p,
uint32_t n )