d3dx8 math implementation + tests: use more "," instead of ";".

Lionel Debroux lionel_debroux at yahoo.fr
Fri Oct 26 04:33:37 CDT 2007


I noticed several "," in the implementation and tests of D3DX8 math functions. I added more, since
this may help the auto-vectorizer of some compilers noticing that x86 SIMD could be used.
(That said, I saw little change in the assembly code when using GCC 4.1.x from Debian stable at
-O3 -mfpmath=sse -march=nocona. Adding __attribute__((aligned(16))) just for testing yields no
change in the generated code.)

I also modified D3DXMatrixIsIdentity to exit the loop as soon as the matrix is found to be
different from identity.

With the modifications, the d3dx8 tests still pass.

2007-10-26  Lionel Debroux <lionel_debroux at yahoo.fr>
        * include/d3dx8math.inl, dlls/d3dx8/tests/math.c:
        d3dx8 math implementation + tests: use more "," instead of ";".


      _____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-d3dx8-math-implementation-tests-use-more-inst.patch
Type: text/x-diff
Size: 0 bytes
Desc: 1151119914-0002-d3dx8-math-implementation-tests-use-more-inst.patch
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20071026/b5d08d57/attachment-0001.patch 


More information about the wine-patches mailing list