ESP-IDF
mp_int::used
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
mp_int::used
mp_int::used field
Syntax
Show:
Summary
Declaration
from
libtommath.h:118
int
used
;
Examples
References
from
examples
Code
Location
Referrer
int
used
,
alloc
,
sign
;
libtommath.h:118
if
(
a
->
used
>
b
->
used
)
{
libtommath.h:219
s_mp_add()
min
=
b
->
used
;
libtommath.h:220
s_mp_add()
max
=
a
->
used
;
libtommath.h:221
s_mp_add()
min
=
a
->
used
;
libtommath.h:224
s_mp_add()
max
=
b
->
used
;
libtommath.h:225
s_mp_add()
olduse
=
c
->
used
;
libtommath.h:237
s_mp_add()
c
->
used
=
max
+
1
;
libtommath.h:238
s_mp_add()
for
(
i
=
c
->
used
;
i
<
olduse
;
i
++
)
{
libtommath.h:288
s_mp_add()
min
=
b
->
used
;
libtommath.h:305
s_mp_sub()
max
=
a
->
used
;
libtommath.h:306
s_mp_sub()
olduse
=
c
->
used
;
libtommath.h:314
s_mp_sub()
c
->
used
=
max
;
libtommath.h:315
s_mp_sub()
for
(
i
=
c
->
used
;
i
<
olduse
;
i
++
)
{
libtommath.h:356
s_mp_sub()
a
->
used
=
0
;
libtommath.h:385
mp_init()
for
(
i
=
0
;
i
<
a
->
used
;
i
++
)
{
libtommath.h:402
mp_clear()
a
->
alloc
=
a
->
used
=
0
;
libtommath.h:411
mp_clear()
res
=
s_mp_mul
(
a
,
b
,
c
)
;
/* uses s_mp_mul_digs */
libtommath.h:524
mp_mul()
c
->
sign
=
(
c
->
used
>
0
)
?
neg
:
MP_ZPOS
;
libtommath.h:531
mp_mul()
if
(
a
->
used
>
1
)
{
libtommath.h:714
mp_cmp_d()
if
(
a
->
used
>
b
->
used
)
{
libtommath.h:935
mp_cmp_mag()
if
(
a
->
used
<
b
->
used
)
{
libtommath.h:939
mp_cmp_mag()
tmpa
=
a
->
dp
+
(
a
->
used
-
1
)
;
libtommath.h:944
mp_cmp_mag()
tmpb
=
b
->
dp
+
(
a
->
used
-
1
)
;
libtommath.h:947
mp_cmp_mag()
for
(
n
=
0
;
n
<
a
->
used
;
++
n
,
--
tmpa
,
--
tmpb
)
{
libtommath.h:950
mp_cmp_mag()
a
->
used
+=
1
;
libtommath.h:987
mp_read_unsigned_bin()
while
(
mp_iszero
(
&
t
)
==
0
)
{
libtommath.h:1011
mp_to_unsigned_bin()
tmpc
=
c
->
dp
+
(
c
->
used
-
1
)
;
libtommath.h:1081
mp_div_2d()
for
(
x
=
c
->
used
-
1
;
x
>=
0
;
x
--
)
{
libtommath.h:1085
mp_div_2d()
a
->
used
=
0
;
libtommath.h:1126
mp_zero()
if
(
b
->
alloc
<
a
->
used
)
{
libtommath.h:1147
mp_copy()
if
(
(
res
=
mp_grow
(
b
,
a
->
used
)
)
!=
MP_OKAY
)
{
libtommath.h:1148
mp_copy()
for
(
n
=
0
;
n
<
a
->
used
;
n
++
)
{
libtommath.h:1166
mp_copy()
for
(
;
n
<
b
->
used
;
n
++
)
{
libtommath.h:1171
mp_copy()
b
->
used
=
a
->
used
;
libtommath.h:1177
mp_copy()
if
(
a
->
used
<=
b
)
{
libtommath.h:1195
mp_rshd()
for
(
x
=
0
;
x
<
(
a
->
used
-
b
)
;
x
++
)
{
libtommath.h:1221
mp_rshd()
for
(
;
x
<
a
->
used
;
x
++
)
{
libtommath.h:1226
mp_rshd()
a
->
used
-=
b
;
libtommath.h:1232
mp_rshd()
while
(
a
->
used
>
0
&&
a
->
dp
[
a
->
used
-
1
]
==
0
)
{
libtommath.h:1263
mp_clamp()
--
(
a
->
used
)
;
libtommath.h:1264
mp_clamp()
if
(
a
->
used
==
0
)
{
libtommath.h:1268
mp_clamp()
a
->
used
=
(
a
->
dp
[
0
]
!=
0
)
?
1
:
0
;
libtommath.h:1343
mp_set()
if
(
c
->
alloc
<
(
int
)
(
c
->
used
+
b
/
DIGIT_BIT
+
1
)
)
{
libtommath.h:1412
mp_mul_2d()
if
(
(
res
=
mp_grow
(
c
,
c
->
used
+
b
/
DIGIT_BIT
+
1
)
)
!=
MP_OKAY
)
{
libtommath.h:1413
mp_mul_2d()
for
(
x
=
0
;
x
<
c
->
used
;
x
++
)
{
libtommath.h:1442
mp_mul_2d()
c
->
dp
[
(
c
->
used
)
++
]
=
r
;
libtommath.h:1456
mp_mul_2d()
if
(
a
->
alloc
<
a
->
used
+
b
)
{
libtommath.h:1532
mp_lshd()
if
(
(
res
=
mp_grow
(
a
,
a
->
used
+
b
)
)
!=
MP_OKAY
)
{
libtommath.h:1533
mp_lshd()
a
->
used
+=
b
;
libtommath.h:1542
mp_lshd()
top
=
a
->
dp
+
a
->
used
-
1
;
libtommath.h:1545
mp_lshd()
bottom
=
a
->
dp
+
a
->
used
-
1
-
b
;
libtommath.h:1548
mp_lshd()
for
(
x
=
a
->
used
-
1
;
x
>=
b
;
x
--
)
{
libtommath.h:1554
mp_lshd()
if
(
a
->
used
==
0
)
{
libtommath.h:1576
mp_count_bits()
r
=
(
a
->
used
-
1
)
*
DIGIT_BIT
;
libtommath.h:1581
mp_count_bits()
q
=
a
->
dp
[
a
->
used
-
1
]
;
libtommath.h:1584
mp_count_bits()
if
(
b
>=
(
int
)
(
a
->
used
*
DIGIT_BIT
)
)
{
libtommath.h:1606
mp_mod_2d()
for
(
x
=
(
b
/
DIGIT_BIT
)
+
(
(
b
%
DIGIT_BIT
)
==
0
?
0
:
1
)
;
x
<
c
->
used
;
x
++
)
{
libtommath.h:1617
mp_mod_2d()
if
(
mp_iszero
(
b
)
==
1
)
{
libtommath.h:1638
mp_div()
c
->
sign
=
(
mp_iszero
(
c
)
==
MP_YES
)
?
MP_ZPOS
:
n2
;
libtommath.h:1688
mp_div()
d
->
sign
=
(
mp_iszero
(
d
)
==
MP_YES
)
?
MP_ZPOS
:
n
;
libtommath.h:1692
mp_div()
digidx
=
X
->
used
-
1
;
libtommath.h:2027
s_mp_exptmod()
a
->
used
=
b
/
DIGIT_BIT
+
1
;
libtommath.h:2260
mp_2expt()
if
(
(
res
=
mp_2expt
(
a
,
b
->
used
*
2
*
DIGIT_BIT
)
)
!=
MP_OKAY
)
{
libtommath.h:2277
mp_reduce_setup()
int
res
,
um
=
m
->
used
;
libtommath.h:2292
mp_reduce()
MIN
(
a
->
used
,
b
->
used
)
<
libtommath.h:2383
s_mp_mul_digs()
t
.
used
=
digs
;
libtommath.h:2391
s_mp_mul_digs()
pa
=
a
->
used
;
libtommath.h:2394
s_mp_mul_digs()
pb
=
MIN
(
b
->
used
,
digs
-
ix
)
;
libtommath.h:2400
s_mp_mul_digs()
pa
=
MIN
(
digs
,
a
->
used
+
b
->
used
)
;
libtommath.h:2470
fast_s_mp_mul_digs()
ty
=
MIN
(
b
->
used
-
1
,
ix
)
;
libtommath.h:2480
fast_s_mp_mul_digs()
iy
=
MIN
(
a
->
used
-
tx
,
ty
+
1
)
;
libtommath.h:2490
fast_s_mp_mul_digs()
olduse
=
c
->
used
;
libtommath.h:2506
fast_s_mp_mul_digs()
c
->
used
=
pa
;
libtommath.h:2507
fast_s_mp_mul_digs()
a
->
used
=
0
;
libtommath.h:2543
mp_init_size()
pa
=
a
->
used
;
libtommath.h:2565
s_mp_sqr()
t
.
used
=
2
*
pa
+
1
;
libtommath.h:2571
s_mp_sqr()
if
(
(
res
=
mp_init_size
(
&
t
,
a
->
used
+
b
->
used
+
1
)
)
!=
MP_OKAY
)
{
libtommath.h:2641
s_mp_mul_high_digs()
t
.
used
=
a
->
used
+
b
->
used
+
1
;
libtommath.h:2644
s_mp_mul_high_digs()
pa
=
a
->
used
;
libtommath.h:2646
s_mp_mul_high_digs()
pb
=
b
->
used
;
libtommath.h:2647
s_mp_mul_high_digs()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
mp_int::used
is written by 16 functions and is read by 24 functions:
s_mp_add()
s_mp_sub()
mp_init()
mp_clear()
mp_read_unsigned_bin()
mp_zero()
mp_copy()
mp_rshd()
mp_set()
mp_lshd()
mp_2expt()
s_mp_mul_digs()
fast_s_mp_mul_digs()
mp_init_size()
s_mp_sqr()
s_mp_mul_high_digs()
All items filtered out
mp_int::used
s_mp_add()
s_mp_sub()
mp_clear()
mp_mul()
mp_cmp_d()
mp_cmp_mag()
mp_read_unsigned_bin()
mp_to_unsigned_bin()
mp_div_2d()
mp_copy()
mp_rshd()
mp_clamp()
mp_mul_2d()
mp_lshd()
mp_count_bits()
mp_mod_2d()
mp_div()
s_mp_exptmod()
mp_reduce_setup()
mp_reduce()
s_mp_mul_digs()
fast_s_mp_mul_digs()
s_mp_sqr()
s_mp_mul_high_digs()
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out