Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft for adding IEEE half-precision floating-point type. #172

Merged
merged 1 commit into from
Jul 21, 2021

Commits on Jul 13, 2021

  1. Add IEEE half-precision data type.

    After discussion with clang and gcc community, we choose
    C ISO/IEC TS 18661-3 `_Float16` rather than redefine
    a different behavior type `__fp16` in RISC-V.
    
    1. ARM folks are working on deprecating `__fp16`. [1]
    2. In Clang, `_Float16` is available in both C and C++ mode. [2]
    3. In GCC, `_Float16` is only avaiable in C mode but GCC folks
    think making it available in C++ as GCC extension is doable. [3]
    
    [1] https://lists.llvm.org/pipermail/cfe-dev/2021-March/067850.html
    [2] https://gcc.gnu.org/pipermail/gcc/2021-March/234981.html
    [3] https://gcc.gnu.org/pipermail/gcc/2021-March/234972.html
    zakk0610 committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    2d325eb View commit details
    Browse the repository at this point in the history