MCPcopy Create free account
hub / github.com/dcleblanc/SafeInt / int16_t CastInt

Method int16_t CastInt

Test/ConstExpr_Intrinsics.cpp:13–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#if SAFEINT_USE_INTRINSICS
12
13_CONSTEXPR14 std::int16_t CastInt()
14{
15 const std::int16_t t1 = 2;
16 const std::int16_t u1 = -3;
17 std::int16_t r1 = 0;
18 if (!MultiplicationHelper< std::int16_t, std::int16_t, MultiplicationState_CastInt>::Multiply(t1, u1, r1))
19 return 0;
20
21 return r1;
22}
23
24_CONSTEXPR14 std::uint16_t CastUint()
25{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected