Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion size test

Received: by 10.68.125.233 with SMTP id mt9mr4326756pbb.5.1335402233211;
        Wed, 25 Apr 2012 18:03:53 -0700 (PDT)
Path: r9ni98817pbh.0!nntp.google.com!news2.google.com!volia.net!news2.volia.net!feed-A.news.volia.net!news.musoftware.de!wum.musoftware.de!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From: Eric Sosman <esos...@ieee-dot-org.invalid>
Newsgroups: comp.lang.c,comp.arch
Subject: Re: size test
Date: Wed, 25 Apr 2012 21:03:51 -0400
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <jna6to$r4p$1@dont-email.me>
References: <jna1ll$f2a$1@reader1.panix.com>
Mime-Version: 1.0
Injection-Date: Thu, 26 Apr 2012 01:03:52 +0000 (UTC)
Injection-Info: mx04.eternal-september.org; posting-host="HSlJAUb3pGXi3i7ZL/HoAw";
	logging-data="27801"; mail-complaints-to="ab...@eternal-september.org";	posting-account="U2FsdGVkX19usvY+oMncd3KSqRs2ZPQk"
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20120327 Thunderbird/11.0.1
In-Reply-To: <jna1ll$f2a$1@reader1.panix.com>
Cancel-Lock: sha1:lGpY1fk9PYSaLp+C1I+puSdVJEM=
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

On 4/25/2012 7:34 PM, Joe keane wrote:
>[...]
> #define CLASS_SIZE(X, Y) \
> ((0x4 | (Y)&  0x3)<<  (X))
>
> How do i get an inverse of CLASS_SIZE.

     It's not invertible, because it's many-to-one.  For example,
CLASS_SIZE(1,3) and CLASS_SIZE(1,127) both expand to expressions
that evaluate to 14.  Given the 14, you can't tell whether it came
from 1,3 or 1,127 (or 1,63, or ...).

-- 
Eric Sosman
esos...@ieee-dot-org.invalid