[libc-commits] [libc] [libc][math][c23] Add f16fmaf C23 math	function (PR #95483)
    via libc-commits 
    libc-commits at lists.llvm.org
       
    Fri Jun 14 08:44:37 PDT 2024
    
    
  
================
@@ -231,6 +231,8 @@ fma(InType x, InType y, InType z) {
   OutStorageType result = 0;
   int r_exp = 0; // Unbiased exponent of the result
 
+  int round_mode = fputil::quick_get_round();
----------------
overmighty wrote:
It's also used after the `if`/`else`. I moved the `round_mode` declaration from there to avoid calling `quick_get_round()` twice.
https://github.com/llvm/llvm-project/pull/95483
    
    
More information about the libc-commits
mailing list