PROLEAD
A Probing-Based Leakage Detection Tool for Hardware and Software
Loading...
Searching...
No Matches
Projects
PROLEAD
inc
Software
mulator
types.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <inttypes.h>
4
5
namespace
mulator
6
{
7
8
#define UNUSED(x) (void)(x);
9
10
using
u8
= uint8_t;
11
using
u16
= uint16_t;
12
using
u32
= uint32_t;
13
using
u64
= uint64_t;
14
15
using
i8
= int8_t;
16
using
i16
= int16_t;
17
using
i32
= int32_t;
18
using
i64
= int64_t;
19
20
#define _1BIT(x) ((x) & 0x1)
21
#define _2BIT(x) ((x) & 0x3)
22
#define _3BIT(x) ((x) & 0x7)
23
#define _4BIT(x) ((x) & 0xF)
24
#define _5BIT(x) ((x) & 0x1F)
25
#define _6BIT(x) ((x) & 0x3F)
26
#define _7BIT(x) ((x) & 0x7F)
27
#define _8BIT(x) ((x) & 0xFF)
28
#define _9BIT(x) ((x) & 0x1FF)
29
#define _10BIT(x) ((x) & 0x3FF)
30
#define _11BIT(x) ((x) & 0x7FF)
31
#define _12BIT(x) ((x) & 0xFFF)
32
#define _13BIT(x) ((x) & 0x1FFF)
33
#define _14BIT(x) ((x) & 0x3FFF)
34
#define _15BIT(x) ((x) & 0x7FFF)
35
36
}
mulator
Definition:
architectures.h:7
mulator::i16
int16_t i16
Definition:
types.h:16
mulator::u64
uint64_t u64
Definition:
types.h:13
mulator::u32
uint32_t u32
Definition:
types.h:12
mulator::i32
int32_t i32
Definition:
types.h:17
mulator::i8
int8_t i8
Definition:
types.h:15
mulator::u8
uint8_t u8
Definition:
types.h:10
mulator::i64
int64_t i64
Definition:
types.h:18
mulator::u16
uint16_t u16
Definition:
types.h:11
Generated by
1.9.6