[libc-commits] [libc] ad0e764 - [libc][obvious] Fix fdim[f|l] signatures in stdc spec.

Siva Chandra Reddy via libc-commits libc-commits at lists.llvm.org
Wed Nov 18 07:40:56 PST 2020


Author: Siva Chandra Reddy
Date: 2020-11-18T07:39:11-08:00
New Revision: ad0e764ead36d5ed87015ea7aa8ba033117b7477

URL: https://github.com/llvm/llvm-project/commit/ad0e764ead36d5ed87015ea7aa8ba033117b7477
DIFF: https://github.com/llvm/llvm-project/commit/ad0e764ead36d5ed87015ea7aa8ba033117b7477.diff

LOG: [libc][obvious] Fix fdim[f|l] signatures in stdc spec.

Added: 
    

Modified: 
    libc/spec/stdc.td

Removed: 
    


################################################################################
diff  --git a/libc/spec/stdc.td b/libc/spec/stdc.td
index 7f70e17cfd52..854566ca544b 100644
--- a/libc/spec/stdc.td
+++ b/libc/spec/stdc.td
@@ -258,9 +258,9 @@ def StdC : StandardSpec<"stdc"> {
           FunctionSpec<"fabsf", RetValSpec<FloatType>, [ArgSpec<FloatType>]>,
           FunctionSpec<"fabsl", RetValSpec<LongDoubleType>, [ArgSpec<LongDoubleType>]>,
 
-          FunctionSpec<"fdim", RetValSpec<DoubleType>, [ArgSpec<DoubleType>]>,
-          FunctionSpec<"fdimf", RetValSpec<FloatType>, [ArgSpec<FloatType>]>,
-          FunctionSpec<"fdiml", RetValSpec<LongDoubleType>, [ArgSpec<LongDoubleType>]>,
+          FunctionSpec<"fdim", RetValSpec<DoubleType>, [ArgSpec<DoubleType>, ArgSpec<DoubleType>]>,
+          FunctionSpec<"fdimf", RetValSpec<FloatType>, [ArgSpec<FloatType>, ArgSpec<FloatType>]>,
+          FunctionSpec<"fdiml", RetValSpec<LongDoubleType>, [ArgSpec<LongDoubleType>, ArgSpec<LongDoubleType>]>,
 
           FunctionSpec<"floor", RetValSpec<DoubleType>, [ArgSpec<DoubleType>]>,
           FunctionSpec<"floorf", RetValSpec<FloatType>, [ArgSpec<FloatType>]>,


        


More information about the libc-commits mailing list