[an error occurred while processing this directive]
Почитайте SPRA480b, страница 88. Должно помочь
(«Телесистемы»: Конференция «Цифровые сигнальные процессоры (DSP) и их применение»)

миниатюрный аудио-видеорекордер mAVR

Отправлено AntZ 05 марта 2003 г. 18:26
В ответ на: Там корявый ответ какой то ... не соответствуетзапиханному в стек .. даже рядом не лежит отправлено Neposeda 05 марта 2003 г. 16:51

sqrt_16 Square Root of a 16-bit Number
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; ir[i] = sqrt(x(i)) where 0<=i <=nx
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

Составить ответ  |||  Конференция  |||  Архив

Ответы


Отправка ответа

Имя (обязательно): 
Пароль: 
E-mail: 

Тема (обязательно):
Сообщение:

Ссылка на URL: 
Название ссылки: 

URL изображения: 


Перейти к списку ответов  |||  Конференция  |||  Архив  |||  Главная страница  |||  Содержание  |||  Без кадра

E-mail: info@telesys.ru