| 数据搜索系统,热门电子元器件搜索 |
|
PM0014 数据表(PDF) 13 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0014 数据表(HTML) 13 Page - STMicroelectronics |
|
13 / 46 page ![]() PM0014 Arithmetic library functions 13/46 5 Arithmetic library functions 5.1 Overview In this part, principal arithmetic functions for C programmers on ST10 are presented. For each operation, four function types have been created according to parameters: ● Real parameters in single precision, ● Real parameters in double precision, ● Complex parameters in single precision, ● Complex parameters in double precision. Code size results will be given in bytes and performance ones in instruction cycles (1 instruction cycle is equal to two ST10 CPU clock cycles). 5.2 Addition 5.2.1 add_16 add_16 (short Op1, short Op2, short *Output) Description: Addition of two real 16-bit inputs. Argument: Op1 Op2 Output Left operand Right operand Output pointer Algorithm: Op1 + Op2 = Output Assembly source code: add_16.asm Code size and cycles: Size: 6 bytes Instruction cycles: 10 Test: Two files are provided to test the function: an input vector file (Add_16.in) and an output vector file (Add_16.res): Add_16.in is made as follows: Left operand1, Right operand1, Left operand2, Right operand2, ... Add_16.res is made as follows: Output operand1, Output operand2, ... |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |