documented shift left and right
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4639 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
a446edac5c
commit
5269b57a1a
1 changed files with 14 additions and 2 deletions
|
@ -561,15 +561,17 @@ good:
|
|||
<li>Subtraction -- <b>-</b></li>
|
||||
<li>Multiplication -- <b>*</b></li>
|
||||
<li>Division -- <b>/</b></li>
|
||||
<li>Module -- <b>%</b></li>
|
||||
<li>Modulo -- <b>%</b></li>
|
||||
<li>Shift right -- <b>>></b></li>
|
||||
<li>Shift left -- <b><<</b></li>
|
||||
<li>Bitwise or -- <b>|</b></li>
|
||||
<li>Bitwise and -- <b>&</b></li>
|
||||
<li>Bitwise xor -- <b>^</b></li>
|
||||
<li>Logical or -- <b>||</b></li>
|
||||
<li>Logical and -- <b>&&</b></li>
|
||||
<li>Less than -- <b><</b></li>
|
||||
<li>Greater than -- <b>></b></li>
|
||||
<li>Equals -- <b>=</b></li>
|
||||
<li>Greater than -- <b>></b></li>
|
||||
<li>Bitwise not (one argument) -- <b>~</b></li>
|
||||
<li>Logical not (one argument) -- <b>!</b></li>
|
||||
</ul>
|
||||
|
@ -602,6 +604,16 @@ Pop $0
|
|||
DetailPrint "0x89498A198E4566C % 157 = $0" # 118
|
||||
</pre></blockquote>
|
||||
<blockquote><pre>
|
||||
System::<b>Int64Op</b> 1 << 62
|
||||
Pop $0
|
||||
DetailPrint "1 << 62 = $0" # 4611686018427387904
|
||||
</pre></blockquote>
|
||||
<blockquote><pre>
|
||||
System::<b>Int64Op</b> 0x4000000000000000 >> 62
|
||||
Pop $0
|
||||
DetailPrint "0x4000000000000000 >> 62 = $0" # 1
|
||||
</pre></blockquote>
|
||||
<blockquote><pre>
|
||||
System::<b>Int64Op</b> 0xF0F0F0F | 0xF0F0FFF
|
||||
Pop $0
|
||||
# IntFmt is 32-bit, this is just for the example
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue