[Message Deleted]
-
kevinxli wrote:
I want to use SSE
What parts of your code do you want to do this to? Have you looked at compiler flags to use SSE instructions?
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
-
Which SSE do you want to use?
- S 50 cups of coffee and you know it's on!
-
kevinxli wrote:
I want to use SSE
What parts of your code do you want to do this to? Have you looked at compiler flags to use SSE instructions?
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
-
Paul Conrad wrote:
What parts of your code do you want to do this to?
ConvertRGB2HSV(...) is too slow.I want to rewrite this function using SSE (C++ code with inline Assembly ,like as: _asm{ movaps xmm1,xmm2 ... })
Have you tried with the
/arch:SSE
flag set with full optimization? Sometimes it is easier to try and let the compiler do this kind of dirty work. If it doesn't increase the performance, then look into some inline assembly. I would only do the inline assembly where the code bottlenecks the worst. ---modified You could try to unroll the two for loops for better cache utilization, as another thought :-D"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
-
Have you tried with the
/arch:SSE
flag set with full optimization? Sometimes it is easier to try and let the compiler do this kind of dirty work. If it doesn't increase the performance, then look into some inline assembly. I would only do the inline assembly where the code bottlenecks the worst. ---modified You could try to unroll the two for loops for better cache utilization, as another thought :-D"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
-
Paul Conrad wrote:
Have you tried with the /arch:SSE flag set with full optimization?
My compiler is VC6(SP5),not support this flag:doh: if like as "_asm{ movaps xmm1,xmm2 ...}" ,will Okey!(I'm sorry for my poor English)
Have you been able to do inline assembly with SSE instructions under VC6 before?
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
-
Have you been able to do inline assembly with SSE instructions under VC6 before?
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
-
Paul Conrad wrote:
Have you been able to do inline assembly with SSE instructions under VC6 before?
Of course!
Okay, cool. I'd start chipping away small bits with inline assembly and see where it goes.
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus