Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
eb90edb5
Commit
eb90edb5
authored
8 years ago
by
Damien George
Browse files
Options
Downloads
Patches
Plain Diff
py/mpz: Remove obsolete declaration of mpz_as_str_size.
parent
dcdcc43d
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
py/mpz.c
+1
-1
1 addition, 1 deletion
py/mpz.c
py/mpz.h
+0
-1
0 additions, 1 deletion
py/mpz.h
with
1 addition
and
2 deletions
py/mpz.c
+
1
−
1
View file @
eb90edb5
...
@@ -1677,7 +1677,7 @@ mp_float_t mpz_as_float(const mpz_t *i) {
...
@@ -1677,7 +1677,7 @@ mp_float_t mpz_as_float(const mpz_t *i) {
#if 0
#if 0
this function is unused
this function is unused
char *mpz_as_str(const mpz_t *i, mp_uint_t base) {
char *mpz_as_str(const mpz_t *i, mp_uint_t base) {
char *s = m_new(char, mp
z_as_str_size(i
, base, NULL, '\0'));
char *s = m_new(char, mp
_int_format_size(mpz_max_num_bits(i)
, base, NULL, '\0'));
mpz_as_str_inpl(i, base, NULL, 'a', '\0', s);
mpz_as_str_inpl(i, base, NULL, 'a', '\0', s);
return s;
return s;
}
}
...
...
This diff is collapsed.
Click to expand it.
py/mpz.h
+
0
−
1
View file @
eb90edb5
...
@@ -137,7 +137,6 @@ void mpz_as_bytes(const mpz_t *z, bool big_endian, size_t len, byte *buf);
...
@@ -137,7 +137,6 @@ void mpz_as_bytes(const mpz_t *z, bool big_endian, size_t len, byte *buf);
#if MICROPY_PY_BUILTINS_FLOAT
#if MICROPY_PY_BUILTINS_FLOAT
mp_float_t
mpz_as_float
(
const
mpz_t
*
z
);
mp_float_t
mpz_as_float
(
const
mpz_t
*
z
);
#endif
#endif
size_t
mpz_as_str_size
(
const
mpz_t
*
i
,
mp_uint_t
base
,
const
char
*
prefix
,
char
comma
);
size_t
mpz_as_str_inpl
(
const
mpz_t
*
z
,
mp_uint_t
base
,
const
char
*
prefix
,
char
base_char
,
char
comma
,
char
*
str
);
size_t
mpz_as_str_inpl
(
const
mpz_t
*
z
,
mp_uint_t
base
,
const
char
*
prefix
,
char
base_char
,
char
comma
,
char
*
str
);
#endif // __MICROPY_INCLUDED_PY_MPZ_H__
#endif // __MICROPY_INCLUDED_PY_MPZ_H__
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment