# GSoC 2026: Enable float80/float128 on Unsupported Targets for LLVM libc

DevFeed: [GSoC 2026: Enable float80/float128 on Unsupported Targets for LLVM libc](<https://devfeed.tech/articles/gsoc-2026-enable-float80-float128-on-unsupported-targets-for-llvm-libc-122899.md>)

Original publisher: [Read original article](<https://blog.llvm.org/posts/2026-08-22-gsoc-float80-and-float128-in-llvm-libc/>)

Author: Sukumar Sawant

Published: 2026-11-02T00:00:00Z

Content type: news

Language: en

Sources: [LLVM Project](<https://devfeed.tech/sources/the-llvm-project-blog.md>)

Topics: [floating-point](<https://devfeed.tech/topics/floating-point.md>), [LLVM](<https://devfeed.tech/topics/llvm.md>), [clang](<https://devfeed.tech/topics/clang.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [64-bit](<https://devfeed.tech/tags/64-bit.md>), [clang](<https://devfeed.tech/tags/clang.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [computer-science](<https://devfeed.tech/tags/computer-science.md>), [emulation](<https://devfeed.tech/tags/emulation.md>), [floating-point](<https://devfeed.tech/tags/floating-point.md>), [google](<https://devfeed.tech/tags/google.md>), [google-summer-of-code](<https://devfeed.tech/tags/google-summer-of-code.md>), [gsoc](<https://devfeed.tech/tags/gsoc.md>), [ieee](<https://devfeed.tech/tags/ieee.md>), [india](<https://devfeed.tech/tags/india.md>), [libc](<https://devfeed.tech/tags/libc.md>), [llvm](<https://devfeed.tech/tags/llvm.md>), [math](<https://devfeed.tech/tags/math.md>), [msvc](<https://devfeed.tech/tags/msvc.md>), [mumbai](<https://devfeed.tech/tags/mumbai.md>), [software](<https://devfeed.tech/tags/software.md>), [windows](<https://devfeed.tech/tags/windows.md>), [x86](<https://devfeed.tech/tags/x86.md>)

## AI overview

LLVM libc added software-emulated `Float128` and `Float80` so high-precision math code can build and be tested on targets lacking the corresponding native formats. The work added emulation types, operators and conversions, integrated them into floating-point support, and migrated `float128` math functions incrementally. A Windows build failure traced to `BigInt`'s zero-initialized member making it non-trivially constructible; moving initialization into constructors made `bit_cast` accept it. Testing also exposed ABI differences between native and emulated types, so migrated functions use emulation internally while retaining native `float128` parameters and returns when available. The article reports support for building and testing the types without native support and enabling `float128` functions on Windows with MSVC, macOS and GPU targets. Remaining work includes migrating more functions, adding explicit `float80` entrypoints and comparing performance.

## Source excerpt

Introduction Hello LLVM Community! I am Sukumar Sawant, Computer Science student at Mumbai University (VIT Mumbai), India. I had the pleasure of working on the project on introducing float80 and float128 (emulated) in LLVM libc as part of Google Summer of Code 2026 along with my mentors Tue Ly, Nicolas Celik and Krishna Pandey. "Why"? float80 and float128 are the two extended-precision floating-point formats LLVM libc supports. float80 is the 80-bit x87 extended precision format, with 1 sign bit, 15 exponent bits, and a 64-bit significand carrying an explicit integer bit. float128 is the IEEE 754 binary128 ("quad precision") format, with 1 sign bit, 15 exponent bits, and 112 stored mantissa bits. Both formats are already natively supported on several platforms, but not on all of them. For example: MSVC on Windows treats long double as a 64-bit double and has no native __float128 type. AArch64 targets typically use a 128-bit long double, but lack the 80-bit extended precision format entirely. Clang on certain non-x86 targets may not enable __float128 by default. This matters because LLVM libc needs to build and test its high-precision math routines consistently across every target it supports, not just the ones where these types happen to exist natively. Where the compiler provides no native type, the templated implementations cannot be compiled at all. The goal of this project was to lift that restriction by emulating both formats in software, so that the same templated implementations build and run everywhere, producing identical results whether the underlying type is native or emulated. The exact goals of this project were to: Add software emulation classes for the float80 and float128 formats. Provide the operator overloads and conversions needed for these classes to be used in place of the native types. Integrate the emulated types into the existing floating-point support infrastructure. Modify the existing float128 math functions to work correctly with the emul