LAMMP 4.2.0
Lamina High-Precision Arithmetic Library
载入中...
搜索中...
未找到
not.c 文件参考
+ not.c 的引用(Include)关系图:

浏览源代码.

函数

void lmmp_not_ (mp_ptr restrict dst, mp_srcptr restrict numa, mp_size_t na)
 Copyright (C) 2026 HJimmyK(Jericho Knox)
 
mp_limb_t lmmp_shlnot_ (mp_ptr restrict dst, mp_srcptr restrict numa, mp_size_t na, mp_size_t shl)
 

函数说明

◆ lmmp_not_()

void lmmp_not_ ( mp_ptr restrict  dst,
mp_srcptr restrict  numa,
mp_size_t  na 
)

Copyright (C) 2026 HJimmyK(Jericho Knox)

This file is part of LAMMP.

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

This program is distributed WITHOUT ANY WARRANTY.

See https://www.gnu.org/licenses/.

在文件 not.c19 行定义.

19 {
20 if (dst == numa) {
21 for (mp_size_t i = 0; i < na; i++) {
22 dst[i] = ~dst[i];
23 }
24 } else {
25 for (mp_size_t i = 0; i < na; i++) {
26 dst[i] = ~numa[i];
27 }
28 }
29}
uint64_t mp_size_t
Definition lmmp.h:77
#define n

引用了 n.

被这些函数引用 lmmp_shlnot_().

+ 这是这个函数的调用关系图:

◆ lmmp_shlnot_()

mp_limb_t lmmp_shlnot_ ( mp_ptr restrict  dst,
mp_srcptr restrict  numa,
mp_size_t  na,
mp_size_t  shl 
)

在文件 not.c31 行定义.

31 {
32 if (shl == 0) {
34 return 0;
35 } else if (dst == numa) {
36 mp_limb_t t, m, n;
37 t = dst[0] << shl;
38 m = dst[0] >> (LIMB_BITS - shl);
39 dst[0] = ~t;
40 for (mp_size_t i = 1; i < na; i++) {
41 t = dst[i] << shl;
42 n = dst[i] >> (LIMB_BITS - shl);
43 dst[i] = ~(t | m);
44 m = n;
45 }
46 return m;
47 } else {
48 /* seq(dst,numa) */
49 mp_limb_t t, m, n;
50 t = numa[0] << shl;
51 m = numa[0] >> (LIMB_BITS - shl);
52 dst[0] = ~t;
53 for (mp_size_t i = 1; i < na; i++) {
54 t = numa[i] << shl;
55 n = numa[i] >> (LIMB_BITS - shl);
56 dst[i] = ~(t | m);
57 m = n;
58 }
59 return m;
60 }
61}
uint64_t mp_limb_t
Definition lmmp.h:76
#define LIMB_BITS
Definition lmmp.h:86
#define t
void lmmp_not_(mp_ptr restrict dst, mp_srcptr restrict numa, mp_size_t na)
Copyright (C) 2026 HJimmyK(Jericho Knox)
Definition not.c:19

引用了 LIMB_BITS, lmmp_not_(), n , 以及 t.

+ 函数调用图: