c - Determining if an integer is a perfect square in assembly (mips32) -
i know how in c. compute square root, take modulus 10 of square root. if modulus 0 it's perfect square.
but how can in assembly, since can't square root in it. there easier way?
have had @ newton's method?
http://en.wikipedia.org/wiki/newton's_method
and floating point registers in mips
http://en.wikipedia.org/wiki/mips_architecture#floating_point
and similar thread
finding square root of integer on mips assembly
have tried coding yourself? , assembly level?
thanks.
Comments
Post a Comment