LAMMP
4.2.0
Lamina High-Precision Arithmetic Library
载入中...
搜索中...
未找到
fill.c
浏览该文件的文档.
1
/**
2
* Copyright (C) 2026 HJimmyK(Jericho Knox)
3
*
4
* This file is part of LAMMP.
5
*
6
* LAMMP is free software: you can redistribute it and/or modify it under
7
* the terms of the GNU Lesser General Public License (LGPL) as published
8
* by the Free Software Foundation; either version 3 of the License, or
9
* (at your option) any later version.
10
*
11
* This program is distributed WITHOUT ANY WARRANTY.
12
*
13
* See <https://www.gnu.org/licenses/>.
14
*/
15
16
#include "../../../include/lammp/lmmp.h"
17
18
19
void
lmmp_fill
(
mp_ptr
dst
,
mp_size_t
begin
,
mp_size_t
end
,
mp_limb_t
val
) {
20
lmmp_param_assert
(
dst
!=
NULL
);
21
lmmp_param_assert
(
begin
<=
end
);
22
for
(
mp_size_t
i
=
begin
;
i
<
end
;
i
++) {
23
dst
[
i
] =
val
;
24
}
25
}
lmmp_fill
void lmmp_fill(mp_ptr dst, mp_size_t begin, mp_size_t end, mp_limb_t val)
Copyright (C) 2026 HJimmyK(Jericho Knox)
Definition
fill.c:19
mp_ptr
mp_limb_t * mp_ptr
Definition
lmmp.h:117
mp_size_t
uint64_t mp_size_t
Definition
lmmp.h:114
mp_limb_t
uint64_t mp_limb_t
Definition
lmmp.h:113
lmmp_param_assert
#define lmmp_param_assert(x)
Definition
lmmp.h:496
n
#define n
src
lammp
lmmp
fill.c
生成于 2026年 八月 9日 星期日 02:53:58 , 为 LAMMP使用
1.9.8