User Tools

Site Tools


base:kernal_floating_point_mathematics

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
base:kernal_floating_point_mathematics [2016-02-06 01:05] – [Movement] malcontentbase:kernal_floating_point_mathematics [2016-02-06 01:17] malcontent
Line 249: Line 249:
  
 ====== Optimising ====== ====== Optimising ======
 +
 +===== Multiply =====
 +
 +Numerous advantages are gained improving the speed of the multiply. Routines that rely on it can be copied from the ROM and pointed to the new routine to improve performance. The following example relies on the Steve Judd's fast multiplication and reduces the number of cycles to multiply from around 2300 to little over 1400.
 +
 +[[Fast Floating Point Multiply]]
  
 ===== Movement ===== ===== Movement =====
Line 396: Line 402:
 Doing log(exp(8)) = 7.99999624\\ Doing log(exp(8)) = 7.99999624\\
    
-If we do exponentiation with our new routines like the Kernal does (y<sup>x</sup> = exp(x*log(y))) for 8<sup>8</sup> we get 16777148.6, while the Kernal routines return 16777216, which is a little closer to the true value of 16777224.+If we do exponentiation with our new routines like the Kernal does (y<sup>x</sup> = exp(x*log(y))) for 8<sup>8</sup> we get 16777148.6, while the true value is 16777224.
  
 ===== Faster Square Root ===== ===== Faster Square Root =====
base/kernal_floating_point_mathematics.txt · Last modified: 2020-12-06 20:48 by pararaum