more comments on fixed point
This commit is contained in:
parent
89bdbd7cb0
commit
ce43eadabd
|
@ -5,6 +5,13 @@
|
||||||
( )
|
( )
|
||||||
( x = x0 + x1/256 )
|
( x = x0 + x1/256 )
|
||||||
( y = y0 + y1/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 )
|
( x*y = x0*y0 + x0*y1/256 + x1*y0/256 + x1*y1/65536 )
|
||||||
( )
|
( )
|
||||||
( since we only have 16-bits: )
|
( since we only have 16-bits: )
|
||||||
|
|
Loading…
Reference in New Issue