LMMP 4.3.0
Lamina High-Precision Arithmetic Library
载入中...
搜索中...
未找到
limb_sizes.h 文件参考
#include "support/perf.h"
#include "lmmp/lmmpn.h"
limb_sizes.h 的引用(Include)关系图:
此图展示该文件被哪些文件直接或间接地引用了:

浏览该文件的源代码.

函数

static void run_limb_sizes (const char *name, double(*bench)(mp_size_t, const bench_options *))
 Copyright (C) 2026 HJimmyK (Jericho Knox)

函数说明

◆ run_limb_sizes()

void run_limb_sizes ( const char * name,
double(* bench )(mp_size_t, const bench_options *) )
inlinestatic

Copyright (C) 2026 HJimmyK (Jericho Knox)

This file is part of LMMP.

LMMP is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library. If not, see https://www.gnu.org/licenses/.

SPDX-License-Identifier: LGPL-3.0-or-later

在文件 limb_sizes.h 第 29 行定义.

29 {
30 const mp_size_t sizes[] = {100, 1000, 10000};
31 for (size_t i = 0; i < ARRAY_SIZE(sizes); ++i) {
32 mp_size_t n = sizes[i];
33 report_n(name, n, bench(n, &bench_default), n * 8.0);
34 }
35}
uint64_t mp_size_t
定义 lmmp.h:93
#define n
#define ARRAY_SIZE(a)
Copyright (C) 2026 HJimmyK (Jericho Knox)
定义 perf.h:40

引用了 ARRAY_SIZE , 以及 n.