| Electronic Components Datasheet Search |
|
PM0014 Datasheet(PDF) 26 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0014 Datasheet(HTML) 26 Page - STMicroelectronics |
|
26 / 46 page ![]() Arithmetic library functions PM0014 26/46 5.5.2 div_q63_q31_q31 div_q63_q31_q31 (short LeftOpMsb, short LeftOp2b, short LeftOp3b, short LeftOpLsb,short RightOpMsb, short RightOpLsb, long *Output) Description: Division of two real fractional inputs. Dividend is on 64 bits, divisor on 32 bits and quotient on 32 bits. Argument: LeftOpMsb Left operand most significant bits high. LeftOp2b Left operand most significant bits low. LeftOp3b Left operand least significant bits high. LeftOpLsb Left operand least significant bits low. RightOpMsb Right operand most significant bits. RightOpLsb Right operand least significant bits. 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 made by this routine. The algorithm implemented does not allow integer division. For dividing two integers (dividend in 64.0 format and divisor in 32.0), shift the dividend one bit to the left (into 63.1 format) before dividing. Assembly source code: div_q63_q31_q31.asm Code size and cycles: Size: 204 bytes Instruction cycles: 892 Test: Two files are provided to test the function: an input vector file (div_q63_q31_q31.in) and an output vector file (div_q63_q31_q31.res): div_q63_q31_q31.in is made as follows: LeftOpMsb1, LeftOp2b1, LeftOp3b1, LeftOpLsb1, RightOpMsb1, RightOpLsb1 ... div_q63_q31_q31.res is made as follows: Output1, ... |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |