From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ua0-f178.google.com ([209.85.217.178]) by ewsd; Fri May 11 14:30:03 EDT 2018 Received: by mail-ua0-f178.google.com with SMTP id e8-v6so4194865uam.13 for <9front@9front.org>; Fri, 11 May 2018 11:29:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=W9ye3iycIzoesuAwRLlQaEFNGxiLRxBT1o9xZHZwRPs=; b=Bo52awBECBXYySjThiOluPQ+srFVMFill9bHd+ZtME3lk6a/93jkqqopQHR+eD7JRY +UuKPQvCKlJbg4ChNxTRza10UVBJrVInneLWSlz4fNpfBw/Wb5fc8Rn0tFK2xHrxPuBa Z3bmh1+0nQhOBB1/z0UJX3+003WRvP/IzwI/Iv2bFIGzyF/r4kK1e9UV7tq1eLnzNkS+ D6byIJKpZicE7AmNAbdlHE5LzzOBUQkwqlAy+p1bBHXDC9IY8XyP65IYED0FTU5SJ3IB xQzlu0AAfgufSUAfOUNQl4KCGP8WvI8XfSWYTQ7FbQvrlHgGdijAFVAgILMqwoe9BTe1 WXgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=W9ye3iycIzoesuAwRLlQaEFNGxiLRxBT1o9xZHZwRPs=; b=i9FSRjcLWPHcTfCurpbCEaQwZA5NYC9W1n+Qlh1RxL18NWjbhFTyTsPcK7UTZvKLIU 8xgJFXHNNow+5zOKwi8rsM/ku3ISXw2Fj9VVwaEX2e5BjXM0Kn3TMAhrPEp8WE0WYcj/ qVBk3s8dDANB4HKGP6Ic03Q1OfE0b+s55Cv0AtsO465LKl2TzpkR10yaEY3ym7kHsYKc 73ZVw2vgx1ZiDRzPzz8iNbGv7WtOBVQ5tJ89OHeDbiOfjydX41onm0X75iZS3/r0TtrD LAYXkacU6jLlmXg6M2WnXfuhO22XafTM/qyVIK3bfoImG/ZK6as/agkg6UN4cTzmKdBc yW1A== X-Gm-Message-State: ALKqPweC/Q7a7Oa+5m18Z+yTYFd2RorW6ChuhfEg1d3D6bUYdqY356+G Cyc8imTf1tcBrJ+0m7rx3GBNkww0Ht2Z+u83gF/uieW6 X-Google-Smtp-Source: AB8JxZotZ6EUr0yqnDmNueP1qTnI8/j9b9N6mFkAWqqkfYF/gDNMsNcPhyJL7oEOVo7ZEild5xE3L1T8BpJFeJbG5GA= X-Received: by 2002:a9f:3dc2:: with SMTP id e2-v6mr2272882uaj.132.1526063395088; Fri, 11 May 2018 11:29:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.107.70 with HTTP; Fri, 11 May 2018 11:29:54 -0700 (PDT) In-Reply-To: References: From: Benjamin Purcell Date: Fri, 11 May 2018 14:29:54 -0400 Message-ID: Subject: Re: [9front] signed fixed size u.h typedefs To: 9front@9front.org Content-Type: text/plain; charset="UTF-8" List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: generic scale-out STM polling-oriented generator can you make the new definitions match the old ones? i.e.: 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; On Fri, May 11, 2018 at 2:19 PM, qwx wrote: > Hello, > > Are there any objections to adding the signed equivalents of u8int, etc. to > /$objtype/include/u.h? > > As far as I can tell, the inlined diff is all that would suffice. > There are no compilation errors that I've found with this. > > 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 19:08:12 2018 +0200 > @@ -20,6 +20,10 @@ > typedef unsigned short u16int; > typedef unsigned int u32int; > typedef unsigned long long u64int; > +typedef char s8int; > +typedef short s16int; > +typedef long s32int; > +typedef vlong 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 19:08:12 2018 +0200 > @@ -20,6 +20,10 @@ > typedef unsigned short u16int; > typedef unsigned int u32int; > typedef unsigned long long u64int; > +typedef char s8int; > +typedef short s16int; > +typedef long s32int; > +typedef vlong 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 19:08:12 2018 +0200 > @@ -20,7 +20,10 @@ > typedef unsigned short u16int; > typedef unsigned int u32int; > typedef unsigned long long u64int; > - > +typedef char s8int; > +typedef short s16int; > +typedef long s32int; > +typedef vlong 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 19:08:12 2018 +0200 > @@ -20,6 +20,10 @@ > typedef unsigned short u16int; > typedef unsigned int u32int; > typedef unsigned long long u64int; > +typedef char s8int; > +typedef short s16int; > +typedef long s32int; > +typedef vlong 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 19:08:12 2018 +0200 > @@ -21,6 +21,10 @@ > typedef unsigned short u16int; > typedef unsigned int u32int; > typedef unsigned long long u64int; > +typedef char s8int; > +typedef short s16int; > +typedef long s32int; > +typedef vlong 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 19:08:12 2018 +0200 > @@ -20,6 +20,10 @@ > typedef unsigned short u16int; > typedef unsigned int u32int; > typedef unsigned long long u64int; > +typedef char s8int; > +typedef short s16int; > +typedef long s32int; > +typedef vlong 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 19:08:12 2018 +0200 > @@ -20,6 +20,10 @@ > typedef unsigned short u16int; > typedef unsigned int u32int; > typedef unsigned long long u64int; > +typedef char s8int; > +typedef short s16int; > +typedef long s32int; > +typedef vlong 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 19:08:12 2018 +0200 > @@ -20,6 +20,10 @@ > typedef unsigned short u16int; > typedef unsigned int u32int; > typedef unsigned long long u64int; > +typedef char s8int; > +typedef short s16int; > +typedef long s32int; > +typedef vlong 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 19:08:12 2018 +0200 > @@ -20,6 +20,10 @@ > typedef unsigned short u16int; > typedef unsigned int u32int; > typedef unsigned long long u64int; > +typedef char s8int; > +typedef short s16int; > +typedef long s32int; > +typedef vlong 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 19:08:12 2018 +0200 > @@ -20,6 +20,10 @@ > typedef unsigned short u16int; > typedef unsigned int u32int; > typedef unsigned long long u64int; > +typedef char s8int; > +typedef short s16int; > +typedef long s32int; > +typedef vlong 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 19:08:12 2018 +0200 > @@ -20,6 +20,10 @@ > typedef unsigned short u16int; > typedef unsigned int u32int; > typedef unsigned long long u64int; > +typedef char s8int; > +typedef short s16int; > +typedef long s32int; > +typedef vlong 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 19:08:12 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 19:08:12 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 19:08:12 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; >