Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #7071

Re: what about my array type?

From Keith Thompson <kst-u@mib.org>
Newsgroups comp.lang.c
Subject Re: what about my array type?
Date 2011-06-27 08:27 -0700
Organization None to speak of
Message-ID <lnk4c79twc.fsf@nuthaus.mib.org> (permalink)
References <4e076731$0$44197$4fafbaef@reader1.news.tin.it> <t7mf07d716olfv14kqcem0dalkhksue6po@4ax.com> <4e0810a9$0$15669$4fafbaef@reader2.news.tin.it> <lnoc1jal9u.fsf@nuthaus.mib.org> <4e083942$0$44207$4fafbaef@reader1.news.tin.it>

Show all headers | View raw


"io_x" <a@b.c.invalid> writes:
> "Keith Thompson" <kst-u@mib.org> ha scritto nel messaggio
> news:lnoc1jal9u.fsf@nuthaus.mib.org...
>> "io_x" <a@b.c.invalid> writes:
>> [...]
>>>> On Sun, 26 Jun 2011 19:08:36 +0200, "io_x" <a@b.c.invalid> wrote:
>> [...]
>>>>>standard allow there is no unsigned X type with UXINT_MAX=0xFFFFFFFF?
>>>
>>> yes this too i know too, yes there will be one unsigned X type where
>>> UXINT_MAX=0xFFFFFFFF
>> [...]
>>
>> Incorrect; see my other followup.
>
> so is possible something as
> unsigned long   64 bits
> unsigned int    64 bits
> unsigned short  64 bits
> unsigned char    8 bits
>
> because unsigned log as to be at last 32 bits
> and sizeof(unsigned char)<=sizeof(unsigned short)<=
>     <=sizeof(unsigned int)<=sizeof(unsigned long) all as 2^n

Right.  I've worked on a system (Cray T90) with exactly those
characteristics.  (And it was mostly for interoperability reasons
that CHAR_BIT was made 8 rather than 64.)

-- 
Keith Thompson (The_Other_Keith) kst-u@mib.org  <http://www.ghoti.net/~kst>
Nokia
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

what about my array type? "io_x" <a@b.c.invalid> - 2011-06-26 19:08 +0200
  Re: what about my array type? Barry Schwarz <schwarzb@dqel.com> - 2011-06-26 18:38 -0700
    Re: what about my array type? Keith Thompson <kst-u@mib.org> - 2011-06-26 19:30 -0700
    Re: what about my array type? "io_x" <a@b.c.invalid> - 2011-06-27 07:11 +0200
      Re: what about my array type? pete <pfiland@mindspring.com> - 2011-06-27 01:32 -0400
      Re: what about my array type? Keith Thompson <kst-u@mib.org> - 2011-06-26 22:36 -0700
        Re: what about my array type? "io_x" <a@b.c.invalid> - 2011-06-27 10:04 +0200
          Re: what about my array type? Keith Thompson <kst-u@mib.org> - 2011-06-27 08:27 -0700
      Re: what about my array type? Barry Schwarz <schwarzb@dqel.com> - 2011-06-27 06:04 -0700
    Re: what about my array type? "io_x" <a@b.c.invalid> - 2011-06-27 11:11 +0200
  Re: what about my array type? "io_x" <a@b.c.invalid> - 2011-06-27 09:36 +0200
    Re: what about my array type? Barry Schwarz <schwarzb@dqel.com> - 2011-06-27 06:04 -0700

csiph-web