Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
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
Kirill Smelkov
go
Commits
c7d5c438
Commit
c7d5c438
authored
Jul 29, 2013
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: adjust timediv to avoid _vasop; mark _subv okay
R=dvyukov CC=golang-dev
https://golang.org/cl/12028046
parent
98cc58e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
17 deletions
+10
-17
src/pkg/runtime/runtime.c
src/pkg/runtime/runtime.c
+1
-1
src/pkg/runtime/vlrt_arm.c
src/pkg/runtime/vlrt_arm.c
+9
-16
No files found.
src/pkg/runtime/runtime.c
View file @
c7d5c438
...
...
@@ -429,7 +429,7 @@ runtime·timediv(int64 v, int32 div, int32 *rem)
res
=
0
;
for
(
bit
=
0x40000000
;
bit
!=
0
;
bit
>>=
1
)
{
if
(
v
>=
(
int64
)
bit
*
div
)
{
v
-=
(
int64
)
bit
*
div
;
v
=
v
-
(
int64
)
bit
*
div
;
res
+=
bit
;
}
}
...
...
src/pkg/runtime/vlrt_arm.c
View file @
c7d5c438
...
...
@@ -66,27 +66,20 @@ void runtime·abort(void);
void
_addv
(
Vlong
*
r
,
Vlong
a
,
Vlong
b
)
{
ulong
lo
,
hi
;
lo
=
a
.
lo
+
b
.
lo
;
hi
=
a
.
hi
+
b
.
hi
;
if
(
lo
<
a
.
lo
)
hi
++
;
r
->
lo
=
lo
;
r
->
hi
=
hi
;
r
->
lo
=
a
.
lo
+
b
.
lo
;
r
->
hi
=
a
.
hi
+
b
.
hi
;
if
(
r
->
lo
<
a
.
lo
)
r
->
hi
++
;
}
#pragma textflag 7
void
_subv
(
Vlong
*
r
,
Vlong
a
,
Vlong
b
)
{
ulong
lo
,
hi
;
lo
=
a
.
lo
-
b
.
lo
;
hi
=
a
.
hi
-
b
.
hi
;
if
(
lo
>
a
.
lo
)
hi
--
;
r
->
lo
=
lo
;
r
->
hi
=
hi
;
r
->
lo
=
a
.
lo
-
b
.
lo
;
r
->
hi
=
a
.
hi
-
b
.
hi
;
if
(
r
->
lo
>
a
.
lo
)
r
->
hi
--
;
}
void
...
...
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