Advertisement
sigalNotovich

Untitled

Feb 9th, 2016
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #include <stdio.h>
  2. #define MACRO(X) {\
  3. int mask = 1, count = -5, i, z;\
  4. for (i = 0; i < (8 * sizeof(x)); i++) {\
  5. if (mask&x) {\
  6. if (count == i - 1) {\
  7. x = (~mask)&z;\
  8. count = -5;\
  9. }\
  10. else {\
  11. z = (~mask)&x;\
  12. count = i;\
  13. }\
  14. }\
  15. else {\
  16. count = -5;\
  17. }\
  18. mask = mask << 1;\
  19. }\
  20. }\
  21.  
  22. main() {
  23. int x = 45265895;
  24. MACRO(x);
  25. printf("%d", x);
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement