maomao90's Library
A C++20 library for competitive programming.
Loading...
Searching...
No Matches
maomao90::internal::math::barrett Struct Reference

#include <math.hpp>

Public Member Functions

 barrett (unsigned int m)
 
unsigned int umod () const
 
unsigned int mul (unsigned int a, unsigned int b) const
 

Public Attributes

unsigned int _m
 
unsigned long long im
 

Constructor & Destructor Documentation

◆ barrett()

maomao90::internal::math::barrett::barrett ( unsigned int m)
inlineexplicit

Member Function Documentation

◆ umod()

unsigned int maomao90::internal::math::barrett::umod ( ) const
inline

◆ mul()

unsigned int maomao90::internal::math::barrett::mul ( unsigned int a,
unsigned int b ) const
inline

Member Data Documentation

◆ _m

unsigned int maomao90::internal::math::barrett::_m

◆ im

unsigned long long maomao90::internal::math::barrett::im

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