Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
254cfa6c
Commit
254cfa6c
authored
Nov 27, 2015
by
Damien George
Browse files
py: Use uintptr_t instead of mp_uint_t in MP_TAGPTR_* macros.
parent
9f6976b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/bc.h
View file @
254cfa6c
...
...
@@ -99,10 +99,10 @@ const byte *mp_bytecode_print_str(const byte *ip);
#define mp_bytecode_print_inst(code) mp_bytecode_print2(code, 1)
// Helper macros to access pointer with least significant bits holding flags
#define MP_TAGPTR_PTR(x) ((void*)((
mp_
uint_t)(x) & ~((
mp_
uint_t)3)))
#define MP_TAGPTR_TAG0(x) ((
mp_
uint_t)(x) & 1)
#define MP_TAGPTR_TAG1(x) ((
mp_
uint_t)(x) & 2)
#define MP_TAGPTR_MAKE(ptr, tag) ((void*)((
mp_
uint_t)(ptr) | (tag)))
#define MP_TAGPTR_PTR(x) ((void*)((uint
ptr
_t)(x) & ~((uint
ptr
_t)3)))
#define MP_TAGPTR_TAG0(x) ((uint
ptr
_t)(x) & 1)
#define MP_TAGPTR_TAG1(x) ((uint
ptr
_t)(x) & 2)
#define MP_TAGPTR_MAKE(ptr, tag) ((void*)((uint
ptr
_t)(ptr) | (tag)))
#if MICROPY_PERSISTENT_CODE_LOAD || MICROPY_PERSISTENT_CODE_SAVE
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment