MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / __hxcpp_check_overflow

Function __hxcpp_check_overflow

src/hx/StdLibs.cpp:919–923  ·  view source on GitHub ↗

--- haxe.Int32 ---------------------------------------------------------------------

Source from the content-addressed store, hash-verified

917
918// --- haxe.Int32 ---------------------------------------------------------------------
919void __hxcpp_check_overflow(int x)
920{
921 if( (((x) >> 30) & 1) != ((unsigned int)(x) >> 31) )
922 throw Dynamic(HX_CSTRING("Overflow ")+x);
923}
924
925// --- Memory ---------------------------------------------------------------------
926

Callers 1

toIntMethod · 0.85

Calls 1

DynamicClass · 0.50

Tested by

no test coverage detected