MASM32 Downloads
thanks is very useful. :icon14: anyone can bring me more especific examples of using logarithmic instructions in fpu??
so im trying to find another example like this http://www.ray.masmcode.com/tutorial/fpuchap13.htm , to understand the logic of the program using logarithmic instructions
What did you not understand: the mathematics or it's implementation?
logb(a) = logc(a) / logc(b)
fld FP8(0.301029995663981) ; 1/log2(10)fld FP8(0.001) ; test value = 10^-3fyl2xfstp realVar ; = log(0.001) = log2(0.001)/log2(10) = -3;OR: log(x) = log10(2)*log2(x)fldlg2fld FP8(0.001)fyl2xfstp realVar