开发者

how to make multiplication in Kernel Linux?

开发者 https://www.devze.com 2023-02-28 11:04 出处:网络
everyone I\'m interested how can I make multiplication the best way in Linux Kernel, I know that in Kernel (version 2.4.18) I can\'t just multiply by 0.49 (for example) but if I need inferior limit of

everyone I'm interested how can I make multiplication the best way in Linux Kernel, I know that in Kernel (version 2.4.18) I can't just multiply by 0.49 (for example) but if I need inferior limit of x * 0.49, what am I supposed to do, thanks in a开发者_运维技巧dvance P.S. I can't do (x/100)*49 cause I don't receive an accurate result


Reverse the operations. Multiply by 49, then divide by 100.

0

精彩评论

暂无评论...
验证码 换一张
取 消