Memory block calculations : optimize?
Posted: Mon Aug 01, 2005 12:07 am
				
				I want to optimize a process in a realtime thread. 
The process takes a pointer to a memory block of variable length. (between 1 and 64k)
This memory block is filled with 32bit floats (between 0 and 1)
Every float has to be multiplied by a constant value -> [2^x], where x >0 and x<32)
Somebody any idea what could be the fastest routine?
Now I do it in a for next loop with peek and poke, but there must be a faster way in fasm...(storing the constant in a register first...)
Anybody knows how (perhaps by using some SSE registers?)
(i am a asm newbie)
			The process takes a pointer to a memory block of variable length. (between 1 and 64k)
This memory block is filled with 32bit floats (between 0 and 1)
Every float has to be multiplied by a constant value -> [2^x], where x >0 and x<32)
Somebody any idea what could be the fastest routine?
Now I do it in a for next loop with peek and poke, but there must be a faster way in fasm...(storing the constant in a register first...)
Anybody knows how (perhaps by using some SSE registers?)
(i am a asm newbie)