Advertisement
Guest User

Untitled

a guest
Jun 17th, 2017
1,219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. int translate_hash(int orig_hash, bool negate_hash)
  2. {
  3. int hash_offset;
  4. int new_hash;
  5.  
  6. hash_offset = get_translated_hash_offset(orig_hash);
  7. new_hash = orig_hash; new_hash = (new_hash + hash_offset);
  8. if (negate_hash)
  9. {
  10. new_hash = (new_hash * -1);
  11. }
  12. orig_hash = new_hash;
  13. return orig_hash;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement