[libc-commits] [libc] [libc][math][c23] Add fmodf16 C23 math function (PR #94629)
via libc-commits
libc-commits at lists.llvm.org
Fri Jun 7 14:52:39 PDT 2024
================
@@ -25,21 +26,28 @@ template <typename T> class BinaryOpSingleOutputPerf {
static void run_perf_in_range(Func myFunc, Func otherFunc,
StorageType startingBit, StorageType endingBit,
- StorageType N, std::ofstream &log) {
+ size_t N, size_t rounds, std::ofstream &log) {
+ if (endingBit - startingBit < N)
+ N = endingBit - startingBit;
+
+ size_t total_ops = N * rounds;
----------------
lntue wrote:
or you can do `/ N / rounds` and don't have to hope.
https://github.com/llvm/llvm-project/pull/94629
More information about the libc-commits
mailing list