authorgravatar for justin.b.alexander1@gmail.comvegecode <justin.b.alexander1@gmail.com> 2019-03-31 21:00:36-05:00
committergravatar for justin.b.alexander1@gmail.comvegecode <justin.b.alexander1@gmail.com> 2019-03-31 21:00:36-05:00
logbfbfb7b3b04b9c98dd14f932b08d1c058e2c5b25
treed68a9e1402ccd45abc11adcb0ab370485df2e6c6
parent937ff0cb6aaa28fedf09648bf0aa899d486969da

Remove inline keywords in addXf3.zig pending #2154


1 files changed, 4 insertions(+), 2 deletions(-)

std/special/compiler_rt/addXf3.zig+4-2
......@@ -33,7 +33,8 @@ pub extern fn __subtf3(a: f128, b: f128) f128 {
3333 return addXf3(f128, a, neg_b);
3434}
3535
36inline fn normalize(comptime T: type, significand: *@IntType(false, T.bit_count)) i32 {
36// TODO: restore inline keyword, see: https://github.com/ziglang/zig/issues/2154
37fn normalize(comptime T: type, significand: *@IntType(false, T.bit_count)) i32 {
3738 const Z = @IntType(false, T.bit_count);
3839 const S = @IntType(false, T.bit_count - @clz(Z(T.bit_count) - 1));
3940 const significandBits = std.math.floatMantissaBits(T);
......@@ -44,7 +45,8 @@ inline fn normalize(comptime T: type, significand: *@IntType(false, T.bit_count)
4445 return 1 - shift;
4546}
4647
47inline fn addXf3(comptime T: type, a: T, b: T) T {
48// TODO: restore inline keyword, see: https://github.com/ziglang/zig/issues/2154
49fn addXf3(comptime T: type, a: T, b: T) T {
4850 const Z = @IntType(false, T.bit_count);
4951 const S = @IntType(false, T.bit_count - @clz(Z(T.bit_count) - 1));
5052