SHARE
TWEET

Untitled

a guest Jan 26th, 2013 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. char *namepart[] = {
  2.     "en" , "la" , "can", "be" ,
  3.     "and", "phi", "eth", "ol" ,
  4.     "ve" , "ho" , "a"  , "lia",
  5.     "an" , "ar" , "ur" , "mi" ,
  6.     "in" , "ti" , "qu" , "so" ,
  7.     "ed" , "ess", "ex" , "io" ,
  8.     "ce" , "ze" , "fa" , "ay" ,
  9.     "wa" , "da" , "ack", "gre"
  10. };
  11.  
  12. unsigned int _rotl(const unsigned int value, int shift);
  13. unsigned int _rotr(const unsigned int value, int shift);
  14.  
  15. int main() {
  16.     unsigned int cx = 5909;
  17.     unsigned int cy = 5412;
  18.     int i = 0;
  19.  
  20.     cx += i;
  21.     cy += cx;
  22.     cx = _rotl (cx, 3);
  23.     cx += cy;
  24.     cy = _rotl (cy, 5);
  25.     cy += cx;
  26.     cy = _rotl (cy, 4);
  27.     cx = _rotl (cx, i);
  28.     cx += cy;
  29.  
  30.  
  31.  
  32.     return 0;
  33. }
  34.  
  35. unsigned int _rotl(const unsigned int value, int shift) {
  36.     if ((shift &= sizeof(value)*8 - 1) == 0)
  37.         return value;
  38.     return (value << shift) | (value >> (sizeof(value)*8 - shift));
  39. }
  40.  
  41. unsigned int _rotr(const unsigned int value, int shift) {
  42.     if ((shift &= sizeof(value)*8 - 1) == 0)
  43.         return value;
  44.     return (value >> shift) | (value << (sizeof(value)*8 - shift));
  45. }
RAW Paste Data
Top