MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / large_mul

Function large_mul

external/include/fast_float/fast_float.h:1996–2003  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1994// grade-school multiplication algorithm
1995template <uint16_t size>
1996bool large_mul(stackvec<size>& x, limb_span y) noexcept {
1997 if (y.len() == 1) {
1998 FASTFLOAT_TRY(small_mul(x, y[0]));
1999 } else {
2000 FASTFLOAT_TRY(long_mul(x, y));
2001 }
2002 return true;
2003}
2004
2005// big integer type. implements a small subset of big integer
2006// arithmetic, using simple algorithms since asymptotically

Callers 1

pow5Method · 0.85

Calls 3

small_mulFunction · 0.85
long_mulFunction · 0.85
lenMethod · 0.45

Tested by

no test coverage detected