C NT2库文档在哪里,并且它具有默认的爆米花函数
Where is the C++ NT2 library documentation and does it have a default popcount function?
i在此存储库中的C 库NT2
的GitHub页面上。当我单击开发人员文档的链接时,我会得到一个无处可走的链接。我正在尝试阅读文档,以查看NT2
是否提供默认的爆米花函数。
所建议的Web档案的评论确实具有文档的(不完整)存档:
https://web.archive.org/web/20151127024254/http://nt2.metascale.fr/doc/html/
但是,在您的情况下,没有存档的具有爆米花文档的实际页面。但是popcnt()函数是在位于
的标题NT2/bitwise/functions/popcnt.hpp中定义的https://github.com/picanumber/nt2/blob/master/modules/boost/boost/simd/base/include/boost/boost/simd/bitwise/functions/popcnt.hpp
根据标题文件:
Returns the number of bit sets the input.
@par semantic:
For any given value @c x of type @c T:
@code
as_integer<T, unsigned> r = popcnt(x);
@endcode
@see @funcref{clz}, @funcref{ctz}
@param a0
@return a value of the unsigned integer
type associated to the input.
它不如文档那样好,但确实证明了popcount在库中,并且确实显示了如何称呼它。
我认为文档消失的原因是因为它似乎位于github存储库中 - 但以QuickBook形式。
相关文章:
- 默认函数可以返回自动吗?
- 即使类不包含数据,C++ 14 是否仍会生成默认函数?
- 删除显式默认函数声明时的警告
- 使用聚合初始化模拟默认函数参数是否存在任何陷阱?
- 常量字符[] 默认函数参数
- 使编译器为 std::function 生成一个空的默认函数
- 尝试将 C++11 代码转换为 C++03 时默认函数模板参数出错
- 避免将静态变量暴露在默认函数参数中
- 默认函数对象值作为要使用lambda调用的函数参数
- C++ "overloading"第二个默认函数参数
- 显式默认函数不能声明为 constexpr,因为隐式声明不是 constexpr
- 为什么要使用std ::少用作默认函数来比较std :: map and std :: set中的键
- C++默认函数参数
- 为什么子类覆盖虚拟函数不能更改父类的默认函数参数
- 如何为函数指针设置默认函数
- 扩展的参数包是否可以"fill in"默认函数参数?
- C++ 默认函数参数不起作用
- 如何知道是传递了可选函数参数还是使用默认函数参数
- 复制省略在默认函数参数中是否有效
- C++模板参数默认函数实现