how to detect the compile is 32 bits or 64 bits?



i want to detect if the compile is 32 bits or 64 bits in the source
code itself. so different code are compiled respectively. how to do
this?

.