[libc-commits] [libc] [libc] Implement strfromd() and strfroml() (PR #86113)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Fri Mar 22 10:31:07 PDT 2024


================
@@ -961,7 +961,9 @@ def StdC : StandardSpec<"stdc"> {
           FunctionSpec<"rand", RetValSpec<IntType>, [ArgSpec<VoidType>]>,
           FunctionSpec<"srand", RetValSpec<VoidType>, [ArgSpec<UnsignedIntType>]>,
 
+          FunctionSpec<"strfromd", RetValSpec<IntType>, [ArgSpec<CharRestrictedPtr>, ArgSpec<SizeTType>, ArgSpec<ConstCharRestrictedPtr>, ArgSpec<DoubleType>]>,
----------------
michaelrj-google wrote:

nit: While putting `strfromd` first makes these alphabetical, I would prefer to have them in order of size (`strfromf`, `strfromd`, `strfroml`). Thoughts?

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


More information about the libc-commits mailing list