[libc-commits] [PATCH] D150374: [libc][math] Implement double precision log2 function correctly rounded to all rounding modes.

Paul Zimmermann via Phabricator via libc-commits libc-commits at lists.llvm.org
Tue May 23 07:44:47 PDT 2023


zimmermann6 accepted this revision.
zimmermann6 added a comment.
This revision is now accepted and ready to land.

here is what I get on my AMD EPYC 7282 for the reciprocal throughput:

  GNU libc version: 2.36
  GNU libc release: stable
  [####################] 100 %
  Ntrial = 20 ; Min = 21.110 + 0.272 clc/call; Median-Min = 0.280 clc/call; Max = 21.622 clc/call;
  [####################] 100 %
  Ntrial = 20 ; Min = 21.312 + 0.198 clc/call; Median-Min = 0.085 clc/call; Max = 23.254 clc/call;
  [####################] 100 %
  Ntrial = 20 ; Min = 31.690 + 0.395 clc/call; Median-Min = 0.345 clc/call; Max = 34.334 clc/call;

and for the latency:

  GNU libc version: 2.36
  GNU libc release: stable
  [####################] 100 %
  Ntrial = 20 ; Min = 58.310 + 0.416 clc/call; Median-Min = 0.304 clc/call; Max = 59.411 clc/call;
  [####################] 100 %
  Ntrial = 20 ; Min = 55.688 + 0.187 clc/call; Median-Min = 0.093 clc/call; Max = 56.306 clc/call;
  [####################] 100 %
  Ntrial = 20 ; Min = 62.254 + 0.355 clc/call; Median-Min = 0.339 clc/call; Max = 62.856 clc/call;


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D150374/new/

https://reviews.llvm.org/D150374



More information about the libc-commits mailing list