Click here to Skip to main content
15,885,953 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: There is a better way to achieve that? Pin
V.21-Feb-05 4:35
professionalV.21-Feb-05 4:35 
AnswerRe: There is a better way to achieve that? Pin
Zdeslav Vojkovic21-Feb-05 5:58
Zdeslav Vojkovic21-Feb-05 5:58 
GeneralRe: There is a better way to achieve that? Pin
22491721-Feb-05 16:35
22491721-Feb-05 16:35 
GeneralRe: There is a better way to achieve that? Pin
Stephan Poirier21-Feb-05 19:57
Stephan Poirier21-Feb-05 19:57 
GeneralRe: There is a better way to achieve that? Pin
Zdeslav Vojkovic22-Feb-05 0:36
Zdeslav Vojkovic22-Feb-05 0:36 
GeneralRe: There is a better way to achieve that? Pin
Stephan Poirier21-Feb-05 21:00
Stephan Poirier21-Feb-05 21:00 
GeneralRe: There is a better way to achieve that? Pin
Zdeslav Vojkovic22-Feb-05 2:27
Zdeslav Vojkovic22-Feb-05 2:27 
GeneralRe: There is a better way to achieve that? Pin
Stephan Poirier22-Feb-05 14:47
Stephan Poirier22-Feb-05 14:47 
Oups!! Big Grin | :-D

I've tested every code in debug to be sure that everything was swapped properly but forgot this oneSniff | :^) !

Thanks Zdeslav! For sure, I will look for the book you're talking about.

I ran my test program with swap codes exactly identical to the ones you tested yourself and it gives me always the same result, the assembly code is always still faster. I don't understand. Maybe it depend on the way it is compiled and on which CPU it is ran...

I use MS Visual C++ 6.0
Compiler version : MS 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Linker version : MS Incremental Linker Version 6.00.8168
My CPU is : Intel Pentium III, 450MHz
SDK installed : MS SDK for WinXP SP2

My project settings are the base one for an MFC dialog-based application.
Also, every loops are called within a worker thread sets with normal priority.



Progamming looks like taking drugs...
I think I did an overdose. Poke tongue | ;-P
GeneralRe: There is a better way to achieve that? Pin
Stephan Poirier22-Feb-05 14:56
Stephan Poirier22-Feb-05 14:56 
AnswerRe: There is a better way to achieve that? Pin
Stephan Poirier21-Feb-05 16:18
Stephan Poirier21-Feb-05 16:18 
Questionhow to achieve a secure file system against information leak? Pin
zymoonstone20-Feb-05 19:12
zymoonstone20-Feb-05 19:12 
AnswerRe: how to achieve a secure file system against information leak? Pin
22491721-Feb-05 0:45
22491721-Feb-05 0:45 
GeneralRe: how to achieve a secure file system against information leak? Pin
zymoonstone21-Feb-05 13:54
zymoonstone21-Feb-05 13:54 
QuestionConnected or not? Pin
wasife20-Feb-05 18:58
wasife20-Feb-05 18:58 
AnswerRe: Connected or not? Pin
ThatsAlok20-Feb-05 19:11
ThatsAlok20-Feb-05 19:11 
AnswerRe: Connected or not? Pin
David Crow21-Feb-05 4:10
David Crow21-Feb-05 4:10 
AnswerRe: Connected or not? Pin
Michael Dunn21-Feb-05 6:58
sitebuilderMichael Dunn21-Feb-05 6:58 
GeneralTitle bar Color Pin
Anonymous20-Feb-05 18:54
Anonymous20-Feb-05 18:54 
QuestionHow to fix first four coumns of the List ctrl and all other columns to allow scrolling Pin
sureshpillai20-Feb-05 18:40
sureshpillai20-Feb-05 18:40 
GeneralPassing values of object. Getting garbage. Pin
macrophobia20-Feb-05 18:25
macrophobia20-Feb-05 18:25 
GeneralRe: Passing values of object. Getting garbage. Pin
David Nash20-Feb-05 22:02
David Nash20-Feb-05 22:02 
GeneralRe: Passing values of object. Getting garbage. Pin
macrophobia20-Feb-05 23:43
macrophobia20-Feb-05 23:43 
GeneralRe: Passing values of object. Getting garbage. Pin
David Nash21-Feb-05 3:10
David Nash21-Feb-05 3:10 
GeneralUPDATE - Passing values.Getting garbage. Pin
macrophobia21-Feb-05 2:01
macrophobia21-Feb-05 2:01 
GeneralRe: UPDATE - Passing values.Getting garbage. Pin
David Nash21-Feb-05 3:32
David Nash21-Feb-05 3:32 

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.