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

Function swap

src/cryptlib/integer.cpp:1273–1277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1271}
1272
1273void swap(Integer &a, Integer &b)
1274{
1275 swap(a.reg, b.reg);
1276 swap(a.sign, b.sign);
1277}
1278
1279Integer::Integer(word value, unsigned int length)
1280 : reg(RoundupSize(length)), sign(POSITIVE)

Callers 8

AsymmetricMultiplyFunction · 0.85
AlmostInverseFunction · 0.85
swapMethod · 0.85
ShuffleFunction · 0.85
ExponentiateMethod · 0.85
CascadeExponentiateMethod · 0.85
DESMethod · 0.85
JacobiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected