Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
17 deletions
+10
-17
runtime.c
src/pkg/runtime/runtime.c
+1
-1
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)
...
@@ -429,7 +429,7 @@ runtime·timediv(int64 v, int32 div, int32 *rem)
res
=
0
;
res
=
0
;
for
(
bit
=
0x40000000
;
bit
!=
0
;
bit
>>=
1
)
{
for
(
bit
=
0x40000000
;
bit
!=
0
;
bit
>>=
1
)
{
if
(
v
>=
(
int64
)
bit
*
div
)
{
if
(
v
>=
(
int64
)
bit
*
div
)
{
v
-=
(
int64
)
bit
*
div
;
v
=
v
-
(
int64
)
bit
*
div
;
res
+=
bit
;
res
+=
bit
;
}
}
}
}
...
...
src/pkg/runtime/vlrt_arm.c
View file @
c7d5c438
...
@@ -66,27 +66,20 @@ void runtime·abort(void);
...
@@ -66,27 +66,20 @@ void runtime·abort(void);
void
void
_addv
(
Vlong
*
r
,
Vlong
a
,
Vlong
b
)
_addv
(
Vlong
*
r
,
Vlong
a
,
Vlong
b
)
{
{
ulong
lo
,
hi
;
r
->
lo
=
a
.
lo
+
b
.
lo
;
r
->
hi
=
a
.
hi
+
b
.
hi
;
lo
=
a
.
lo
+
b
.
lo
;
if
(
r
->
lo
<
a
.
lo
)
hi
=
a
.
hi
+
b
.
hi
;
r
->
hi
++
;
if
(
lo
<
a
.
lo
)
hi
++
;
r
->
lo
=
lo
;
r
->
hi
=
hi
;
}
}
#pragma textflag 7
void
void
_subv
(
Vlong
*
r
,
Vlong
a
,
Vlong
b
)
_subv
(
Vlong
*
r
,
Vlong
a
,
Vlong
b
)
{
{
ulong
lo
,
hi
;
r
->
lo
=
a
.
lo
-
b
.
lo
;
r
->
hi
=
a
.
hi
-
b
.
hi
;
lo
=
a
.
lo
-
b
.
lo
;
if
(
r
->
lo
>
a
.
lo
)
hi
=
a
.
hi
-
b
.
hi
;
r
->
hi
--
;
if
(
lo
>
a
.
lo
)
hi
--
;
r
->
lo
=
lo
;
r
->
hi
=
hi
;
}
}
void
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