C NT2库文档在哪里,并且它具有默认的爆米花函数

Where is the C++ NT2 library documentation and does it have a default popcount function?

本文关键字:默认 函数 爆米花 NT2 文档 在哪里      更新时间:2023-10-16

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形式。