8522e371bf
git-svn-id: https://websvn.glenux.net/svn/Upoc/cryptaffinity/trunk@1175 eaee96b3-f302-0410-b096-c6cfd47f7835
24 lines
504 B
C++
24 lines
504 B
C++
#ifndef _LIBCRYPTAFINITY_MATHTOOLS_HH
|
|
#define _LIBCRYPTAFINITY_MATHTOOLS_HH
|
|
|
|
#include "cryptafinity_global.hh"
|
|
#include "cryptafinity_iface.hh"
|
|
|
|
namespace LibCryptAfinity {
|
|
class MathTools {
|
|
private:
|
|
std::vector<int> MathTools::pgcd_real(int * reste, int * quotient, int * coef_first, int * coef_second, int pas);
|
|
|
|
public:
|
|
int pgcd(int a, int b);
|
|
int ppcm(int a, int b);
|
|
|
|
std::vector<int> MathTools::pgcd_mod(int a, int b);
|
|
|
|
int MathTools::inverse(int a, int modulo);
|
|
|
|
};
|
|
}
|
|
|
|
#endif
|