Solved

what is 31 >> 5

Posted on 2014-07-31
3
162 Views
Last Modified: 2014-07-31
#define MAX_NVM_CRPT                        (32)                                /* Total number of corrupt data flags */
#define NVM_MGR_ID_TO_BIT_IDX         (5)

#define NVM_MGR_CRPT_DATA_BUFFER_SIZE                 (((MAX_NVM_CRPT - 1) >> NVM_MGR_ID_TO_BIT_IDX) + 1)
0
Comment
Question by:naseeam
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 45

Accepted Solution

by:
Kent Olsen earned 400 total points
ID: 40232650
Hi naseeam,

>> is the right shift operator.

In your example, 21 would be right shifted 5 places, resulting in zero.

A right shift of 5 places is an integer division by 32.


Good Luck,
Kent
0
 
LVL 1

Author Comment

by:naseeam
ID: 40232722
Yes, it's right shift operator.

Do you mean 31 instead of 21 ?
0
 
LVL 45

Expert Comment

by:Kent Olsen
ID: 40232769
Oops.  Typo on my part.  Good catch.

Yes.  In your example, 31 would be right shifted 5 places, resulting in zero.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question