<number> = <number> ^ <number>
Operators: Bitwise Exclusive Or "^"Bitwise 'exclusive or'.
Calculate Flow control: if … then Flow control: try … thenthe Operators: Bitwise Exclusive Or "^"bitwise 'exclusive or' of two numeric Glossary: Valuevalues.
Flow control: if … thenIf any of both Vipsi command syntax: Arguments Glossary: Argumentsarguments is a Data Types: Text Item selector "[]": Text Glossary: text, text_valtext, Flow control: if … then Flow control: try … thenthen it is evaluated as Glossary: number, num_valnumber. Flow control: if … thenIf one Glossary: Operator Glossary: Operandoperand is a Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist, Flow control: if … then Flow control: try … thenthe result is a Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist, where Flow control: if … then Flow control: try … thenthe operation was applied to all items. Recursively. Flow control: if … thenIf both are Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallists, they should Numeric functions: matchmatch in size Operators: Boolean And with Variable "&&=" Operators: Bitwise And with Variable "&=" Operators: Bitwise And "&" Operators: Boolean And "&&"and Flow control: if … then Flow control: try … thenthe operation is applied to all matching items.
Flow control: if … then Flow control: try … thenThe result of Operators: Bitwise Exclusive Or "^"bitwise exclusive or is positive, Flow control: if … thenif both Glossary: Operator Glossary: Operandoperands are positive Operators: Boolean Or with Variable "||=" Operators: Bitwise Or with Variable "|=" Operators: Bitwise Or "|" Operators: Boolean Or "||"or both Glossary: Operator Glossary: Operandoperands are negative, Flow control: if … then Flow control: try … thenelse it is negative.
e.g.:
vipsi> Text functions: hexstrhexstr($0E ^ $5E) 50
vipsi> Text functions: hexstrhexstr(~$0E ^ ~$5E) 50
vipsi> ~$0E ^ ~$5E 80
vipsi> ~$0E ^ $5E -81
vipsi> Text functions: hexstrhexstr(~$0E ^ $5E, 4) FFAF
vipsi> Text functions: hexstrhexstr(~$0E ^ $5E, 8) FFFFFFAF
vipsi>
Operators: Bitwise Not "~" Operators: Boolean Negation "!"Note: Bitwise Vipsi command syntax: Operators Operators Glossary: Operatoroperators work on 64 bit integers. Flow control: if … thenIf you need less, you must mask Flow control: if … then Flow control: try … thenthe result.
Depending on Flow control: if … then Flow control: try … thenthe Number literals: Floating pointfloating point format selected when compiling vipsi, Flow control: if … then Flow control: try … thenthe precision may be less than 64 bit. 53 bit is common for 8-byte-floats.
Negative Data Types: Numbersnumbers are taken by their -1 Operators: Bitwise Not "~"complement, which is common for Number literals: Integer numbersinteger numbers.
Flow control: if … thenIf both Vipsi command syntax: Arguments Glossary: Argumentsarguments of a bitwise operation are positive, Flow control: if … then Flow control: try … thenthen Flow control: if … then Flow control: try … thenthe result is positive too in all cases. Flow control: if … thenIf one Operators: Boolean Or with Variable "||=" Operators: Bitwise Or with Variable "|=" Operators: Bitwise Or "|" Operators: Boolean Or "||"or both are negative, List functions: thisthis depends on Flow control: if … then Flow control: try … thenthe Vipsi command syntax: Operators Operators Glossary: Operatoroperator, though it's Shell Immediate Commands: exit, quit, endquite simple: Flow control: if … then Flow control: if … thenIf the result is negative in an infinite-wide integer, Flow control: if … then Flow control: try … thenthe result of Flow control: if … then Flow control: try … thenthe Vipsi command syntax: Operators Operators Glossary: Operatoroperator is negative; e.g. +a^-a is negative.
|