<number> = <number> & <number>
Operators: Bitwise And with Variable "&=" Operators: Bitwise And "&"Bitwise 'and'.
Calculate Flow control: if … then Flow control: try … thenthe Operators: Bitwise And with Variable "&=" Operators: Bitwise And "&"bitwise 'and' 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 And with Variable "&=" Operators: Bitwise And "&"bitwise and is positive, Flow control: if … thenif one of Flow control: if … then Flow control: try … thenthe Glossary: Operator Glossary: Operandoperands is positive. Flow control: if … thenIf both Glossary: Operator Glossary: Operandoperands are negative, Flow control: if … then Flow control: try … thenthe result is negative.
e.g.:
vipsi> Text functions: hexstrhexstr($FE & $0F) = 0E
vipsi> Text functions: hexstrhexstr( $FF00 & ~$A0A0 ) 5F00
vipsi> ~$FF00 & ~$A0A0 -65441
vipsi> Text functions: hexstrhexstr( ~$FF00 & ~$A0A0, 4 ) 005F
vipsi> Text functions: hexstrhexstr( ~$FF00 & ~$A0A0, 8 ) FFFF005F
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.
|