^ (powers) on FPU?
Hi,
I have a very simple question. I wnated to do a ^ (power) on the fpu but the only function that has SOMETHING to do with powers is fscale but it only does a add or sub on the exponent. So how DO I perform a ^ (power) on the FPU? any one?
EOT MR Master
EOT MR Master
hopefully this is what you are talking about..
Try the function called "pow".
-Lucas
-Dieraxx@programmer.net
Try the function called "pow".
-Lucas
-Dieraxx@programmer.net
-Lucas
f2xm1
--> st(0) = 2^st(0) - 1
GA
--> st(0) = 2^st(0) - 1
GA
Visit our homepage: www.rarebyte.de.stGA
hummm.....
Syntax: I was more or less hinting towards asm and not c.... but thanx any way.
Ga: I know what this does and you can also use fscale. but this is like 2^st(0), and I was hoping to find something that would do
st(0) ^ st(1)
I guess I'll just rip apart a vbdos lib for the pow function....
EOT MR Master
Edited by - Mr_Master on September 8, 2000 10:37:57 AM
Syntax: I was more or less hinting towards asm and not c.... but thanx any way.
Ga: I know what this does and you can also use fscale. but this is like 2^st(0), and I was hoping to find something that would do
st(0) ^ st(1)
I guess I'll just rip apart a vbdos lib for the pow function....
EOT MR Master
Edited by - Mr_Master on September 8, 2000 10:37:57 AM
EOT MR Master
x^y = a^(log
so x^y = 2^(log2(x)*y)
and you get st(1)*log2(st(0)) with
fyl2x
GA
a
(x)*y)so x^y = 2^(log2(x)*y)
and you get st(1)*log2(st(0)) with
fyl2x
GA
Visit our homepage: www.rarebyte.de.stGA
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement