std :: remquo的目的和用法? [英] std::remquo purpose and usage?
本文介绍了std :: remquo的目的和用法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
std :: remquo
函数的用途是什么?什么是你使用它而不是常规的 std :: remaining
函数的例子?
解决方案
$在C ++中出现在C99之前,这是C99的基本原理。 b $ b
$在C ++中出现在C99之前,这是C99的基本原理。 b $ b
这个remquo函数是用来实现减少参数的,它可以利用商的一些低阶位。请注意,相对于y,x的大小可能如此之大,以至于商的确切表示形式是不切实际的。
What is the purpose of the std::remquo
function? What is an example of when you would use it instead of the regular std::remainder
function?
解决方案
remquo
first appeared in C99 before being in C++ and here is what the C99 rationale says about it:
The remquo functions are intended for implementing argument reductions which can exploit a few low-order bits of the quotient. Note that x may be so large in magnitude relative to y that an exact representation of the quotient is not practical.
这篇关于std :: remquo的目的和用法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文