Commit c09d8c14 authored by John Koleszar's avatar John Koleszar Committed by Code Review
Browse files

Merge "Fix documentation typos"

Showing with 6 additions and 6 deletions
...@@ -14,18 +14,18 @@ ...@@ -14,18 +14,18 @@
; /**************************************************************************** ; /****************************************************************************
; * Notes: ; * Notes:
; * ; *
; * This implementation makes use of 16 bit fixed point verio of two multiply ; * This implementation makes use of 16 bit fixed point version of two multiply
; * constants: ; * constants:
; * 1. sqrt(2) * cos (pi/8) ; * 1. sqrt(2) * cos (pi/8)
; * 2. sqrt(2) * sin (pi/8) ; * 2. sqrt(2) * sin (pi/8)
; * Becuase the first constant is bigger than 1, to maintain the same 16 bit ; * Because the first constant is bigger than 1, to maintain the same 16 bit
; * fixed point prrcision as the second one, we use a trick of ; * fixed point precision as the second one, we use a trick of
; * x * a = x + x*(a-1) ; * x * a = x + x*(a-1)
; * so ; * so
; * x * sqrt(2) * cos (pi/8) = x + x * (sqrt(2) *cos(pi/8)-1). ; * x * sqrt(2) * cos (pi/8) = x + x * (sqrt(2) *cos(pi/8)-1).
; * ; *
; * For the second constant, becuase of the 16bit version is 35468, which ; * For the second constant, because of the 16bit version is 35468, which
; * is bigger than 32768, in signed 16 bit multiply, it become a negative ; * is bigger than 32768, in signed 16 bit multiply, it becomes a negative
; * number. ; * number.
; * (x * (unsigned)35468 >> 16) = x * (signed)35468 >> 16 + x ; * (x * (unsigned)35468 >> 16) = x * (signed)35468 >> 16 + x
; * ; *
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment