[libc-commits] [libc] b266c81 - [libc][Obvious] Mark functions in DummyFEnv.h as static inline.
    Siva Chandra Reddy via libc-commits 
    libc-commits at lists.llvm.org
       
    Mon Dec 14 17:13:55 PST 2020
    
    
  
Author: Siva Chandra Reddy
Date: 2020-12-14T17:12:54-08:00
New Revision: b266c818e7cb30464a7bb9e5f8241375ac1722b1
URL: https://github.com/llvm/llvm-project/commit/b266c818e7cb30464a7bb9e5f8241375ac1722b1
DIFF: https://github.com/llvm/llvm-project/commit/b266c818e7cb30464a7bb9e5f8241375ac1722b1.diff
LOG: [libc][Obvious] Mark functions in DummyFEnv.h as static inline.
Added: 
    
Modified: 
    libc/utils/FPUtil/DummyFEnv.h
Removed: 
    
################################################################################
diff  --git a/libc/utils/FPUtil/DummyFEnv.h b/libc/utils/FPUtil/DummyFEnv.h
index 4f4c2c05a231..19c661fd23eb 100644
--- a/libc/utils/FPUtil/DummyFEnv.h
+++ b/libc/utils/FPUtil/DummyFEnv.h
@@ -17,15 +17,15 @@ namespace fputil {
 
 // All dummy functions silently succeed.
 
-int clearExcept(int) { return 0; }
+static inline int clearExcept(int) { return 0; }
 
-int testExcept(int) { return 0; }
+static inline int testExcept(int) { return 0; }
 
-int raiseExcept(int) { return 0; }
+static inline int raiseExcept(int) { return 0; }
 
-int getRound() { return FE_TONEAREST; }
+static inline int getRound() { return FE_TONEAREST; }
 
-int setRound(int) { return 0; }
+static inline int setRound(int) { return 0; }
 
 } // namespace fputil
 } // namespace __llvm_libc
        
    
    
More information about the libc-commits
mailing list