From 33034600c250068cb1c413ddf9dba894f8ca6182 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 18 May 2016 09:41:07 -0400 Subject: Add __mulodi4 source to src/ext We need to define this function when compiling with clang -m32 -ftrapv, since otherwise we get link errors, since apparently some versions of libclang_rt.builtins don't define a version of it that works? Or clang doesn't know to look for it? This definition is taken from the LLVM source at https://llvm.org/svn/llvm-project/compiler-rt/trunk/lib/builtins/mulodi4.c I've also included the license (dual BSD-ish/MIT-ish). --- src/ext/README | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/ext/README') diff --git a/src/ext/README b/src/ext/README index c180927b86..dfe620ed16 100644 --- a/src/ext/README +++ b/src/ext/README @@ -77,3 +77,10 @@ readpassphrase.[ch] timeouts/ William Ahern's hierarchical timer-wheel implementation. MIT license. + +mulodi/ + + Contains an overflow-checking 64-bit signed integer multiply + from LLVM's compiler_rt. For some reason, this is missing from + 32-bit libclang in many places. Dual licensed MIT-license and + BSD-like license; see mulodi/LICENSE.TXT. -- cgit v1.2.3-54-g00ecf