When using PBWin for geometry calculation, we often deal with formula like
y = a + b*x² or y = a + b*x + c*x³
Calculation written in PBWin 'yval# = aval# + bval# * xval#^2' seems compiled as power function when using only FMUL for FPU should be much faster.
So I write 'yval# = aval# + bval# * xval# * xval#' but compiled program will access the same variable memory two times when xval# is already in the FPU registers.
What is your thinking about a Power2() and Power3() function ?
(forwarded to [email protected])
y = a + b*x² or y = a + b*x + c*x³
Calculation written in PBWin 'yval# = aval# + bval# * xval#^2' seems compiled as power function when using only FMUL for FPU should be much faster.
So I write 'yval# = aval# + bval# * xval# * xval#' but compiled program will access the same variable memory two times when xval# is already in the FPU registers.
What is your thinking about a Power2() and Power3() function ?
(forwarded to [email protected])
Comment