www.delorie.com/archives/browse.cgi | search |
Message-ID: | <3746C21F.201AF26D@user.rose.com> |
Date: | Sat, 22 May 1999 10:41:35 -0400 |
From: | April <awhite AT user DOT rose DOT com> |
X-Mailer: | Mozilla 4.06 [en] (Win95; I) |
MIME-Version: | 1.0 |
Newsgroups: | comp.os.msdos.djgpp |
To: | djgpp AT delorie DOT com |
Subject: | Re: typedef'ing a 24-bit integer |
References: | <37459ABF DOT FF51CA41 AT aaual DOT ualg DOT pt> <374601DE DOT 630CEA74 AT cartsys DOT com> |
Reply-To: | djgpp AT delorie DOT com |
Nate Eldredge wrote: > Miguel Guerreiro wrote: > > > > How can you do somethin kinda like this: > > > > typedef int24 (24-bit integer) > > typedef uint24 (24-bit unsigned int) > > > > I want it to take *exactly* 24-bit of space > > You can't. Couldn't he create a struct with a 24-bit bit field? It would still take 32 bits of space but would manipulate as 24 bits (I think).
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |