Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

16, 32 bit machine etc.

Name: Anonymous 2006-01-21 5:24

Anyone know how to check if a machine is 16 bit, 32 bit etc?
I need to make my C++ program portable,
but I'm not sure what macro can I use to accomplish this

Name: Anonymous 2012-01-12 11:35

[b][i][u][o]Hax[sub] my [sup]anus[sub] /pr[sup]og/[/o][/u][/i][/b]

Name: Anonymous 2012-01-12 11:42

fuc[sub]kkkkk

Name: Anonymous 2012-01-12 11:44

[sup]fuc[sub]k[sub]k[/sup][/sup]kkk

Name: Anonymous 2012-01-12 12:03



testing

Name: Anonymous 2012-01-12 12:04

testingtestin[sup]g

testingtestin[sub]g

Name: Anonymous 2012-01-12 12:06

testingtestin[sup]g[/sub][/sub]

testingtestin[sub]g[/sup][/sup]

testingtesting[/sup]

Name: Anonymous 2012-01-12 12:08


testingtesting

testingtesting

testingtestin[sup]g[/sub]

Name: Anonymous 2012-02-15 16:06

Name: Anonymous 2012-02-15 16:15

>>1

That's simply not possible standard-wise: it actually does not make any sense whatsoever.

In practice, however, sizeof(void*) can be used as a hint to detect whether you're compiling in a 32-bit or 64-bit environment, though it is useless as a preprocessor token.

Name: Anonymous 2012-02-15 20:01

CHAR_BIT and sizeof(void *) are the closest things C has to a concept of "bit width." All standard integer types must be supported on all C implementations and it's possible for a machine with e.g. 64-bit data registers to use a 16-bit int or for a machine to have 128-bit pointers and a 16-bit size_t.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List