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

SINCERITY TOWARDS OURSELVES
Please see that we are sincere to ourseleves....see that we prepare a small schedule which is convenient and implementable by us..At the end of a week atleast, check if we are able to fulfill it and try...

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...

Mushroom Production – A profitable rural Business
Production of Mushroom is a profitable business for farmers owning small land requires considerably low start-ups capital investments. Mushroom production is an art which needs the combination of study...

Kalpana Gunwant

0 0
0

Simple Algorithms - Fibonacci, Finding GCD & Finding LCM.
import java.util.Scanner; //0,1,1,2,3,5,8,13,21,34... //fun(n)=fun(n-1)+fun(n-2) where n>=2 /*fib(9)=fib(8)+fib(7) =fib(7)+fib(6)+fib(6)+fib(5) =fib(6)+fib(5)+fib(5)+fib(4)+fib(5)+fib(4)+fib(4)+fib(3) */ public...

CSS awesome tips
CSS - Cascading Style Sheet is used to beautify Web pages and there are some common things which are very basic yet conceptual and very important for development. So here are some of the important tips...
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