[libc-commits] [libc] [libc][stdfix] Add integer square root with fixed point output functions. (PR #83959)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Tue Mar 5 14:02:58 PST 2024


================
@@ -46,3 +46,29 @@ foreach(suffix IN ITEMS hr r lr hk k lk uhr ur ulr uhk uk ulk)
       libc.src.__support.fixed_point.fx_bits
   )
 endforeach()
+
+add_entrypoint_object(
+  uhksqrtus
+  HDRS
+    uhksqrtus.h
+  SRCS
+    uhksqrtus.cpp
+  COMPILE_OPTIONS
+    -O3
+    -ffixed-point
----------------
michaelrj-google wrote:

if `LIBC_COMPILER_HAS_FIXED_POINT` is specified, then `-ffixed-point` is automatically added to all of the compile options. You don't have to additionally specify it here.

https://github.com/llvm/llvm-project/pull/83959


More information about the libc-commits mailing list