gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gm2] SHIFT questions


From: Iztok Kobal
Subject: Re: [Gm2] SHIFT questions
Date: Tue, 22 Dec 2009 16:40:31 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4) Gecko/20091017 SUSE/2.0.0-1.1.3 SeaMonkey/2.0

Well, the correct link pointing to XDS M2 packedsets would be: http://www.excelsior-usa.com/doc/isom204.html#321

Iztok

Gaius Mulley wrote:
Hi,

during the course of fixing some regression tests I came across
the problem of what to do if the user attempts to SHIFT by more
than set size bits.

Ie:

    SHIFT(bitset, MAX(BITSET)+1)   is a no-op   MAX(BITSET)=31
                                   and shifting by 32 on a 32 bit
                                   machine yields the same result.

I cannot find how SHIFT should behave in the M2 ISO standard given
these parameters.  Currently if SHIFTing x where x is>MAX(settype)+1
will be the same as SHIFTing x MOD (MAX(settype)+1), for any settype.
Hope this is correct..

regards,
Gaius


_______________________________________________
gm2 mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/gm2






reply via email to

[Prev in Thread] Current Thread [Next in Thread]