Skip to content

Instantly share code, notes, and snippets.

@yaozhuoyu
Forked from steipete/gist:6133152
Created December 28, 2013 07:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yaozhuoyu/8156924 to your computer and use it in GitHub Desktop.
Save yaozhuoyu/8156924 to your computer and use it in GitHub Desktop.
NSUInteger PSPDFHashFromCGRect(CGRect rect) {
return (*(NSUInteger *)&rect.origin.x << 10 ^ *(NSUInteger *)&rect.origin.y) + (*(NSUInteger *)&rect.size.width << 10 ^ *(NSUInteger *)&rect.size.height);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment