Click here to Skip to main content
15,914,074 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Reading text file using ifstream Pin
toxcct5-Dec-05 23:56
toxcct5-Dec-05 23:56 
GeneralRe: Reading text file using ifstream Pin
grero6-Dec-05 0:12
grero6-Dec-05 0:12 
GeneralRe: Reading text file using ifstream Pin
toxcct6-Dec-05 1:10
toxcct6-Dec-05 1:10 
GeneralRe: Reading text file using ifstream Pin
grero6-Dec-05 1:29
grero6-Dec-05 1:29 
AnswerRe: Reading text file using ifstream Pin
kakan6-Dec-05 0:02
professionalkakan6-Dec-05 0:02 
AnswerRe: Reading text file using ifstream Pin
S. Senthil Kumar6-Dec-05 4:10
S. Senthil Kumar6-Dec-05 4:10 
GeneralRe: Reading text file using ifstream Pin
grero6-Dec-05 8:28
grero6-Dec-05 8:28 
Questionmmx vs. floating point Pin
9ine5-Dec-05 23:38
9ine5-Dec-05 23:38 
I need to get my floating points calculation to run faster, the floating point numbers stored in instances of some class in vector<class> array I just need to multiply them and add result:

class{
float val1;
float val2;
};

for(i=0; i<size; i++)
="" res="" +="class[i]-">val1 * class[i]->val2;

will it be faster to store floating numbers from vector massive to plain floating array

float *ar1, *ar2;
for(i=0; i<size; i++)
="" ar1[i]="class[i]-">val1;
ar2[i] = class[i]->val2;

and then perform mmx calculations or memory moving ops will take also some time so there will be no significant speed increase? Or will it be faster to use compound intrinsics to load floating numbers to float[4] and then perform multiplication?

If some one encountered similar problem?

9ine
AnswerRe: mmx vs. floating point Pin
Chris Losinger6-Dec-05 2:11
professionalChris Losinger6-Dec-05 2:11 
GeneralRe: mmx vs. floating point Pin
9ine6-Dec-05 3:02
9ine6-Dec-05 3:02 
GeneralRe: mmx vs. floating point Pin
Chris Losinger6-Dec-05 4:03
professionalChris Losinger6-Dec-05 4:03 
GeneralRe: mmx vs. floating point Pin
9ine7-Dec-05 3:40
9ine7-Dec-05 3:40 
Questionchanging mouse pointer at button click in vc++ Pin
Member 15877415-Dec-05 23:29
Member 15877415-Dec-05 23:29 
AnswerRe: changing mouse pointer at button click in vc++ Pin
ThatsAlok6-Dec-05 0:48
ThatsAlok6-Dec-05 0:48 
QuestionLPTSTR to float Pin
paper675-Dec-05 23:25
paper675-Dec-05 23:25 
AnswerRe: LPTSTR to float Pin
Cool Ju5-Dec-05 23:36
Cool Ju5-Dec-05 23:36 
GeneralRe: LPTSTR to float Pin
paper675-Dec-05 23:51
paper675-Dec-05 23:51 
GeneralRe: LPTSTR to float Pin
Cool Ju5-Dec-05 23:58
Cool Ju5-Dec-05 23:58 
GeneralRe: LPTSTR to float Pin
paper676-Dec-05 0:08
paper676-Dec-05 0:08 
AnswerRe: LPTSTR to float Pin
Member 15877415-Dec-05 23:45
Member 15877415-Dec-05 23:45 
GeneralRe: LPTSTR to float Pin
paper675-Dec-05 23:53
paper675-Dec-05 23:53 
AnswerRe: LPTSTR to float Pin
ThatsAlok6-Dec-05 0:53
ThatsAlok6-Dec-05 0:53 
GeneralRe: LPTSTR to float Pin
paper676-Dec-05 2:49
paper676-Dec-05 2:49 
GeneralRe: LPTSTR to float Pin
ThatsAlok6-Dec-05 2:55
ThatsAlok6-Dec-05 2:55 
AnswerRe: LPTSTR to float Pin
Bob Ciora6-Dec-05 1:16
Bob Ciora6-Dec-05 1:16 

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.