delorie.com/archives/browse.cgi | search |
From: | eplmst AT lu DOT erisoft DOT se (Martin Stromberg) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: long long bitmask |
Date: | 3 Nov 2000 14:44:28 GMT |
Organization: | Ericsson Erisoft AB, Sweden |
Lines: | 17 |
Message-ID: | <8tuj0c$6pr$1@antares.lu.erisoft.se> |
References: | <web-2168852 AT lombardiacom DOT it> |
NNTP-Posting-Host: | lws256.lu.erisoft.se |
X-Newsreader: | TIN [version 1.2 PL2] |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Night Walker (nightwalker AT lombardiacom DOT it) wrote: : I need to store tons of flags (actually 62) into a single : var (a long : long int) but it seems that bitwise operators won't work up : to 32 bit. : Are there any alternatives? : I would not have to split the bitfield, use an array of : chars or wait : for a 64-bit processor:)!!! They should. How about showing us some (complete, compilable) code? (Remember to tack on the "LL" or "ULL" suffix on the constants.) Right, MartinS
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |