GoFiler Legato Script Reference
Legato v 1.5d Application v 5.25a
|
Table of Contents | < < Previous | Next >> |
Chapter Three — Data Types and Operators (continued)
Bitwise math operators perform bitwise operations on one or more bit patterns or binary numerals at the level of their individual bits. Operations can be performed on variables. Bitwise math operators are evaluated right-to-left. The following bitwise math operators are used in Legato:
Bitwise NOT | ~ | ~a |
Bitwise AND | & | a & b |
Bitwise OR | | | a | b |
Bitwise XOR | ^ | a ^ b |
Bitwise left shift | << | a << b |
Bitwise right shift | >> | a >> b |
Bitwise math operators are evaluated in their order of precedence as described in Section 3.12 Operator Precedence.
Note that the right shift operation will sign extend and fill ones from the left if the data type is a signed integer. For example, if an int is set to 0x80000000 is shifted one tot he right, the result will be 0xC0000000. On the other hand, a unsigned int, dword, the result will be 0x40000000. Literal values are considered signed by default.
Table of Contents | < < Previous | Next >> |
© 2012-2024 Novaworks, LLC. All rights reserved worldwide. Unauthorized use, duplication or transmission prohibited by law. Portions of the software are protected by US Patents 10,095,672, 10,706,221 and 11,210,456. GoFiler™ and Legato™ are trademarks of Novaworks, LLC. EDGAR® is a federally registered trademark of the U.S. Securities and Exchange Commission. Novaworks is not affiliated with or approved by the U.S. Securities and Exchange Commission. All other trademarks are property of their respective owners. Use of the features specified in this language are subject to terms, conditions and limitations of the Software License Agreement.