What do you mean by improve ?
Main Topics
Browse All TopicsI need an improvement to the getMemberListSize methods using shift opration etc...
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
uGroupSize + MemberNb would be something like (if MemberNb = 1024 set & uGroupSize = 3)
0000000000000011
XXXXX10000000000
-------------------------
XXXXX10000000011
Your result after by shifting by 6 or multiplying by 32 will be (1000000001100000), if you only want 11 bits you should mask the value by 0x0FFF.
If you accept answers, then that automatically closes the question. I assume what you're referring to is the auto-close message, which appears if you select your OWN reply as the answer. If you select only expert replies as the answer, the question will be closed immediately without the auto-close message.
Business Accounts
Answer for Membership
by: bachra04Posted on 2009-10-22 at 07:00:41ID: 25634259
Sorry
a quick correction:
unsigned __int16 getMemberListSize()
{
// calculates and returns the size of the memberList based
// on the values of MMI and MemberNb fields.
unsigned __int16 uGroupSize = this.MMI ? 3:2;
unsigned __int16 uTotalBitsSize = (uGroupSize + this.MemberNb)*32;
return (uTotalBitsSize + (( 32 - uTotalBitsSize % 32)%32))/8;
}