add signed fixed size integer typedefs
This commit is contained in:
parent
2728e06589
commit
70c7a9eb07
14 changed files with 44 additions and 12 deletions
|
@ -20,6 +20,10 @@ typedef unsigned char u8int;
|
||||||
typedef unsigned short u16int;
|
typedef unsigned short u16int;
|
||||||
typedef unsigned int u32int;
|
typedef unsigned int u32int;
|
||||||
typedef unsigned long long u64int;
|
typedef unsigned long long u64int;
|
||||||
|
typedef signed char s8int;
|
||||||
|
typedef signed short s16int;
|
||||||
|
typedef signed int s32int;
|
||||||
|
typedef signed long long s64int;
|
||||||
|
|
||||||
/* FCR */
|
/* FCR */
|
||||||
#define FPINEX (1<<5)
|
#define FPINEX (1<<5)
|
||||||
|
|
|
@ -20,6 +20,10 @@ typedef unsigned char u8int;
|
||||||
typedef unsigned short u16int;
|
typedef unsigned short u16int;
|
||||||
typedef unsigned int u32int;
|
typedef unsigned int u32int;
|
||||||
typedef unsigned long long u64int;
|
typedef unsigned long long u64int;
|
||||||
|
typedef signed char s8int;
|
||||||
|
typedef signed short s16int;
|
||||||
|
typedef signed int s32int;
|
||||||
|
typedef signed long long s64int;
|
||||||
|
|
||||||
/* FCR */
|
/* FCR */
|
||||||
#define FPINEX (3<<8)
|
#define FPINEX (3<<8)
|
||||||
|
|
|
@ -20,7 +20,10 @@ typedef unsigned char u8int;
|
||||||
typedef unsigned short u16int;
|
typedef unsigned short u16int;
|
||||||
typedef unsigned int u32int;
|
typedef unsigned int u32int;
|
||||||
typedef unsigned long long u64int;
|
typedef unsigned long long u64int;
|
||||||
|
typedef signed char s8int;
|
||||||
|
typedef signed short s16int;
|
||||||
|
typedef signed int s32int;
|
||||||
|
typedef signed long long s64int;
|
||||||
|
|
||||||
/* FCR */
|
/* FCR */
|
||||||
#define FPINEX (3<<8)
|
#define FPINEX (3<<8)
|
||||||
|
|
|
@ -20,6 +20,10 @@ typedef unsigned char u8int;
|
||||||
typedef unsigned short u16int;
|
typedef unsigned short u16int;
|
||||||
typedef unsigned int u32int;
|
typedef unsigned int u32int;
|
||||||
typedef unsigned long long u64int;
|
typedef unsigned long long u64int;
|
||||||
|
typedef signed char s8int;
|
||||||
|
typedef signed short s16int;
|
||||||
|
typedef signed int s32int;
|
||||||
|
typedef signed long long s64int;
|
||||||
|
|
||||||
/* MXCSR */
|
/* MXCSR */
|
||||||
/* fcr */
|
/* fcr */
|
||||||
|
|
|
@ -21,6 +21,10 @@ typedef unsigned char u8int;
|
||||||
typedef unsigned short u16int;
|
typedef unsigned short u16int;
|
||||||
typedef unsigned int u32int;
|
typedef unsigned int u32int;
|
||||||
typedef unsigned long long u64int;
|
typedef unsigned long long u64int;
|
||||||
|
typedef signed char s8int;
|
||||||
|
typedef signed short s16int;
|
||||||
|
typedef signed int s32int;
|
||||||
|
typedef signed long long s64int;
|
||||||
|
|
||||||
/* VFP FPSCR (exceptions) */
|
/* VFP FPSCR (exceptions) */
|
||||||
#define FPINEX (1<<12)
|
#define FPINEX (1<<12)
|
||||||
|
|
|
@ -20,6 +20,10 @@ typedef unsigned char u8int;
|
||||||
typedef unsigned short u16int;
|
typedef unsigned short u16int;
|
||||||
typedef unsigned int u32int;
|
typedef unsigned int u32int;
|
||||||
typedef unsigned long long u64int;
|
typedef unsigned long long u64int;
|
||||||
|
typedef signed char s8int;
|
||||||
|
typedef signed short s16int;
|
||||||
|
typedef signed int s32int;
|
||||||
|
typedef signed long long s64int;
|
||||||
|
|
||||||
/* FCR */
|
/* FCR */
|
||||||
#define FPINEX (1<<7)
|
#define FPINEX (1<<7)
|
||||||
|
|
|
@ -20,6 +20,10 @@ typedef unsigned char u8int;
|
||||||
typedef unsigned short u16int;
|
typedef unsigned short u16int;
|
||||||
typedef unsigned int u32int;
|
typedef unsigned int u32int;
|
||||||
typedef unsigned long long u64int;
|
typedef unsigned long long u64int;
|
||||||
|
typedef signed char s8int;
|
||||||
|
typedef signed short s16int;
|
||||||
|
typedef signed int s32int;
|
||||||
|
typedef signed long long s64int;
|
||||||
|
|
||||||
/* FPSCR */
|
/* FPSCR */
|
||||||
#define FPSFX (1<<31) /* exception summary (sticky) */
|
#define FPSFX (1<<31) /* exception summary (sticky) */
|
||||||
|
|
|
@ -20,6 +20,10 @@ typedef unsigned char u8int;
|
||||||
typedef unsigned short u16int;
|
typedef unsigned short u16int;
|
||||||
typedef unsigned int u32int;
|
typedef unsigned int u32int;
|
||||||
typedef unsigned long long u64int;
|
typedef unsigned long long u64int;
|
||||||
|
typedef signed char s8int;
|
||||||
|
typedef signed short s16int;
|
||||||
|
typedef signed int s32int;
|
||||||
|
typedef signed long long s64int;
|
||||||
|
|
||||||
/* FPSCR */
|
/* FPSCR */
|
||||||
#define FPSFX (1<<31) /* exception summary (sticky) */
|
#define FPSFX (1<<31) /* exception summary (sticky) */
|
||||||
|
|
|
@ -20,6 +20,10 @@ typedef unsigned char u8int;
|
||||||
typedef unsigned short u16int;
|
typedef unsigned short u16int;
|
||||||
typedef unsigned int u32int;
|
typedef unsigned int u32int;
|
||||||
typedef unsigned long long u64int;
|
typedef unsigned long long u64int;
|
||||||
|
typedef signed char s8int;
|
||||||
|
typedef signed short s16int;
|
||||||
|
typedef signed int s32int;
|
||||||
|
typedef signed long long s64int;
|
||||||
|
|
||||||
/* FCR */
|
/* FCR */
|
||||||
#define FPINEX (1<<23)
|
#define FPINEX (1<<23)
|
||||||
|
|
|
@ -20,6 +20,10 @@ typedef unsigned char u8int;
|
||||||
typedef unsigned short u16int;
|
typedef unsigned short u16int;
|
||||||
typedef unsigned int u32int;
|
typedef unsigned int u32int;
|
||||||
typedef unsigned long long u64int;
|
typedef unsigned long long u64int;
|
||||||
|
typedef signed char s8int;
|
||||||
|
typedef signed short s16int;
|
||||||
|
typedef signed int s32int;
|
||||||
|
typedef signed long long s64int;
|
||||||
|
|
||||||
/* FCR */
|
/* FCR */
|
||||||
#define FPINEX (1<<23)
|
#define FPINEX (1<<23)
|
||||||
|
|
|
@ -20,6 +20,10 @@ typedef unsigned char u8int;
|
||||||
typedef unsigned short u16int;
|
typedef unsigned short u16int;
|
||||||
typedef unsigned int u32int;
|
typedef unsigned int u32int;
|
||||||
typedef unsigned long long u64int;
|
typedef unsigned long long u64int;
|
||||||
|
typedef signed char s8int;
|
||||||
|
typedef signed short s16int;
|
||||||
|
typedef signed int s32int;
|
||||||
|
typedef signed long long s64int;
|
||||||
|
|
||||||
/* FCR */
|
/* FCR */
|
||||||
#define FPINEX (1<<7)
|
#define FPINEX (1<<7)
|
||||||
|
|
|
@ -17,9 +17,6 @@
|
||||||
#include "../port/etherif.h"
|
#include "../port/etherif.h"
|
||||||
#include "../port/wifi.h"
|
#include "../port/wifi.h"
|
||||||
|
|
||||||
/* for consistency */
|
|
||||||
typedef signed char s8int;
|
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
/* PCI registers */
|
/* PCI registers */
|
||||||
PciCfg = 0x0000,
|
PciCfg = 0x0000,
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
typedef char s8int;
|
|
||||||
typedef short s16int;
|
|
||||||
typedef int s32int;
|
|
||||||
|
|
||||||
typedef struct PCIDev PCIDev;
|
typedef struct PCIDev PCIDev;
|
||||||
typedef struct PCICap PCICap;
|
typedef struct PCICap PCICap;
|
||||||
typedef struct PCIBar PCIBar;
|
typedef struct PCIBar PCIBar;
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
typedef signed char s8int;
|
|
||||||
typedef signed short s16int;
|
|
||||||
typedef signed long s32int;
|
|
||||||
|
|
||||||
extern u32int curpc, irq;
|
extern u32int curpc, irq;
|
||||||
extern int trace, debug;
|
extern int trace, debug;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue