diff --git a/README.md b/README.md index a012cb43f46c0cc798a37614dab3b71ca03a8273..4eeb00a25019bd2fdb1cd0588ae79684d9377ca4 100644 --- a/README.md +++ b/README.md @@ -195,4 +195,20 @@ ~~~ ((fixed32)(((fa>>8)*(fb>>8))>>16)) ~~~ - 1. 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 + 1. Same as above, the same fuction as fa*fb>>32, first multiply fa/2^8, fb/2^8, and divide the remaining 2^16 +- a. div + - fx32_div + ~~~ + (fixed32)( (((fixed64)(fa) << FX32_QNUM) /(fb))) + ~~~ + 1. fuction that multiplies fa by 2^32 and divides fb. + - fx32_div1 + ~~~ + ((((fa)<<16)/(fb))<<16) + ~~~ + 1. Same as above, it has the same fuction as (fa<<32)/fb. First, fa is multiplied by 2^16 and divided by fb, and then the remaining 2^16 is multiplied + - fx32_div2 + ~~~ + ((((fa)<<24)/(fb))<<8) + ~~~ + 1. same as above, it has the same fuction as (fa<<32)/fb. First, fa is multiplied by 2^24, divided by fb, and then the remaining 2^8 is multiplied. \ No newline at end of file