[libc-commits] [libc] [libc][math] Implement double precision cos correctly rounded to all rounding modes. (PR #96591)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Tue Jun 25 08:35:38 PDT 2024


================
@@ -231,15 +147,21 @@ LLVM_LIBC_FUNCTION(double, sin, (double x)) {
   DoubleDouble sin_k_cos_y = fputil::quick_mult<NO_FMA>(cos_y, sin_k);
   DoubleDouble cos_k_sin_y = fputil::quick_mult<NO_FMA>(sin_y, cos_k);
 
-  FPBits sk_cy(sin_k_cos_y.hi);
-  FPBits ck_sy(cos_k_sin_y.hi);
----------------
nickdesaulniers wrote:

were these just unused before? Do we not have `-Wunused` turned on? We ought to.

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


More information about the libc-commits mailing list