Matrix Multiplication using Assembly
Does anybody know how you could multiply two matrices (with any width and height for either) using assembly code? If not does anyone have any good resources on Assembly(websites and such) so I can optimize my own code??? Thanks!
"Artificial Intelligence: the art of making computers that behave like the ones in movies."www.CodeFortress.com
developer.intel.com
Up there you''ll find code using SSE, SSE2 and straight FPU code.
Alternatively, use a maths library which is already optimised. Intel have one, AMD have one, plus libraries like D3DX also contain optimised routines.
Do be sure though to identify the need for an optimised matrix multiply before you start "hand optimising" - profile to determine what percentage of time in your code is being spent multiplying matrices - look into any areas with higher percentages before you start clutching at straws...
--
Simon O''Connor
Creative Asylum Ltd
www.creative-asylum.com
Up there you''ll find code using SSE, SSE2 and straight FPU code.
Alternatively, use a maths library which is already optimised. Intel have one, AMD have one, plus libraries like D3DX also contain optimised routines.
Do be sure though to identify the need for an optimised matrix multiply before you start "hand optimising" - profile to determine what percentage of time in your code is being spent multiplying matrices - look into any areas with higher percentages before you start clutching at straws...
--
Simon O''Connor
Creative Asylum Ltd
www.creative-asylum.com
Simon O'Connor | Technical Director (Newcastle) Lockwood Publishing | LinkedIn | Personal site
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement