more comments on fixed point

This commit is contained in:
~d6 2022-02-04 00:43:32 -05:00
parent 89bdbd7cb0
commit ce43eadabd
1 changed files with 7 additions and 0 deletions

View File

@ -5,6 +5,13 @@
( )
( x = x0 + x1/256 )
( y = y0 + y1/256 )
( )
( many 8.8 operations are equivalent to u16: )
( * comparisons/equality )
( * addition/subtraction )
( )
( but due to 16-bit truncation multiplication is different. )
( )
( x*y = x0*y0 + x0*y1/256 + x1*y0/256 + x1*y1/65536 )
( )
( since we only have 16-bits: )