 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

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  ## Other Lessons for You

Gauss Elimination Method
Solve the following system of equations using Gaussian elimination: 2x + y + 3z = 12x + 6y + 8z = 36x + 8y + 18z = 5 I think I'll use the first row to clear out the x-terms from the second and third... Understanding Of GST (Goods And Services Tax)
What is GST? Goods & Services Tax is a comprehensive, multi-stage, destination-based tax that will be levied on every value addition. To understand this, we need to understand the concepts under... Some interview questions for freshers on C language
Q1. What are the two forms of #include? There are two variants of #include. The one is #include and the other one is #include”file”. In general the first form that is #include is used to... Rank test
Rank Sum Test: The medians test and the examination of the math test scores in Section reduce every observation of a coin toss. Specifically, the medians test judges every observation as being either above... Chapters: How Does a Computer Work And Starting Up And Shutting Down: 1. Write T for True and F for False: CPU is the brain of the computer. The CPU has a device called the Pen drive. Switching... ### Looking for BSc Tuition ?

Learn from Best Tutors on UrbanPro.

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you

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 