[an error occurred while processing this directive]
|
sqrt_16 Square Root of a 16-bit Number
E-mail:
info@telesys.ru
short oflag = sqrt_16 (DATA *x, DATA *r, short nx)
(defined in sqrtv.asm)
Arguments: x[nx] Pointer to input vector of size nx
r[nx] Pointer to output vector of size nx containing the sqrt(x). In-place operation
is allowed (r can be equal to x).
nx Number of elements of input and output vectors
oflag Overflow flag
· If oflag = 1 a 32-bit overflow has occurred
· If oflag =0 a 32-bit overflow has not occurred
Description: Calculates the square root for each element in input vector x, storing results in output
vector r.
Algorithm: for (i=0; i
Overflow Handling Methodology: Not applicable
Special Requirements: None
Implementation Notes: None
Example: See examples/sine subdirectory
Benchmarks:
Cycles Core:
42*nx
Overhead 41
Code size (in 16-bit words) 68
Ответы