LMMP
4.3.0
Lamina High-Precision Arithmetic Library
Toggle main menu visibility
载入中...
搜索中...
未找到
main.c
浏览该文件的文档.
1
/**
2
* Copyright (C) 2026 HJimmyK (Jericho Knox)
3
*
4
* This file is part of LMMP.
5
*
6
* LMMP is free software: you can redistribute it and/or modify it
7
* under the terms of the GNU Lesser General Public License as
8
* published by the Free Software Foundation; either version 3 of
9
* the License, or (at your option) any later version.
10
*
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU Lesser General Public License for more details.
15
*
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with this library. If not, see
18
* <https://www.gnu.org/licenses/>.
19
*
20
* SPDX-License-Identifier: LGPL-3.0-or-later
21
*/
22
23
#include "
cases.h
"
24
#include "
lmmp/lmmp.h
"
25
26
int
main
(
void
) {
27
setvbuf(stdout, NULL, _IONBF, 0);
28
lmmp_global_init
();
29
test_combin_boundaries
();
30
test_binom
();
31
test_binvert
();
32
test_cbrt
();
33
test_combin
();
34
test_divexact
();
35
test_fib
();
36
test_gcd
();
37
test_gcd_lehmer
();
38
test_gcdext
();
39
test_modinv
();
40
test_nthroot
();
41
test_pow
();
42
test_powmod
();
43
test_prime2
();
44
test_prime_n
();
45
test_prime_uint
();
46
test_proth
();
47
test_sqrt
();
48
lmmp_global_deinit
();
49
return
lmmp_test_finish
();
50
}
main
int main(void)
Copyright (C) 2026 HJimmyK (Jericho Knox)
定义
main.c:26
lmmp.h
lmmp_global_init
void lmmp_global_init(void)
全局初始化函数(线程局部的)
定义
global.c:58
lmmp_global_deinit
void lmmp_global_deinit(void)
全局释放函数(线程局部的)
定义
global.c:65
cases.h
test_nthroot
void test_nthroot(void)
定义
test_nthroot.c:276
test_proth
void test_proth(void)
定义
test_proth.c:137
test_divexact
void test_divexact(void)
定义
test_divexact.c:208
test_gcd
void test_gcd(void)
定义
test_gcd.c:218
test_combin
void test_combin(void)
定义
test_combin.c:260
test_combin_boundaries
void test_combin_boundaries(void)
Copyright (C) 2026 HJimmyK (Jericho Knox)
定义
test_combin_boundaries.c:125
test_fib
void test_fib(void)
定义
test_fib.c:129
test_sqrt
void test_sqrt(void)
定义
test_sqrt.c:411
test_prime_uint
void test_prime_uint(void)
定义
test_prime_uint.c:199
test_prime_n
void test_prime_n(void)
定义
test_prime_n.c:367
test_gcdext
void test_gcdext(void)
定义
test_gcdext.c:396
test_powmod
void test_powmod(void)
定义
test_powmod.c:542
test_binom
void test_binom(void)
定义
test_binom.c:189
test_pow
void test_pow(void)
定义
test_pow.c:222
test_modinv
void test_modinv(void)
定义
test_modinv.c:148
test_gcd_lehmer
void test_gcd_lehmer(void)
定义
test_gcd_lehmer.c:470
test_cbrt
void test_cbrt(void)
定义
test_cbrt.c:286
test_prime2
void test_prime2(void)
定义
test_prime2.c:355
test_binvert
void test_binvert(void)
定义
test_binvert.c:210
lmmp_test_finish
int lmmp_test_finish(void)
定义
test.c:51
src
lmmp
numth
test
main.c
生成于
, 为 LMMP使用
1.18.0