I want to calculate base^exponent in assembly.
This is my attempt to solve the problem, but I am not sure that the algorithm is correct
finit
fld qword ptr [base]
fld qword ptr [exponent]
fldln2
fyl2x
fmulp
fld1
fld st(1)
f2xm1
faddp