| Electronic Components Datasheet Search |
|
PM0014 Datasheet(PDF) 14 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0014 Datasheet(HTML) 14 Page - STMicroelectronics |
|
14 / 46 page ![]() Arithmetic library functions PM0014 14/46 5.2.2 add_32 add_32 (short LeftOpMsb, short LeftOpLsb, short RightOpMsb, short RightOpLsb, long *Output) Description: Addition of two real 32-bit operands. Argument: LeftOpMsb Left operand most significant bits. LeftOpLsb Left operand least significant bits. RightOpMsb Right operand most significant bits. RightOpLsb Right operand least significant bits. Output Output pointer. Algorithm: LeftOp + RightOp = Output Note: Set the MS bit field of the MCW register to have a saturated result (signed arithmetic) Assembly source code: add_32.asm Code size and cycles: Size: 20 bytes Instruction cycles: 14 Test: Two files are provided to test the function: an input vector file (Add_32.in) and an output vector file (Add_32.res): Add_32.in is made as follows: LeftOpMsb1, LeftOpLsb1, RightOpMsb1, RightOpLsb1 LeftOpMsb2, LeftOpLsb2, RightOpMsb2, RightOpLsb2 ... Add_32.res is made as follows: OutputLsb1, OutputMsb1, OutputLsb2, OutputMsb2, ... |
|
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 |