Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | jgk@panix.com (Joe keane) |
|---|---|
| Newsgroups | comp.lang.c, comp.arch |
| Subject | size test |
| Date | 2012-04-25 23:34 +0000 |
| Organization | Public Access Networks Corp. |
| Message-ID | <jna1ll$f2a$1@reader1.panix.com> (permalink) |
Cross-posted to 2 groups.
I have macros: #define MAKE_SIZE_CLASS (X, Y, CLS) ((CLS) = ((X) & 0xF << 2) | (Y) & 0x3) #define BLOWUP_SIZE_CLASS (CLS, X, Y) ((X) = (CLS) >> 4 & 0xF, (Y) = (CLS) & 0x3) with this: #define CLASS_SIZE(X, Y) \ ((0x4 | (Y) & 0x3) << (X)) How do i get an inverse of CLASS_SIZE. That is. we do not necessraily get a posssible result of CLASS_SIZE, but we always round *up*, not down.
Back to comp.lang.c | Previous | Next — Next in thread | Find similar | Unroll thread
size test jgk@panix.com (Joe keane) - 2012-04-25 23:34 +0000 Re: size test Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-04-25 21:03 -0400 Re: size test Kaz Kylheku <kaz@kylheku.com> - 2012-04-26 02:54 +0000
csiph-web