Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pyodide
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
pyodide
Commits
3e459c8f
Commit
3e459c8f
authored
Sep 18, 2018
by
Roman Yurchak
Committed by
GitHub
Sep 18, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #169 from mdboom/use-bitwise-and
MAINT: Use bitwise and rather than mod, for performance
parents
2e23079a
609e1def
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/hiwire.c
src/hiwire.c
+2
-2
No files found.
src/hiwire.c
View file @
3e459c8f
...
...
@@ -7,11 +7,11 @@ EM_JS(void, hiwire_setup, (), {
{
var
objects
=
hiwire
.
objects
;
while
(
hiwire
.
counter
in
objects
)
{
hiwire
.
counter
=
(
hiwire
.
counter
+
1
)
%
0x8
fffffff
;
hiwire
.
counter
=
(
hiwire
.
counter
+
1
)
&
0x7
fffffff
;
}
var
idval
=
hiwire
.
counter
;
objects
[
idval
]
=
jsval
;
hiwire
.
counter
=
(
hiwire
.
counter
+
1
)
%
0x8
fffffff
;
hiwire
.
counter
=
(
hiwire
.
counter
+
1
)
&
0x7
fffffff
;
return
idval
;
};
...
...
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