UrbanPro
true

Take BSc Tuition from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Bitwise Operators - Binary Number System

SuDo InfoTech
02/05/2017 0 0

Binary Number System

  1. A bitwise operation operates on one or more bit patterns or binary numerals at the level of their individual bits. It is a fast, primitive action directly supported by the processor, and is used to manipulate values for comparisons and calculations. On simple low-cost processors, typically, bitwise operations are substantially faster than division, several times faster than multiplication, and sometimes significantly faster than addition. While modern processors usually perform addition and multiplication just as fast as bitwise operations due to their longer instruction pipelines and other architectural design choices, bitwise operations do commonly use less power/performance because of the reduced use of resources.
  2. Logical Gates

           Tables to revwise things

  1. On off status

Binary-coded decimal

Jpeg best example of storing data

  1. Binary arithmetic

           + -

0 + 0 → 0

0 + 1 → 1

1 + 0 → 1

1 + 1 → 0, carry 1 (since 1 + 1 = 0 + 1 × binary 10)

  1. Subtraction works in much the same way:

0 − 0 → 0

0 − 1 → 1, borrow 1

1 − 0 → 1

1 − 1 → 0

  1. Signed and unsigned numbers representation
  1. Two's complement
  1. Finding binary of negative numbers
  2. Standard conversions hex, oct, dec -> bin bin -> hex, oct, dec

           Fastest conversions hex->bin bin->hex oct->bin bin->oct

  1. Bitwise operators

http://en.wikipedia.org/wiki/Bitwise_operations_in_C

  1. Usages of binary number knowledge in programs

           Masks

           1 bit status

  1. Magic of binary usage (bitwise operators)

           Swapping numbers

           Finding out range of int

http://en.wikipedia.org/wiki/Bit_manipulation

http://en.wikipedia.org/wiki/XOR_swap_algorithm.

0 Dislike
Follow 0

Please Enter a comment

Submit

Other Lessons for You

Cycles
A reversible thermodynamic cycle containing only three processes and producing work is to be constructed. The constraints are:(i) there must be one isothermal process,(ii) there must be one isentropic...

Genetics: Introduction
Genetics is the study of genes, geneticvariation, and heredity in living organisms. It is generally considered a field of biology, but intersects frequently with many other life sciences and is strongly...
S

Software Testing Training Course - Rakesh
Software Testing Training Course Join us if you want to learn software testing. We have designed this software testing training course to learn software testing fundamentals and gradually introduce you...

Understanding Asymptotic Notations And Big Oh(O)
What are asymptotic notations for complexity analysis?A problem may have numerous algorithmic solutions. In order to choose the best algorithm for a particular task, you need to be able to judge how long...

Chromatography Technique
1. Chromatography has complete applications according to types of sample. Such as medical, clinical, forensic science, characterization, purification, isolation of molecule. 2. There are advantages and...
X

Looking for BSc Tuition Classes?

The best tutors for BSc Tuition Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Take BSc Tuition with the Best Tutors

The best Tutors for BSc Tuition Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more