mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 13:35:38 +08:00
[libc] Include stdfix.h in baremetal targets (#83900)
Fixed-point arithmetic support is targeted towards baremetal targets.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
include "config/public_api.td"
|
||||
|
||||
include "spec/stdc.td"
|
||||
include "spec/stdc_ext.td"
|
||||
|
||||
def AssertMacro : MacroDef<"assert"> {
|
||||
let Defn = [{
|
||||
|
||||
@@ -76,7 +76,6 @@ set(TARGET_LIBC_ENTRYPOINTS
|
||||
libc.src.stdio.vsprintf
|
||||
libc.src.stdio.vsnprintf
|
||||
|
||||
|
||||
# stdbit.h entrypoints
|
||||
libc.src.stdbit.stdc_leading_zeros_uc
|
||||
libc.src.stdbit.stdc_leading_zeros_us
|
||||
@@ -280,6 +279,36 @@ set(TARGET_LIBM_ENTRYPOINTS
|
||||
libc.src.math.truncl
|
||||
)
|
||||
|
||||
if(LIBC_COMPILER_HAS_FIXED_POINT)
|
||||
list(APPEND TARGET_LIBM_ENTRYPOINTS
|
||||
# stdfix.h _Fract and _Accum entrypoints
|
||||
libc.src.stdfix.abshk
|
||||
libc.src.stdfix.abshr
|
||||
libc.src.stdfix.absk
|
||||
libc.src.stdfix.absr
|
||||
libc.src.stdfix.abslk
|
||||
libc.src.stdfix.abslr
|
||||
libc.src.stdfix.roundhk
|
||||
libc.src.stdfix.roundhr
|
||||
libc.src.stdfix.roundk
|
||||
libc.src.stdfix.roundr
|
||||
libc.src.stdfix.roundlk
|
||||
libc.src.stdfix.roundlr
|
||||
libc.src.stdfix.rounduhk
|
||||
libc.src.stdfix.rounduhr
|
||||
libc.src.stdfix.rounduk
|
||||
libc.src.stdfix.roundur
|
||||
libc.src.stdfix.roundulk
|
||||
libc.src.stdfix.roundulr
|
||||
libc.src.stdfix.sqrtuhk
|
||||
libc.src.stdfix.sqrtuhr
|
||||
libc.src.stdfix.sqrtuk
|
||||
libc.src.stdfix.sqrtur
|
||||
# libc.src.stdfix.sqrtulk
|
||||
libc.src.stdfix.sqrtulr
|
||||
)
|
||||
endif()
|
||||
|
||||
set(TARGET_LLVMLIBC_ENTRYPOINTS
|
||||
${TARGET_LIBC_ENTRYPOINTS}
|
||||
${TARGET_LIBM_ENTRYPOINTS}
|
||||
|
||||
@@ -7,6 +7,7 @@ set(TARGET_PUBLIC_HEADERS
|
||||
libc.include.stdint
|
||||
libc.include.inttypes
|
||||
libc.include.math
|
||||
libc.include.stdfix
|
||||
libc.include.stdio
|
||||
libc.include.stdlib
|
||||
libc.include.string
|
||||
|
||||
@@ -279,6 +279,36 @@ set(TARGET_LIBM_ENTRYPOINTS
|
||||
libc.src.math.truncl
|
||||
)
|
||||
|
||||
if(LIBC_COMPILER_HAS_FIXED_POINT)
|
||||
list(APPEND TARGET_LIBM_ENTRYPOINTS
|
||||
# stdfix.h _Fract and _Accum entrypoints
|
||||
libc.src.stdfix.abshk
|
||||
libc.src.stdfix.abshr
|
||||
libc.src.stdfix.absk
|
||||
libc.src.stdfix.absr
|
||||
libc.src.stdfix.abslk
|
||||
libc.src.stdfix.abslr
|
||||
libc.src.stdfix.roundhk
|
||||
libc.src.stdfix.roundhr
|
||||
libc.src.stdfix.roundk
|
||||
libc.src.stdfix.roundr
|
||||
libc.src.stdfix.roundlk
|
||||
libc.src.stdfix.roundlr
|
||||
libc.src.stdfix.rounduhk
|
||||
libc.src.stdfix.rounduhr
|
||||
libc.src.stdfix.rounduk
|
||||
libc.src.stdfix.roundur
|
||||
libc.src.stdfix.roundulk
|
||||
libc.src.stdfix.roundulr
|
||||
libc.src.stdfix.sqrtuhk
|
||||
libc.src.stdfix.sqrtuhr
|
||||
libc.src.stdfix.sqrtuk
|
||||
libc.src.stdfix.sqrtur
|
||||
# libc.src.stdfix.sqrtulk
|
||||
libc.src.stdfix.sqrtulr
|
||||
)
|
||||
endif()
|
||||
|
||||
set(TARGET_LLVMLIBC_ENTRYPOINTS
|
||||
${TARGET_LIBC_ENTRYPOINTS}
|
||||
${TARGET_LIBM_ENTRYPOINTS}
|
||||
|
||||
@@ -7,6 +7,7 @@ set(TARGET_PUBLIC_HEADERS
|
||||
libc.include.stdint
|
||||
libc.include.inttypes
|
||||
libc.include.math
|
||||
libc.include.stdfix
|
||||
libc.include.stdio
|
||||
libc.include.stdlib
|
||||
libc.include.string
|
||||
|
||||
Reference in New Issue
Block a user