From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from wopr.sciops.net ([216.126.196.60]) by ewsd; Fri May 11 14:41:06 EDT 2018 Received: (qmail 36354 invoked from network); 11 May 2018 11:41:04 -0700 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on wopr.sciops.net X-Spam-Level: ** X-Spam-Status: No, score=2.8 required=5.0 tests=BAYES_00,RCVD_IN_PBL, RCVD_IN_XBL,RDNS_DYNAMIC,TVD_RCVD_IP autolearn=no autolearn_force=no version=3.4.1 Received: from 130.80.136.77.rev.sfr.net (HELO u25.nope) (qwx@77.136.80.130) by wopr.sciops.net with ESMTPS (ECDHE-RSA-AES128-GCM-SHA256 encrypted); 11 May 2018 11:41:04 -0700 Message-ID: <25E2576D4BED7F34E1C742ED5C7D0F04@wopr.sciops.net> From: qwx Date: Fri, 11 May 2018 20:40:59 +0200 To: 9front@9front.org Subject: Re: [9front] signed fixed size u.h typedefs In-Reply-To: CAAsuYKcFpe44gGPr_rVHbQuh4SPaWx_Q+GFHn1SLFTjzvTQVWw@mail.gmail.com MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: structured template component Done, thanks! qwx diff -r abfb40232967 386/include/u.h --- a/386/include/u.h Fri May 11 16:16:37 2018 +0200 +++ b/386/include/u.h Fri May 11 20:37:56 2018 +0200 @@ -20,6 +20,10 @@ typedef unsigned short u16int; typedef unsigned int u32int; typedef unsigned long long u64int; +typedef signed char s8int; +typedef signed short s16int; +typedef signed int s32int; +typedef signed long long s64int; /* FCR */ #define FPINEX (1<<5) diff -r abfb40232967 68000/include/u.h --- a/68000/include/u.h Fri May 11 16:16:37 2018 +0200 +++ b/68000/include/u.h Fri May 11 20:37:56 2018 +0200 @@ -20,6 +20,10 @@ typedef unsigned short u16int; typedef unsigned int u32int; typedef unsigned long long u64int; +typedef signed char s8int; +typedef signed short s16int; +typedef signed int s32int; +typedef signed long long s64int; /* FCR */ #define FPINEX (3<<8) diff -r abfb40232967 68020/include/u.h --- a/68020/include/u.h Fri May 11 16:16:37 2018 +0200 +++ b/68020/include/u.h Fri May 11 20:37:56 2018 +0200 @@ -20,7 +20,10 @@ typedef unsigned short u16int; typedef unsigned int u32int; typedef unsigned long long u64int; - +typedef signed char s8int; +typedef signed short s16int; +typedef signed int s32int; +typedef signed long long s64int; /* FCR */ #define FPINEX (3<<8) diff -r abfb40232967 amd64/include/u.h --- a/amd64/include/u.h Fri May 11 16:16:37 2018 +0200 +++ b/amd64/include/u.h Fri May 11 20:37:56 2018 +0200 @@ -20,6 +20,10 @@ typedef unsigned short u16int; typedef unsigned int u32int; typedef unsigned long long u64int; +typedef signed char s8int; +typedef signed short s16int; +typedef signed int s32int; +typedef signed long long s64int; /* MXCSR */ /* fcr */ diff -r abfb40232967 arm/include/u.h --- a/arm/include/u.h Fri May 11 16:16:37 2018 +0200 +++ b/arm/include/u.h Fri May 11 20:37:56 2018 +0200 @@ -21,6 +21,10 @@ typedef unsigned short u16int; typedef unsigned int u32int; 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) */ #define FPINEX (1<<12) diff -r abfb40232967 mips/include/u.h --- a/mips/include/u.h Fri May 11 16:16:37 2018 +0200 +++ b/mips/include/u.h Fri May 11 20:37:56 2018 +0200 @@ -20,6 +20,10 @@ typedef unsigned short u16int; typedef unsigned int u32int; typedef unsigned long long u64int; +typedef signed char s8int; +typedef signed short s16int; +typedef signed int s32int; +typedef signed long long s64int; /* FCR */ #define FPINEX (1<<7) diff -r abfb40232967 power/include/u.h --- a/power/include/u.h Fri May 11 16:16:37 2018 +0200 +++ b/power/include/u.h Fri May 11 20:37:56 2018 +0200 @@ -20,6 +20,10 @@ typedef unsigned short u16int; typedef unsigned int u32int; typedef unsigned long long u64int; +typedef signed char s8int; +typedef signed short s16int; +typedef signed int s32int; +typedef signed long long s64int; /* FPSCR */ #define FPSFX (1<<31) /* exception summary (sticky) */ diff -r abfb40232967 power64/include/u.h --- a/power64/include/u.h Fri May 11 16:16:37 2018 +0200 +++ b/power64/include/u.h Fri May 11 20:37:56 2018 +0200 @@ -20,6 +20,10 @@ typedef unsigned short u16int; typedef unsigned int u32int; typedef unsigned long long u64int; +typedef signed char s8int; +typedef signed short s16int; +typedef signed int s32int; +typedef signed long long s64int; /* FPSCR */ #define FPSFX (1<<31) /* exception summary (sticky) */ diff -r abfb40232967 sparc/include/u.h --- a/sparc/include/u.h Fri May 11 16:16:37 2018 +0200 +++ b/sparc/include/u.h Fri May 11 20:37:56 2018 +0200 @@ -20,6 +20,10 @@ typedef unsigned short u16int; typedef unsigned int u32int; typedef unsigned long long u64int; +typedef signed char s8int; +typedef signed short s16int; +typedef signed int s32int; +typedef signed long long s64int; /* FCR */ #define FPINEX (1<<23) diff -r abfb40232967 sparc64/include/u.h --- a/sparc64/include/u.h Fri May 11 16:16:37 2018 +0200 +++ b/sparc64/include/u.h Fri May 11 20:37:56 2018 +0200 @@ -20,6 +20,10 @@ typedef unsigned short u16int; typedef unsigned int u32int; typedef unsigned long long u64int; +typedef signed char s8int; +typedef signed short s16int; +typedef signed int s32int; +typedef signed long long s64int; /* FCR */ #define FPINEX (1<<23) diff -r abfb40232967 spim/include/u.h --- a/spim/include/u.h Fri May 11 16:16:37 2018 +0200 +++ b/spim/include/u.h Fri May 11 20:37:56 2018 +0200 @@ -20,6 +20,10 @@ typedef unsigned short u16int; typedef unsigned int u32int; typedef unsigned long long u64int; +typedef signed char s8int; +typedef signed short s16int; +typedef signed int s32int; +typedef signed long long s64int; /* FCR */ #define FPINEX (1<<7) diff -r abfb40232967 sys/src/9/pc/etherrt2860.c --- a/sys/src/9/pc/etherrt2860.c Fri May 11 16:16:37 2018 +0200 +++ b/sys/src/9/pc/etherrt2860.c Fri May 11 20:37:56 2018 +0200 @@ -17,9 +17,6 @@ #include "../port/etherif.h" #include "../port/wifi.h" -/* for consistency */ -typedef signed char s8int; - enum { /* PCI registers */ PciCfg = 0x0000, diff -r abfb40232967 sys/src/cmd/vmx/dat.h --- a/sys/src/cmd/vmx/dat.h Fri May 11 16:16:37 2018 +0200 +++ b/sys/src/cmd/vmx/dat.h Fri May 11 20:37:56 2018 +0200 @@ -1,7 +1,3 @@ -typedef char s8int; -typedef short s16int; -typedef int s32int; - typedef struct PCIDev PCIDev; typedef struct PCICap PCICap; typedef struct PCIBar PCIBar; diff -r abfb40232967 sys/src/games/blit/dat.h --- a/sys/src/games/blit/dat.h Fri May 11 16:16:37 2018 +0200 +++ b/sys/src/games/blit/dat.h Fri May 11 20:37:56 2018 +0200 @@ -1,7 +1,3 @@ -typedef signed char s8int; -typedef signed short s16int; -typedef signed long s32int; - extern u32int curpc, irq; extern int trace, debug;