aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/utils.h
blob: 4aa615aa1a88419d2ad5a21e07ed18d806e1cb2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef UTILS_H
#define UTILS_H

#include <cstdint>

#if  __GNUC__ >= 7
#define FALLTROUGH  __attribute__((fallthrough));
#else
#define FALLTROUGH
#endif

std::uint32_t sign_extend(std::uint16_t);

#endif // UTILS_H