Skip to content
Snippets Groups Projects
Commit c8a7acbe authored by baewoojin's avatar baewoojin
Browse files

Update README.md

parent 1060182b
Branches
No related tags found
No related merge requests found
...@@ -199,7 +199,7 @@ ...@@ -199,7 +199,7 @@
- b. div - b. div
- fx32_div - fx32_div
~~~ ~~~
(fixed32)( (((fixed64)(fa) << FX32_QNUM) /(fb))) ( (((fixed64)(fa) << FX32_QNUM) /(fb)))
~~~ ~~~
1. fuction that multiplies fa by 2^32 and divides fb. 1. fuction that multiplies fa by 2^32 and divides fb.
- fx32_div1 - fx32_div1
...@@ -250,6 +250,28 @@ ...@@ -250,6 +250,28 @@
} }
~~~ ~~~
- with using sine table and sine function can derive the appropriate sine value. - with using sine table and sine function can derive the appropriate sine value.
- there are four part in sine function because it is divided from the 1st quadrant to the 4th quadrant according to the sine value.
- a. angle with negative value
~~~
if ( fa < 0 )
{
sign = -1;
fa *= -1;
}
~~~
- b. 3th, 4th quadrant
~~~
if ( fa >= FX32_180 )
{
sign *= -1;
fa -= FX32_180;
}
~~~
- c. 2th quadrant
~~~
if ( fa > FX32_90 )
fa = FX32_180 - fa;
~~~
### 3. speed vertification review ### 3. speed vertification review
- a. mul - a. mul
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment