MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / IsSquare

Method IsSquare

src/cryptlib/integer.cpp:2076–2080  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2074}
2075
2076bool Integer::IsSquare() const
2077{
2078 Integer r = SquareRoot();
2079 return *this == r.Squared();
2080}
2081
2082bool Integer::IsUnit() const
2083{

Callers 2

IsLucasProbablePrimeFunction · 0.80

Calls 1

SquaredMethod · 0.80

Tested by

no test coverage detected