Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #define MACRO(X) {\
- int mask = 1, count = -5, i, z;\
- for (i = 0; i < (8 * sizeof(x)); i++) {\
- if (mask&x) {\
- if (count == i - 1) {\
- x = (~mask)&z;\
- count = -5;\
- }\
- else {\
- z = (~mask)&x;\
- count = i;\
- }\
- }\
- else {\
- count = -5;\
- }\
- mask = mask << 1;\
- }\
- }\
- main() {
- int x = 45265895;
- MACRO(x);
- printf("%d", x);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement