Add builtins for f16/f128 float conversions by beetrees · Pull Request #593 · rust-lang/compiler-builtins (original) (raw)

Adds builtins for float conversions to/from f16/f128, which will solve rust-lang/rust#123885. I also updated the README.md to reflect that f16/f128 are being added to Rust.

@tgross35 this should save you some work on #587.

I'm not sure if the new functions need the #[avr_skip] attribute like the existing extend/truncate builtins do, but thought it was better to add it and accidentally cause linker errors if the builtin is needed and not supplied by libgcc rather than not having the attribute and accidentally causing subtle ABI bugs if a special ABI is required on AVR. @Patryk27 who added the original #[avr_skip]s.