Click here to Skip to main content
15,912,932 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: The origins of calculus Pin
Maximilien15-Aug-07 3:17
Maximilien15-Aug-07 3:17 
GeneralActually, it was Archimedes Pin
Jay Gatsby17-Aug-07 11:51
Jay Gatsby17-Aug-07 11:51 
JokeRe: The origins of calculus Pin
PIEBALDconsult26-Aug-07 5:45
mvePIEBALDconsult26-Aug-07 5:45 
QuestionGetting s week number from a date Pin
Steven J Jowett6-Aug-07 6:14
Steven J Jowett6-Aug-07 6:14 
AnswerRe: Getting s week number from a date Pin
cp98766-Aug-07 15:10
cp98766-Aug-07 15:10 
GeneralRe: Getting s week number from a date Pin
Steven J Jowett6-Aug-07 22:19
Steven J Jowett6-Aug-07 22:19 
QuestionBasic 64-bit integer question Pin
Domenic Denicola1-Aug-07 16:42
Domenic Denicola1-Aug-07 16:42 
AnswerRe: Basic 64-bit integer question [modified] Pin
Luc Pattyn1-Aug-07 23:14
sitebuilderLuc Pattyn1-Aug-07 23:14 
Hi,

that would be wrong.

the low part is the result of anding with a mask containing the bits you want,
for 64-bit that would be 0x00000000FFFFFFFFL (L suffix for ulong).
[Addition: the alternative is to cast to (uint)]

the high part is what you get if you right-shift an unsigned long
over 32 positions;
or simply cast to uint

The fact the Intel and the like store numbers the other way around has nothing
to do with it, since you are performing mathematical operations here, not
memory access operations.

I trust you could have figured this out yourself with a couple of small experiments ?

Smile | :)


-- modified at 3:40 Friday 3rd August, 2007


GeneralRe: Basic 64-bit integer question Pin
Domenic Denicola2-Aug-07 6:27
Domenic Denicola2-Aug-07 6:27 
GeneralRe: Basic 64-bit integer question Pin
Luc Pattyn2-Aug-07 6:47
sitebuilderLuc Pattyn2-Aug-07 6:47 
GeneralHey Luc, Pin
CPallini2-Aug-07 21:18
mveCPallini2-Aug-07 21:18 
GeneralRe: Hey Luc, Pin
Luc Pattyn2-Aug-07 21:43
sitebuilderLuc Pattyn2-Aug-07 21:43 
GeneralSorry... Pin
CPallini2-Aug-07 21:50
mveCPallini2-Aug-07 21:50 
Questionimage Pin
zainab ibrahim29-Jul-07 22:54
zainab ibrahim29-Jul-07 22:54 
AnswerRe: image Pin
Habib Ahmed Bhutto30-Jul-07 12:39
Habib Ahmed Bhutto30-Jul-07 12:39 
QuestionPatterns Pin
ThaScorpion29-Jul-07 14:40
ThaScorpion29-Jul-07 14:40 
AnswerRe: Patterns Pin
cp987629-Jul-07 14:56
cp987629-Jul-07 14:56 
GeneralRe: Patterns Pin
ThaScorpion29-Jul-07 15:08
ThaScorpion29-Jul-07 15:08 
GeneralRe: Patterns Pin
Paul Conrad29-Jul-07 17:00
professionalPaul Conrad29-Jul-07 17:00 
GeneralRe: Patterns Pin
Jörgen Sigvardsson2-Aug-07 21:15
Jörgen Sigvardsson2-Aug-07 21:15 
GeneralRe: Patterns Pin
Paul Conrad3-Aug-07 3:34
professionalPaul Conrad3-Aug-07 3:34 
GeneralRe: Patterns Pin
Jörgen Sigvardsson3-Aug-07 3:41
Jörgen Sigvardsson3-Aug-07 3:41 
GeneralRe: Patterns Pin
Malcolm Smart11-Aug-07 10:19
Malcolm Smart11-Aug-07 10:19 
GeneralRe: Patterns Pin
Paul Conrad11-Aug-07 10:28
professionalPaul Conrad11-Aug-07 10:28 
AnswerRe: Patterns Pin
Stephen Hewitt29-Jul-07 15:41
Stephen Hewitt29-Jul-07 15:41 

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.