[libc-commits] [libc] [libc][stdfix] Implement fixed point `countlsfx` functions in llvm-libc (PR #125356)

Krishna Pandey via libc-commits libc-commits at lists.llvm.org
Tue Feb 4 06:57:26 PST 2025


================
@@ -64,6 +65,8 @@ foreach(feature IN LISTS ALL_COMPILER_FEATURES)
   set(link_options "")
   if(${feature} STREQUAL "fixed_point")
     list(APPEND compile_options "-ffixed-point")
+  elseif(${feature} STREQUAL "padding_on_unsigned_fixed_point")
+    list(APPEND compile_options "-ffixed-point -Xclang=-fpadding-on-unsigned-fixed-point")
----------------
krishna2803 wrote:

i've  removed both the usage of the `-Xclang=-fpadding-on-unsigned-fixed-point` flag and its associated tests, while retaining support for the underlying functionality for the same in `libc/src/__support/fixed_point/fx_bits.h` in the fixed_point::countls function. Perhaps we can implement that feature (and tests) in another dedicated PR?

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


More information about the libc-commits mailing list