Click here to Skip to main content
15,902,299 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Upsized database 100x slower in SQLServer Pin
Blake V. Miller12-Jul-05 17:14
Blake V. Miller12-Jul-05 17:14 
Questionwhich of these is the handle to my windowless app? Pin
awah7-Jul-05 21:45
awah7-Jul-05 21:45 
AnswerRe: which of these is the handle to my windowless app? Pin
khan++7-Jul-05 23:51
khan++7-Jul-05 23:51 
Generalproblem : strtok,strcpy,crashes when garbage strings are handled Pin
awah7-Jul-05 21:37
awah7-Jul-05 21:37 
GeneralRe: problem : strtok,strcpy,crashes when garbage strings are handled Pin
khan++7-Jul-05 23:47
khan++7-Jul-05 23:47 
GeneralRe: problem : strtok,strcpy,crashes when garbage strings are handled Pin
David Crow8-Jul-05 3:52
David Crow8-Jul-05 3:52 
GeneralRe: problem : strtok,strcpy,crashes when garbage strings are handled Pin
John R. Shaw8-Jul-05 9:32
John R. Shaw8-Jul-05 9:32 
Generalmmx help, Privileged instruction exception. Pin
Member 34198917-Jul-05 21:35
Member 34198917-Jul-05 21:35 
Here is code sample for 2 same sized arrays A and B correlation in mmx:


float f_x2temp[4],f_y2temp[4],f_valtemp[4];
float m_zero=0.0f;
float f_x,f_y, f_x2=0.0f,f_y2=0.0f, f_val=0.0f;

__m128 *mA, *mB;
__m128 meanA,meanB, m_x,m_y, m_x2,m_y2, m_val;


m_val = _mm_load_ss(&m_zero);
m_x2 = _mm_load_ss(&m_zero);
m_y2 = _mm_load_ss(&m_zero);
meanA = _mm_load_ps1(&A->m_mean);
meanB = _mm_load_ps1(&B->m_mean);

for(int j=0; j<a->m_height; j++)
{
mA = (__m128 *)&A->m_rdata[j][0];
mB = (__m128 *)&B->m_rdata[j][0];

for(int i=0; i<a->m_width/4; i++)
{
m_x = _mm_sub_ps(*mA++,meanA);
m_y = _mm_sub_ps(*mB++,meanB);
m_val = _mm_add_ps(m_val, _mm_mul_ps(m_x,m_y));

m_x2 = _mm_add_ps(m_x2, _mm_mul_ps(m_x,m_x));
m_y2 = _mm_add_ps(m_y2, _mm_mul_ps(m_y,m_y));
}

}


but after first iteration of this instruction "m_x = _mm_sub_ps(*mA++,meanA);"
I get "Unhandled exception at 0x0041ff76 in myapp.exe: 0xC0000096: Privileged instruction." in "m_y = _mm_sub_ps(*mB++,meanB);" instruction what's wrong? Its not a memory failure access exception everything ok with A and B data buffers

9ine
GeneralRe: mmx help, Privileged instruction exception. Pin
Member 34198917-Jul-05 22:52
Member 34198917-Jul-05 22:52 
QuestionIs it possible to replace tab buttons in the tab control by a bitmap? Pin
Asha Udupa7-Jul-05 20:48
Asha Udupa7-Jul-05 20:48 
AnswerRe: Is it possible to replace tab buttons in the tab control by a bitmap? Pin
ThatsAlok7-Jul-05 21:38
ThatsAlok7-Jul-05 21:38 
QuestionProblem about Drag in TreeCtrl? Pin
sharkmouse7-Jul-05 19:44
sharkmouse7-Jul-05 19:44 
AnswerRe: Problem about Drag in TreeCtrl? Pin
Nilesh K.7-Jul-05 20:15
Nilesh K.7-Jul-05 20:15 
GeneralUNICODE Pin
John R. Shaw7-Jul-05 17:17
John R. Shaw7-Jul-05 17:17 
GeneralRe: UNICODE Pin
Jose Lamas Rios7-Jul-05 18:09
Jose Lamas Rios7-Jul-05 18:09 
GeneralRe: UNICODE Pin
John R. Shaw8-Jul-05 8:47
John R. Shaw8-Jul-05 8:47 
GeneralRe: UNICODE Pin
Jose Lamas Rios8-Jul-05 10:10
Jose Lamas Rios8-Jul-05 10:10 
GeneralRe: UNICODE Pin
John R. Shaw8-Jul-05 10:55
John R. Shaw8-Jul-05 10:55 
GeneralRe: UNICODE Pin
toxcct7-Jul-05 20:21
toxcct7-Jul-05 20:21 
GeneralRe: UNICODE Pin
John R. Shaw8-Jul-05 7:09
John R. Shaw8-Jul-05 7:09 
GeneralRe: UNICODE Pin
Bob Stanneveld7-Jul-05 22:03
Bob Stanneveld7-Jul-05 22:03 
GeneralRe: UNICODE Pin
John R. Shaw8-Jul-05 8:39
John R. Shaw8-Jul-05 8:39 
GeneralRe: UNICODE Pin
Bob Stanneveld9-Jul-05 5:48
Bob Stanneveld9-Jul-05 5:48 
Generalrget r, g or b value for opengl Pin
cell517-Jul-05 16:27
cell517-Jul-05 16:27 
GeneralRe: rget r, g or b value for opengl Pin
Jose Lamas Rios7-Jul-05 16:44
Jose Lamas Rios7-Jul-05 16:44 

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.