Skip to content

Commit

Permalink
compiler-rt: Apply never_inline to std.math.ldexp() call in bigIntFro…
Browse files Browse the repository at this point in the history
…mFloat().

llvm/llvm-project#130408

This will probably be fixed with LLVM 20.1.1, so revert this commit by then.
  • Loading branch information
alexrp committed Mar 10, 2025
1 parent 2e48399 commit 64bcbda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compiler_rt/int_from_float.zig
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ pub inline fn bigIntFromFloat(comptime signedness: std.builtin.Signedness, resul
const exponent = @max(parts.exponent - significand_bits_adjusted_to_handle_smin, 0);
const int: I = @intFromFloat(switch (exponent) {
0 => a,
else => math.ldexp(parts.significand, significand_bits_adjusted_to_handle_smin),
else => @call(.never_inline, math.ldexp, .{ parts.significand, significand_bits_adjusted_to_handle_smin }), // https://github.com/llvm/llvm-project/issues/130408
});
switch (signedness) {
.signed => {
Expand Down

0 comments on commit 64bcbda

Please sign in to comment.