Sqaure root function in assembly language:

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Sqaure root function in assembly language:

Jump to solution
2,306 Views
RohitSinghal
NXP Employee
NXP Employee
Hi,
 
In order to handle performance issue, i require assembly code for sqaure root function that will boost the
over all system performance providing better results.
 
Regds,
Rohit
 
 
Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
886 Views
CompilerGuru
NXP Employee
NXP Employee
There are a few important details missing in the question.
First, for which processor is this, for a S08 or S12 (or XGATE or RS08 or CF)?
Then on which kind of values (floating point, int, long, limited value range, complex numbers,...)?
ANSI C provides a floating point one only, so if you need an integral one, then
here's a C implementation by bigmac using a new Newton algorithm:

http://forums.freescale.com/freescale/board/message?board.id=16BITCOMM&message.id=6411


Daniel


View solution in original post

0 Kudos
Reply
2 Replies
887 Views
CompilerGuru
NXP Employee
NXP Employee
There are a few important details missing in the question.
First, for which processor is this, for a S08 or S12 (or XGATE or RS08 or CF)?
Then on which kind of values (floating point, int, long, limited value range, complex numbers,...)?
ANSI C provides a floating point one only, so if you need an integral one, then
here's a C implementation by bigmac using a new Newton algorithm:

http://forums.freescale.com/freescale/board/message?board.id=16BITCOMM&message.id=6411


Daniel


0 Kudos
Reply
886 Views
RohitSinghal
NXP Employee
NXP Employee
Thanks for the info.,
 
This code is required for flexis AC series of controller for S08 as well as CF processor.
 
It is basicly used for handling floating point numbers.
 
Regds,
Rohit
0 Kudos
Reply