commit | 0cf277c710bde079d4c0c2476d1493c08544a3be | [log] [tgz] |
---|---|---|
author | Eric Fiselier <eric@efcs.ca> | Tue May 03 02:04:26 2016 +0000 |
committer | Eric Fiselier <eric@efcs.ca> | Tue May 03 02:04:26 2016 +0000 |
tree | 1a6c2461328975ac3b80ae7b3417a597b9858777 | |
parent | 3ed38a96f8a6fb59c11375c7280824d6c4671143 [diff] |
Don't use std::__clz in 'test/support/hexfloat.h'. std::__clz is a libc++ specific function so it can't be used in the test suite. This patch implements a dumb "count leading zeros" implementation within hexfloat itself. This patch also fixes UB since the output of `__builtin_clz(0)` is undefined according to the GCC docs. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268354 91177308-0d34-0410-b5e6-96231b3b80d8