Daniel

Pages

  • Daniel's Home
  • Index
  • About Me

Tuesday, August 7, 2012

GCD the simplest but complex

while(a%=b^=a^=b^=a);

use the XOR to change swap a and b
Posted by Unknown at 12:55 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: Linux

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Search This Blog

Blog Archive

  • ►  2014 (2)
    • ►  September (1)
    • ►  April (1)
  • ►  2013 (86)
    • ►  September (2)
    • ►  August (1)
    • ►  July (11)
    • ►  June (38)
    • ►  May (21)
    • ►  April (3)
    • ►  February (1)
    • ►  January (9)
  • ▼  2012 (40)
    • ►  December (29)
    • ►  September (4)
    • ▼  August (3)
      • Enable Hungry Delete on startup
      • GCD the simplest but complex
      • Emacs Line Number
    • ►  July (4)

About Me

Unknown
View my complete profile
Powered by Blogger.