Givaro
Data Structures | Namespaces | Functions
rudiv.h File Reference
#include "ruruint.h"
#include "rucmp.h"
#include "rushift.h"
+ Include dependency graph for rudiv.h:
+ This graph shows which files directly or indirectly include this file:

Data Structures

struct  sdiv
 

Namespaces

 RecInt
 NOTE : For this common file, either basic/reduc.h or mg/reduc.h has to be pre-included.
 

Functions

template<size_t K>
ruint< K > & operator%= (ruint< K > &, const ruint< K > &)
 
template<size_t K, typename T >
std::enable_if< std::is_arithmetic< T >::value, ruint< K > & >::type operator%= (ruint< K > &, const T &)
 
template<size_t K>
ruint< K > & operator/= (ruint< K > &, const ruint< K > &)
 
template<size_t K, typename T >
std::enable_if< std::is_unsigned< T >::value, ruint< K > & >::type operator/= (ruint< K > &, const T &)
 
template<size_t K, typename T >
std::enable_if< std::is_signed< T >::value, ruint< K > & >::type operator/= (ruint< K > &, const T &)
 
template<size_t K>
ruint< K > operator% (const ruint< K > &, const ruint< K > &)
 
template<size_t K, typename T >
std::enable_if< std::is_arithmetic< T >::value, ruint< K > >::type operator% (const ruint< K > &, const T &)
 
template<size_t K>
ruint< K > operator/ (const ruint< K > &, const ruint< K > &)
 
template<size_t K, typename T >
std::enable_if< std::is_unsigned< T >::value, ruint< K > >::type operator/ (const ruint< K > &, const T &)
 
template<size_t K, typename T >
std::enable_if< std::is_signed< T >::value, ruint< K > >::type operator/ (const ruint< K > &, const T &)
 
template<size_t K>
void div_3_2 (ruint< K > &q, ruint< K > &r1, ruint< K > &r0, const ruint< K > &a2, const ruint< K > &a1, const ruint< K > &a0, const ruint< K > &b1, const ruint< K > &b0)
 
template<size_t K>
void div_2_1 (ruint< K > &q, ruint< K > &r, const ruint< K > &a1, const ruint< K > &a0, const ruint< K > &b)
 
template<size_t K>
void div (ruint< K > &q, ruint< K > &r, const ruint< K > &a, const ruint< K > &b)
 
template<size_t K, typename T >
std::enable_if< std::is_arithmetic< T >::value, void >::type div (ruint< K > &q, T &r, const ruint< K > &a, const T &b)
 
template<size_t K>
ruint< K > & div_q (ruint< K > &q, const ruint< K > &a, const ruint< K > &b)
 
template<size_t K, typename T >
std::enable_if< std::is_arithmetic< T >::value, ruint< K > & >::type div_q (ruint< K > &q, const ruint< K > &a, const T &b)
 
template<size_t K>
ruint< K > & div_r (ruint< K > &r, const ruint< K > &a, const ruint< K > &b)
 
template<size_t K, typename T >
std::enable_if< std::is_arithmetic< T >::value, T & >::type div_r (T &r, const ruint< K > &a, const T &b)
 
template<>
void div_3_2 (ruint< 6 > &q, ruint< 6 > &r1, ruint< 6 > &r0, const ruint< 6 > &a2, const ruint< 6 > &a1, const ruint< 6 > &a0, const ruint< 6 > &b1, const ruint< 6 > &b0)
 
template<>
void div_2_1 (ruint< 6 > &q, ruint< 6 > &r, const ruint< 6 > &ah, const ruint< 6 > &al, const ruint< 6 > &b)
 
void udiv_qrnd (limb &q, limb &r, const limb &a, const limb &b)
 
template<>
void div (ruint< 6 > &q, ruint< 6 > &r, const ruint< 6 > &a, const ruint< 6 > &b)