Click here to Skip to main content
12,063,445 members (74,689 online)

C / C++ / MFC

 
Questionhow to unsigned int64 to two unsigned int32 values Pin
vishalgpt9-Jan-13 23:22
membervishalgpt9-Jan-13 23:22 
AnswerRe: how to unsigned int64 to two unsigned int32 values Pin
Jochen Arndt10-Jan-13 0:06
memberJochen Arndt10-Jan-13 0:06 
GeneralRe: how to unsigned int64 to two unsigned int32 values Pin
vishalgpt10-Jan-13 0:32
membervishalgpt10-Jan-13 0:32 
GeneralRe: how to unsigned int64 to two unsigned int32 values Pin
Jochen Arndt10-Jan-13 0:58
memberJochen Arndt10-Jan-13 0:58 
Yes, because the endianess does not care for the used logical operations.

If you think of multiplication / division instead of the shift operations and of addition instead of the OR operation it should be clear. The operation values are just high or low parts where the internally used bit or byte order does not care. Casting is similar (extending with high zeroes upon up-casting and masking out the lower bits upon down-casting).
GeneralRe: how to unsigned int64 to two unsigned int32 values Pin
vishalgpt10-Jan-13 1:08
membervishalgpt10-Jan-13 1:08 
AnswerRe: [SOLVED] how to unsigned int64 to two unsigned int32 values Pin
«_Superman_»10-Jan-13 19:39
member«_Superman_»10-Jan-13 19:39 
GeneralRe: [SOLVED] how to unsigned int64 to two unsigned int32 values Pin
vishalgpt14-Jan-13 16:25
membervishalgpt14-Jan-13 16:25 
GeneralRe: [SOLVED] how to unsigned int64 to two unsigned int32 values Pin
«_Superman_»14-Jan-13 18:55
member«_Superman_»14-Jan-13 18:55 
GeneralRe: [SOLVED] how to unsigned int64 to two unsigned int32 values Pin
vishalgpt14-Jan-13 20:01
membervishalgpt14-Jan-13 20:01 
QuestionHTTP server in C. How to implement Keep-Alive? Pin
johanm_29-Jan-13 21:02
memberjohanm_29-Jan-13 21:02 

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.


Advertise | Privacy | Mobile
Web03 | 2.8.160204.4 | Last Updated 4 Feb 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid