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

Method int32_t Value

SafeInt.hpp:975–986  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

973
974template <>
975class SignedNegation <std::int32_t>
976{
977public:
978 _CONSTEXPR11 static std::int32_t Value(std::uint64_t in) SAFEINT_NOTHROW
979 {
980 return (std::int32_t)(~(std::uint32_t)in + 1);
981 }
982
983 _CONSTEXPR11 static std::int32_t Value(std::uint32_t in) SAFEINT_NOTHROW
984 {
985 return (std::int32_t)(~in + 1);
986 }
987};
988
989template <>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected