Click here to Skip to main content
15,891,993 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Power of 2 Pin
Divyang Mithaiwala5-Mar-06 23:45
Divyang Mithaiwala5-Mar-06 23:45 
GeneralRe: Power of 2 Pin
toxcct5-Mar-06 23:47
toxcct5-Mar-06 23:47 
GeneralRe: Power of 2 Pin
Divyang Mithaiwala6-Mar-06 0:25
Divyang Mithaiwala6-Mar-06 0:25 
GeneralRe: Power of 2 Pin
toxcct6-Mar-06 0:28
toxcct6-Mar-06 0:28 
GeneralRe: Power of 2 Pin
Divyang Mithaiwala5-Mar-06 23:51
Divyang Mithaiwala5-Mar-06 23:51 
AnswerRe: Power of 2 Pin
BadKarma5-Mar-06 23:51
BadKarma5-Mar-06 23:51 
AnswerRe: Power of 2 Pin
Taka Muraoka5-Mar-06 23:53
Taka Muraoka5-Mar-06 23:53 
GeneralRe: Power of 2 Pin
Ryan Binns6-Mar-06 0:15
Ryan Binns6-Mar-06 0:15 
Taka Muraoka wrote:
BTW, all these suggestions to use sqrt() and log() are nuts - these functions are insanely slow!


Agreed!! It is quite simple. A single decrement and bitwise AND will do the job nicely

Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

AnswerRe: Power of 2 Pin
Ryan Binns5-Mar-06 23:59
Ryan Binns5-Mar-06 23:59 
GeneralRe: Power of 2 Pin
Stephen Hewitt6-Mar-06 0:13
Stephen Hewitt6-Mar-06 0:13 
GeneralRe: Power of 2 Pin
Ryan Binns6-Mar-06 0:16
Ryan Binns6-Mar-06 0:16 
GeneralRe: Power of 2 Pin
Stephen Hewitt6-Mar-06 0:18
Stephen Hewitt6-Mar-06 0:18 
GeneralRe: Power of 2 Pin
Ryan Binns6-Mar-06 0:19
Ryan Binns6-Mar-06 0:19 
GeneralRe: Power of 2 Pin
Stephen Hewitt6-Mar-06 0:22
Stephen Hewitt6-Mar-06 0:22 
GeneralRe: Power of 2 Pin
Ryan Binns6-Mar-06 0:23
Ryan Binns6-Mar-06 0:23 
GeneralRe: Power of 2 Pin
Nibu babu thomas6-Mar-06 0:15
Nibu babu thomas6-Mar-06 0:15 
GeneralRe: Power of 2 Pin
Ryan Binns6-Mar-06 0:17
Ryan Binns6-Mar-06 0:17 
GeneralRe: Power of 2 Pin
Nibu babu thomas6-Mar-06 0:18
Nibu babu thomas6-Mar-06 0:18 
GeneralRe: Power of 2 Pin
RichardS6-Mar-06 1:02
RichardS6-Mar-06 1:02 
GeneralRe: Power of 2 Pin
RichardS6-Mar-06 1:27
RichardS6-Mar-06 1:27 
GeneralRe: Power of 2 Pin
Ryan Binns6-Mar-06 3:14
Ryan Binns6-Mar-06 3:14 
GeneralRe: Power of 2 Pin
RichardS6-Mar-06 3:47
RichardS6-Mar-06 3:47 
GeneralRe: Power of 2 Pin
cmk6-Mar-06 17:12
cmk6-Mar-06 17:12 
AnswerRe: Power of 2 Pin
David Crow6-Mar-06 2:52
David Crow6-Mar-06 2:52 
QuestionCSimpleStringT::GetBuffer equivalent in C# Pin
madhusri5-Mar-06 23:21
madhusri5-Mar-06 23:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.