diff --git a/README.md b/README.md index f0a71a60f2c793c57c5833ccfa98fde30255da4c..7b7c56c47542abdd5784e737c0c71d70ec97b344 100644 --- a/README.md +++ b/README.md @@ -174,3 +174,25 @@ ~~~ # project - STEP 2 +### 1. list of functions +- a. MUL ( x ) +- b. DIV ( / ) +- c. SINE + +### 2. explanation of fuctions +- a. mul + - fx32_mul + ~~~ + (fixed32)((fa * fb) >> FX32_QNUM ) + ~~~ + - fuction that multiplies fa and fb and divides it by 2^32 + - fx32_mul1 + ~~~ + ((fixed32)(((fa>>16) * fb)>>16)) + ~~~ + - Same as fx32_mul, the same fuction as fa*fb>>32, first multiply fa/2^16 and fb, and divide the remaining 2^16 + - fx32_mul2 + ~~~ + ((fixed32)(((fa>>8)*(fb>>8))>>16)) + ~~~ + - Same as above, the same fuction as fa*fb>>32, first multiply fa/2^8, fb/2^8, and divide the remaining 2^16 \ No newline at end of file