Caffe2 - C++ API
A deep learning, cross platform ML framework
Public Member Functions
caffe2::FixedDivisor< int32_t > Class Template Reference

Public Member Functions

 FixedDivisor (int32_t d)
 
uint64_t getMagic () const
 
int getShift () const
 
int32_t div (int32_t n) const
 Calculates q = n / d.
 
int32_t mod (int32_t n) const
 Calculates r = n % d.
 
void divMod (int32_t n, int32_t &q, int32_t &r) const
 Calculates q = n / d and r = n % d together.
 

Detailed Description

template<>
class caffe2::FixedDivisor< int32_t >

Definition at line 19 of file fixed_divisor.h.


The documentation for this class was generated from the following file: