File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2
2
members = [" fuzz" ]
3
3
4
4
[workspace .package ]
5
- version = " 0.2.0+llvm-e60b91df1357 "
5
+ version = " 0.2.0+llvm-4dc08de9d2f6 "
6
6
edition = " 2021"
7
7
license = " Apache-2.0 WITH LLVM-exception"
8
8
Original file line number Diff line number Diff line change @@ -1824,7 +1824,7 @@ impl<S: Semantics> Float for IeeeFloat<S> {
1824
1824
let max_change = S :: MAX_EXP as i32 - ( S :: MIN_EXP as i32 - sig_bits) + 1 ;
1825
1825
1826
1826
// Clamp to one past the range ends to let normalize handle overflow.
1827
- let exp_change = cmp :: min ( cmp :: max ( exp as i32 , -max_change - 1 ) , max_change) ;
1827
+ let exp_change = ( exp as i32 ) . clamp ( -max_change - 1 , max_change) ;
1828
1828
self . exp = self . exp . saturating_add ( exp_change as ExpInt ) ;
1829
1829
self = self . normalize ( round, Loss :: ExactlyZero ) . value ;
1830
1830
if self . is_nan ( ) {
Original file line number Diff line number Diff line change 1
1
//! Port of LLVM's APFloat software floating-point implementation from the
2
2
//! following C++ sources (please update commit hash when backporting):
3
- //! https://github.com/llvm/llvm-project/commit/e60b91df1357e6a5f66840581f4d5f57e258c0b4
3
+ //! https://github.com/llvm/llvm-project/commit/4dc08de9d2f680309cdd639169d3b8802c76ae9a
4
4
//! * `llvm/include/llvm/ADT/APFloat.h` -> `Float` and `FloatConvert` traits
5
5
//! * `llvm/lib/Support/APFloat.cpp` -> `ieee` and `ppc` modules
6
6
//! * `llvm/unittests/ADT/APFloatTest.cpp` -> `tests` directory
You can’t perform that action at this time.
0 commit comments