Hi,
Im triying to make a divide algorithm, using 64 bit reminder, i want to split an 64 bit integer from last 32 bits.
Ex: my number is 64 bit 10000.........000000 and iwant to use only first 32 bits.
Thanks
Split an integer
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

tim dinh16 reputationPosted Apr 15, 2009, 3:24 PM EDT
long yourNumber = 10000;
long first32Bits = yourNumber >> 32;
nail8 reputationPosted Apr 16, 2009, 8:54 AM EDT
Ex: mynumber is 1111 1111 and iwant to replace last 4 bits with 0011 and get 0011 1111
how can i do it with bitwise operators?