Optimized Stack Operations
|
03-03-2019, 08:32 AM
Post: #28
|
|||
|
|||
RE: Optimized Stack Operations
The multiplication and division using CMULT will pull in the maths routines.
Better would be to decompose and recompose the double into its mantissa and exponent using a union or byte operations. A shift by 20 bits will give the six digits you're after. Alternatively, store your "reals" as pairs of integers: Code: struct real_st { and use integer operations exclusively. Pauli |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)