| 전자부품 데이터시트 검색엔진 |
|
PM0014 데이터시트(PDF) 25 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0014 데이터시트(HTML) 25 Page - STMicroelectronics |
|
25 / 46 page ![]() PM0014 Arithmetic library functions 25/46 5.5 Division 5.5.1 div_q31_q15_q15 div_q31_q15_q15 (short LeftOpMsb, short LeftOpLsb, short RightOp, short *Output). Description: Division of two real fractional inputs. Dividend is on 32 bits, divisor on 16 bits and quotient on 16 bits. Argument: LeftOpMsb Left operand most significant bits. LeftOpLs Left operand least significant bits. RightOp Right operand. Output Output pointer. Algorithm: LeftOp / RightOp = Output Note: The dividend must be smaller than the divisor for a valid result. Divisions on limits (for example, division of 1 by 1 or of -1 by -1) are not computed by this routine. The algorithm implemented does not allow integer division. For dividing two integers (dividend in 32.0 format and divisor in 16.0), shift the dividend one bit to the left (into 31.1 format) before dividing. Assembly source code: div_q31_q15_q15.asm Code size and cycles: Size: 98 bytes Instruction cycles: 216 Test: Two files are provided to test the function: an input vector file (div_q31_q15_q15.in) and an output vector file (div_q31_q15_q15.res): div_q31_q15_q15.in is made as follows: LeftOpMsb1, LeftOpLsb1, RightOp1 ... div_q31_q15_q15.res is made as follows: Output1, ... |
|
링크 URL |
| 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 |