From 5269b57a1ac7d045dc028727f5df1f45c3cb3f62 Mon Sep 17 00:00:00 2001 From: kichik Date: Wed, 5 Apr 2006 18:48:28 +0000 Subject: [PATCH] documented shift left and right git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4639 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/System/System.html | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Contrib/System/System.html b/Contrib/System/System.html index 21eacac7..cc9f661a 100644 --- a/Contrib/System/System.html +++ b/Contrib/System/System.html @@ -561,15 +561,17 @@ good:
  • Subtraction -- -
  • Multiplication -- *
  • Division -- /
  • -
  • Module -- %
  • +
  • Modulo -- %
  • +
  • Shift right -- >>
  • +
  • Shift left -- <<
  • Bitwise or -- |
  • Bitwise and -- &
  • Bitwise xor -- ^
  • Logical or -- ||
  • Logical and -- &&
  • Less than -- <
  • -
  • Greater than -- >
  • Equals -- =
  • +
  • Greater than -- >
  • Bitwise not (one argument) -- ~
  • Logical not (one argument) -- !
  • @@ -602,6 +604,16 @@ Pop $0 DetailPrint "0x89498A198E4566C % 157 = $0" # 118
    +System::Int64Op 1 << 62
    +Pop $0
    +DetailPrint "1 << 62 = $0" # 4611686018427387904
    +
    +
    +System::Int64Op 0x4000000000000000 >> 62
    +Pop $0
    +DetailPrint "0x4000000000000000 >> 62 = $0" # 1
    +
    +
     System::Int64Op 0xF0F0F0F | 0xF0F0FFF
     Pop $0
     # IntFmt is 32-bit, this is just for the example