pw_libc: Add stdfix target

This exposes some fixed point functions from llvm-libc

Bug: b/323425639
Change-Id: I9e7ce28669c1d06861125767058020642fd4a7bb
Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/194628
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Original-Reviewed-by: Prabhu Karthikeyan Rajasekaran <prabhukr@google.com>
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/llvm-integration/+/235138
Commit-Queue: Prabhu Karthikeyan Rajasekaran <prabhukr@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
diff --git a/pw_libc/BUILD.gn b/pw_libc/BUILD.gn
index d256469..ac817a7 100644
--- a/pw_libc/BUILD.gn
+++ b/pw_libc/BUILD.gn
@@ -116,7 +116,10 @@
   }
 
   pw_libc_source_set("stdio") {
-    functions = [ "snprintf" ]
+    functions = [
+      "snprintf",
+      "vsnprintf",
+    ]
 
     additional_srcs = [
       "printf_core/printf_main.cpp",
@@ -136,6 +139,13 @@
     remove_configs = [ "//pw_build:extra_strict_warnings" ]
   }
 
+  pw_libc_source_set("stdfix") {
+    functions = [
+      "roundlk",
+      "sqrtulr",
+    ]
+  }
+
   pw_static_library("pw_libc") {
     complete_static_lib = true
     add_global_link_deps = false
@@ -159,11 +169,24 @@
       ":time_tests",
     ]
   }
+
+  pw_static_library("pw_libc_stdfix") {
+    complete_static_lib = true
+    add_global_link_deps = false
+    deps = [
+      ":stdfix",
+      ":stdio",
+    ]
+  }
 } else {
   pw_static_library("pw_libc") {
     add_global_link_deps = false
   }
 
+  pw_static_library("pw_libc_stdfix") {
+    add_global_link_deps = false
+  }
+
   pw_test_group("llvm_libc_tests") {
   }
 }