Fix missing __muloti4 function with UBSAN

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@369483 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier
2019-08-21 00:16:33 +00:00
parent 41cdb89ec7
commit 2d8b51bed3

View File

@@ -18,7 +18,7 @@
#if !defined(_LIBCPP_HAS_NO_INT128)
extern "C" __attribute__((no_sanitize("undefined")))
extern "C" __attribute__((no_sanitize("undefined"))) _LIBCPP_FUNC_VIS
__int128_t __muloti4(__int128_t a, __int128_t b, int* overflow) {
const int N = (int)(sizeof(__int128_t) * CHAR_BIT);
const __int128_t MIN = (__int128_t)1 << (N - 1);