mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-04 19:52:28 +00:00
Fix compiler runtime for _Float16 type
This commit is contained in:
parent
0ef36489c8
commit
64a9e6fe56
14 changed files with 797 additions and 53 deletions
17
third_party/compiler_rt/extendhfdf2.c
vendored
Normal file
17
third_party/compiler_rt/extendhfdf2.c
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
//===-- lib/extendhfdf2.c - half -> dubble conversion -------------*- C -*-===//
|
||||
//
|
||||
// The Cosmopolitan Compiler Infrastructure
|
||||
//
|
||||
// This file is dual licensed under the MIT and the University of Illinois Open
|
||||
// Source Licenses. See LICENSE.TXT for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
|
||||
#define SRC_HALF
|
||||
#define DST_DOUBLE
|
||||
#include "third_party/compiler_rt/fp16_extend_impl.inc"
|
||||
|
||||
COMPILER_RT_ABI dst_t __extendhfdf2(src_t a) {
|
||||
return __extendXfYf2__(a);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue