aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/bs_instrs.tab
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2019-03-05 12:28:57 +0100
committerBjörn Gustavsson <[email protected]>2019-03-06 15:42:43 +0100
commit405aca76c4bbc47352788858bf0c0749fb1f730d (patch)
treeef29c8f25e987174d7c042f7214539d14bdf62b5 /erts/emulator/beam/bs_instrs.tab
parentb96e5bd87c6aaaf96fa9c6e3679d95df74d1a499 (diff)
downloadotp-405aca76c4bbc47352788858bf0c0749fb1f730d.tar.gz
otp-405aca76c4bbc47352788858bf0c0749fb1f730d.tar.bz2
otp-405aca76c4bbc47352788858bf0c0749fb1f730d.zip
sys.h: Check for overflow checking aritmethic builtins
Let sys.h define HAVE_OVERFLOW_CHECK_BUILTINS if the compiler supports __builtin_mul_overflow() and the other overflow checking builtins. The test is intentionally made in a sys.h and not as a configure test. On Windows, beam_emu.c is always compiled using gcc, but the other files are usually compiled with Microsoft's C compiler. With the test in the header file, HAVE_OVERFLOW_CHECK_BUILTINS will be defined when compiling beam_emu.c.
Diffstat (limited to 'erts/emulator/beam/bs_instrs.tab')
0 files changed, 0 insertions, 0 deletions