Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
fe03e7bc
Commit
fe03e7bc
authored
Dec 18, 2015
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
py/obj: Fix float constants for MICROPY_OBJ_REPR_C.
parent
a6765140
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
py/obj.h
py/obj.h
+2
-2
No files found.
py/obj.h
View file @
fe03e7bc
...
...
@@ -135,8 +135,8 @@ static inline bool MP_OBJ_IS_SMALL_INT(mp_const_obj_t o)
#define MP_OBJ_SMALL_INT_VALUE(o) (((mp_int_t)(o)) >> 1)
#define MP_OBJ_NEW_SMALL_INT(small_int) ((mp_obj_t)((((mp_int_t)(small_int)) << 1) | 1))
#define mp_const_float_e MP_ROM_PTR((
(0x402df854 & ~3) | 2) + 0x80800000
)
#define mp_const_float_pi MP_ROM_PTR((
(0x40490fdb & ~3) | 2) + 0x80800000
)
#define mp_const_float_e MP_ROM_PTR((
mp_obj_t)(((0x402df854 & ~3) | 2) + 0x80800000)
)
#define mp_const_float_pi MP_ROM_PTR((
mp_obj_t)(((0x40490fdb & ~3) | 2) + 0x80800000)
)
static
inline
bool
mp_obj_is_float
(
mp_const_obj_t
o
)
{
return
(((
mp_uint_t
)(
o
))
&
3
)
==
2
&&
(((
mp_uint_t
)(
o
))
&
0xff800007
)
!=
0x00000006
;
}
...
...
Write
Preview
Markdown
is supported
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