daily pastebin goal
19%
SHARE
TWEET

Untitled

a guest Apr 26th, 2018 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. New rubinius tag format proposal
  2.  
  3. 00 - ref
  4. x1 - fixnum (only 1 bit used, leaving 31 bits for signed value)
  5. 10 - literal / symbol
  6.  
  7. bit patterns for important literals and values:
  8. 00000000 - non-literal value nil
  9. 00000010 - false
  10. 00000110 - true
  11. 00001010 - undef
  12.  
  13. xxxx1110 - symbols
  14.  
  15. which means the only two values with every value other than the secondmost least significant bit cleared are nil and false
  16.  
  17. #define RTEST(val) (val & 0xfffffffd)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top