bitwise.km 1.7 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // Bitwise Operation Functions
  2. export function <and>: &(Bit,Bit) => Bit native '&Bit';
  3. export function <or>: &(Bit,Bit) => Bit native '|Bit';
  4. export function <not>: &(Bit) => Bit native '~Bit';
  5. export function <and>: &(Byte,Byte) => Byte native '&Byte';
  6. export function <or>: &(Byte,Byte) => Byte native '|Byte';
  7. export function <not>: &(Byte) => Byte native '~Byte';
  8. export function <xor>: &(Byte,Byte) => Byte native '^Byte';
  9. export function <shl>: &(Byte,Number) => Byte native '<<Byte';
  10. export function <shr>: &(Byte,Number) => Byte native '>>Byte';
  11. export function <and>: &(Word,Word) => Word native '&Word';
  12. export function <or>: &(Word,Word) => Word native '|Word';
  13. export function <not>: &(Word) => Word native '~Word';
  14. export function <xor>: &(Word,Word) => Word native '^Word';
  15. export function <shl>: &(Word,Number) => Word native '<<Word';
  16. export function <shr>: &(Word,Number) => Word native '>>Word';
  17. export function <and>: &(Dword,Dword) => Dword native '&Dword';
  18. export function <or>: &(Dword,Dword) => Dword native '|Dword';
  19. export function <not>: &(Dword) => Dword native '~Dword';
  20. export function <xor>: &(Dword,Dword) => Dword native '^Dword';
  21. export function <shl>: &(Dword,Number) => Dword native '<<Dword';
  22. export function <shr>: &(Dword,Number) => Dword native '>>Dword';
  23. export function <and>: &(Qword,Qword) => Qword native '&Qword';
  24. export function <or>: &(Qword,Qword) => Qword native '|Qword';
  25. export function <not>: &(Qword) => Qword native '~Qword';
  26. export function <xor>: &(Qword,Qword) => Qword native '^Qword';
  27. export function <shl>: &(Qword,Number) => Qword native '<<Qword';
  28. export function <shr>: &(Qword,Number) => Qword native '>>Qword';