Click here to Skip to main content
15,566,678 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What is the merit to rewrite memcpy? Pin
jeron14-Jan-13 11:49
jeron14-Jan-13 11:49 
GeneralRe: What is the merit to rewrite memcpy? Pin
Richard MacCutchan5-Jan-13 2:20
mveRichard MacCutchan5-Jan-13 2:20 
AnswerRe: What is the merit to rewrite memcpy? Pin
jschell6-Jan-13 6:02
jschell6-Jan-13 6:02 
AnswerRe: What is the merit to rewrite memcpy? Pin
Joe Woodbury7-Jan-13 11:15
professionalJoe Woodbury7-Jan-13 11:15 
QuestionWhat is the benefit using duplicate loop statement [solved] Pin
econy4-Jan-13 5:53
econy4-Jan-13 5:53 
AnswerRe: What is the benefit using duplicate loop statement Pin
jeron14-Jan-13 6:29
jeron14-Jan-13 6:29 
GeneralRe: What is the benefit using duplicate loop statement Pin
econy4-Jan-13 7:37
econy4-Jan-13 7:37 
GeneralRe: What is the benefit using duplicate loop statement Pin
jeron14-Jan-13 7:58
jeron14-Jan-13 7:58 
econy wrote:
All Bstruct.aa[],bb[] ... kk[] have the same size 16

Yes, today they do, tomorrow, who knows?
econy wrote:
Is there some cons for using seperate for loops?

Using more CPU cycles because of the multiple initializations and testings (some MCUs clear thier cache when branches are executed) of i. Other than that I can't think of any.
econy wrote:
the compiler maybe optimized them in one loop in assembly?

Don't know offhand, my gut tells me they wouldn't be optimized out.
GeneralRe: What is the benefit using duplicate loop statement Pin
econy4-Jan-13 8:21
econy4-Jan-13 8:21 
GeneralRe: What is the benefit using duplicate loop statement Pin
Richard MacCutchan4-Jan-13 7:59
mveRichard MacCutchan4-Jan-13 7:59 
AnswerRe: What is the benefit using duplicate loop statement [solved] Pin
CPallini7-Jan-13 0:09
mveCPallini7-Jan-13 0:09 
AnswerRe: What is the benefit using duplicate loop statement [solved] Pin
Joe Woodbury7-Jan-13 11:19
professionalJoe Woodbury7-Jan-13 11:19 
QuestionIt's too slow to use the DrawDibDraw to draw a frame. Pin
yu-jian4-Jan-13 4:31
yu-jian4-Jan-13 4:31 
Questionhow to create font by unicode value? Pin
Falconapollo4-Jan-13 2:30
Falconapollo4-Jan-13 2:30 
AnswerRe: how to create font by unicode value? Pin
Richard MacCutchan4-Jan-13 4:23
mveRichard MacCutchan4-Jan-13 4:23 
Questionwhen writing file,dispaly a animation with avi Pin
haha_c3-Jan-13 23:51
haha_c3-Jan-13 23:51 
AnswerRe: when writing file,dispaly a animation with avi Pin
Rajesh R Subramanian4-Jan-13 1:04
professionalRajesh R Subramanian4-Jan-13 1:04 
GeneralRe: when writing file,dispaly a animation with avi Pin
haha_c4-Jan-13 15:34
haha_c4-Jan-13 15:34 
QuestionMS Visual Studio Express 2010, Cygwin, Eclipse together Pin
trinh.nguyen3-Jan-13 15:39
trinh.nguyen3-Jan-13 15:39 
AnswerRe: MS Visual Studio Express 2010, Cygwin, Eclipse together Pin
April Fans3-Jan-13 18:42
April Fans3-Jan-13 18:42 
AnswerRe: MS Visual Studio Express 2010, Cygwin, Eclipse together Pin
Richard MacCutchan3-Jan-13 23:33
mveRichard MacCutchan3-Jan-13 23:33 
Questiona "new" operator failed Pin
a_matseevsky3-Jan-13 8:41
a_matseevsky3-Jan-13 8:41 
AnswerRe: a "new" operator failed Pin
jschell3-Jan-13 9:06
jschell3-Jan-13 9:06 
GeneralRe: a "new" operator failed Pin
a_matseevsky3-Jan-13 9:50
a_matseevsky3-Jan-13 9:50 
AnswerRe: a "new" operator failed Pin
CPallini3-Jan-13 10:06
mveCPallini3-Jan-13 10:06 

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.