Android Question Shiftleft and shiftright on 'long' type

alexander1984

New Member
Licensed User
Longtime User
I have a Case Study in making a shiftleft - shiftright a long variable, I use to perform the shift left or right the "bit.shiftleft function (int x1, int x2)", but it seems not work 'cause I always result in a negative value variaible of the results.
I supposed that it's 'cause int type is too many "short", i need to use an unsigned 4 byte number.

Does it exist a library for shiftleft/right on long type?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…