aboutsummaryrefslogtreecommitdiffstats
path: root/lib_nios2/math.h
blob: f0aed8edc36b38c28780c40d22dae5718f013546 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#define BITS_PER_UNIT	8

typedef	 int HItype			__attribute__ ((mode (HI)));
typedef unsigned int UHItype		__attribute__ ((mode (HI)));

typedef		 int SItype		__attribute__ ((mode (SI)));
typedef unsigned int USItype		__attribute__ ((mode (SI)));

typedef int word_type			__attribute__ ((mode (__word__)));

struct SIstruct {HItype low, high;};

typedef union {
	struct SIstruct s;
	SItype ll;
} SIunion;