About: BitwiseMathOperators   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

Bitwise 'OR' operator ("|"): Will compare the bits of two numbers, and return a number with a 1 in every bit that has a 1 in either number. This is basically used to 'add' a bit to a number. Example: 0001 1010 | 0001 0101 = 0001 1111 Will compare the bits of two numbers, and return a number with a 1 in every bit that has a 1 in both numbers. This is used to see if a bit exists in a number. Example: 0001 1010 & 0000 1000 = 0000 1000 Will compare the bits of two numbers, and return a number with 1s where neither number has a 1. This is used to subtract a bit from a number.

AttributesValues
rdfs:label
  • BitwiseMathOperators
rdfs:comment
  • Bitwise 'OR' operator ("|"): Will compare the bits of two numbers, and return a number with a 1 in every bit that has a 1 in either number. This is basically used to 'add' a bit to a number. Example: 0001 1010 | 0001 0101 = 0001 1111 Will compare the bits of two numbers, and return a number with a 1 in every bit that has a 1 in both numbers. This is used to see if a bit exists in a number. Example: 0001 1010 & 0000 1000 = 0000 1000 Will compare the bits of two numbers, and return a number with 1s where neither number has a 1. This is used to subtract a bit from a number.
dcterms:subject
abstract
  • Bitwise 'OR' operator ("|"): Will compare the bits of two numbers, and return a number with a 1 in every bit that has a 1 in either number. This is basically used to 'add' a bit to a number. Example: 0001 1010 | 0001 0101 = 0001 1111 Will compare the bits of two numbers, and return a number with a 1 in every bit that has a 1 in both numbers. This is used to see if a bit exists in a number. Example: 0001 1010 & 0000 1000 = 0000 1000 Will compare the bits of two numbers, and return a number with 1s where neither number has a 1. This is used to subtract a bit from a number. Example: 0001 1010 ~ 0100 0011 = 1010 0100 Will compare the bits of two numbers, and return a number with a 1 in every bit that has a 1 in one number, but not the other. This is used to toggle a bit in a number. Example: 0001 1010 ^ 0001 0000 = 0000 1010 and 0001 1010 ^ 0000 0100 = 0001 1110 Will take the bits of a number and move the 1s to the left a certain number of places. This is used to multiply by powers of 2. Example: 0001 1010 << 2 = 0110 1000 Will take the bits of a number and move the 1s to the right a certain number of places. This is used to divide by powers of 2. Example: 0001 1010 >> 2 = 1000 0110 Will take the bits of a number and move the 1s to the right a certain number of places. The ones and zeros (bits) that pass the right bound of the byte are discarded, and the left side of the byte is padded with zeros (zero bits). This is used to divide by powers of 2. Example: 0100 1111 >>> 2 = 0001 0011 For more information, visit:
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software