MCPcopy Create free account
hub / github.com/dcleblanc/SafeInt / int32_t CastInt64

Method int32_t CastInt64

Test/ConstExpr_Intrinsics.cpp:35–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35_CONSTEXPR14 std::int32_t CastInt64()
36{
37 const std::int32_t t1 = 2;
38 const std::int32_t u1 = -3;
39 std::int32_t r1 = 0;
40 if (!MultiplicationHelper< std::int32_t, std::int32_t, MultiplicationState_CastInt64>::Multiply(t1, u1, r1))
41 return 0;
42
43 return r1;
44}
45
46_CONSTEXPR14 std::uint32_t CastUint64()
47{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected