Click here to Skip to main content
16,012,759 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Multiline edit box ?? Pin
David Crow25-Jun-04 9:00
David Crow25-Jun-04 9:00 
AnswerRe: Multiline edit box ?? Pin
Christopher Lloyd25-Jun-04 9:02
Christopher Lloyd25-Jun-04 9:02 
AnswerRe: Multiline edit box ?? Pin
Ravi Bhavnani26-Jun-04 4:55
professionalRavi Bhavnani26-Jun-04 4:55 
Questionsse2 intrinsics question? Pin
Anand RK25-Jun-04 7:57
Anand RK25-Jun-04 7:57 
AnswerRe: sse2 intrinsics question? Pin
Christopher Lloyd25-Jun-04 10:05
Christopher Lloyd25-Jun-04 10:05 
GeneralRe: sse2 intrinsics question? Pin
Anand RK25-Jun-04 11:20
Anand RK25-Jun-04 11:20 
GeneralRe: sse2 intrinsics question? Pin
Anand RK25-Jun-04 15:08
Anand RK25-Jun-04 15:08 
GeneralRe: sse2 intrinsics question? Pin
Christopher Lloyd25-Jun-04 15:08
Christopher Lloyd25-Jun-04 15:08 
As far as I know there's no method of dereferencing the contents of an XMM register so you're only solution will be to 'manually' extract the addresses, dereference them, and then 'manually' build your new XMM register - this is effectively what you're suggesting. Of course you can keep the addresses in registers to avoid the memory read/write hit you mention but it's still not a great solution. For example:

movd eax, xmm0 //eax is now the address in the lowest 32 bits of xmm0
mov ebx, [eax] //ebx is whatever eax was pointing at
movd xmm1, ebx //low dword of xmm1 = *(low dword of xmm0)

repeating this with some packed rotations to get/set all the data in the xmm registers. (Sorry for the assembler - I don't actually use intrinsics)

Perhaps you need to look at the overall algorithm to see whether there's a method which avoids ending up with your addresses in an XMM register...

Not sure I've been much help really - if you find an elegant solution I'd be interested!

Cheers,
Chris.
GeneralFileDialog and ActiveX Pin
TUMB25-Jun-04 7:40
TUMB25-Jun-04 7:40 
GeneralOpen Excutable Program in VC Pin
mostafa_pasha25-Jun-04 7:34
mostafa_pasha25-Jun-04 7:34 
GeneralRe: Open Excutable Program in VC Pin
User 665825-Jun-04 7:50
User 665825-Jun-04 7:50 
Generalinline vs macro Pin
BengCésar25-Jun-04 5:10
BengCésar25-Jun-04 5:10 
GeneralRe: inline vs macro Pin
Antony M Kancidrowski25-Jun-04 6:23
Antony M Kancidrowski25-Jun-04 6:23 
GeneralRe: inline vs macro Pin
David Crow25-Jun-04 6:49
David Crow25-Jun-04 6:49 
GeneralRe: inline vs macro Pin
BengCésar25-Jun-04 7:31
BengCésar25-Jun-04 7:31 
GeneralRe: inline vs macro Pin
vladfein25-Jun-04 7:57
vladfein25-Jun-04 7:57 
GeneralRe: inline vs macro Pin
David Crow25-Jun-04 7:59
David Crow25-Jun-04 7:59 
GeneralSend RST flag in the TCP Header, using Winsock API or others Pin
sundareswaran.senthilvel25-Jun-04 4:59
professionalsundareswaran.senthilvel25-Jun-04 4:59 
GeneralClasswizard Crash in Visual C++ 6 on XP Pin
kassad66625-Jun-04 4:24
kassad66625-Jun-04 4:24 
GeneralRe: Classwizard Crash in Visual C++ 6 on XP Pin
John M. Drescher25-Jun-04 4:43
John M. Drescher25-Jun-04 4:43 
GeneralRe: Classwizard Crash in Visual C++ 6 on XP Pin
kassad66625-Jun-04 5:02
kassad66625-Jun-04 5:02 
GeneralCDialogBars and buttons availability Pin
Anonymous25-Jun-04 3:56
Anonymous25-Jun-04 3:56 
GeneralCrashes in release but not in debug Pin
CptGreenwood25-Jun-04 2:40
CptGreenwood25-Jun-04 2:40 
GeneralRe: Crashes in release but not in debug Pin
David Crow25-Jun-04 4:12
David Crow25-Jun-04 4:12 
GeneralRe: Crashes in release but not in debug Pin
CptGreenwood26-Jun-04 4:51
CptGreenwood26-Jun-04 4:51 

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.