Packed mul of floating point values in 8087?
From: Bad Maniac (spamtrap_at_crayne.org)
Date: 09/18/04
- Next message: alex: "unsigned long -> ascii conversion"
- Previous message: Percival : "Re: No wars"
- Next in thread: Matt: "Re: Packed mul of floating point values in 8087?"
- Reply: Matt: "Re: Packed mul of floating point values in 8087?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 18 Sep 2004 03:33:55 +0000 (UTC)
I came across a situation that would benefit incredibly by being able to do
a packed mul of floats, similar to pmul on ints in MMX. Problem is my target
platform only has MMX, no SIMD or SSE.
So, is there any instruction on the standard 8087 that would allow me to do
packed multiplication of floats?
What I will do is split up a value in it's three component bytes, and
multiply each byte by the same floating point value. (I'm doing bilinear
interpolation)
I will have a 32 bit register looking like this:
XXXXXXXX.00000000.11111111.22222222
X is dummy, 0,1 and 2 are the separate bytes.
I also have a floating point value between 0.0 and 1.0.
I can under no circumstances have overflow, so the instruction needs to work
on bytes.
Is there any thing at all like this in the standard 8086 instructions? Or is
there a trick of some kind to achieve this? I've been looking around the net
for a while but can't seem to find anything on the subject, so I come to the
masters ;)
- Next message: alex: "unsigned long -> ascii conversion"
- Previous message: Percival : "Re: No wars"
- Next in thread: Matt: "Re: Packed mul of floating point values in 8087?"
- Reply: Matt: "Re: Packed mul of floating point values in 8087?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]