MCPcopy Create free account
hub / github.com/VectorDB-NTU/RaBitQ-Library / div_ceil

Function div_ceil

include/rabitqlib/third/Eigen/src/Core/util/Meta.h:778–782  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

776// T is assumed to be an integer type with a>=0, and b>0
777template<typename T>
778EIGEN_DEVICE_FUNC
779T div_ceil(const T &a, const T &b)
780{
781 return (a+b-1) / b;
782}
783
784// The aim of the following functions is to bypass -Wfloat-equal warnings
785// when we really want a strict equality comparison on floating points.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected