MCPcopy Create free account
hub / github.com/apache/singa / multiply64

Function multiply64

include/half.hpp:1366–1373  ·  view source on GitHub ↗

64-bit multiplication. \param x first factor \param y second factor \return upper 32 bit of \a x * \a y rounded to nearest

Source from the content-addressed store, hash-verified

1364 /// \param y second factor
1365 /// \return upper 32 bit of \a x * \a y rounded to nearest
1366 inline uint32 multiply64(uint32 x, uint32 y)
1367 {
1368 #if HALF_ENABLE_CPP11_LONG_LONG
1369 return static_cast<uint32>((static_cast<unsigned long long>(x)*static_cast<unsigned long long>(y)+0x80000000)>>32);
1370 #else
1371 return mulhi<std::round_to_nearest>(x, y);
1372 #endif
1373 }
1374
1375 /// 64-bit division.
1376 /// \param x upper 32 bit of dividend

Callers 7

angle_argFunction · 0.85
hyperbolic_argsFunction · 0.85
operator*Method · 0.85
expFunction · 0.85
expm1Function · 0.85
cbrtFunction · 0.85
powFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected