aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/sys_windows_amd64.s
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-10-31 17:27:16 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-11-02 12:50:03 +0000
commita1ee0a21cfd3d44f4585c1eb57698460abbfc7f1 (patch)
tree6e7c8995841135b34540f25eac5a4a08e18e34ce /src/runtime/sys_windows_amd64.s
parenta86f549703c107c8b4d83d8e7527521c9e215d9a (diff)
downloadgo-a1ee0a21cfd3d44f4585c1eb57698460abbfc7f1.tar.gz
go-a1ee0a21cfd3d44f4585c1eb57698460abbfc7f1.zip
runtime, time: refactor startNano handling
Move startNano from runtime to time package. In preparation for a subsequent change that speeds up Since and Until. This also makes code simpler as we have less assembly as the result, monotonic time handling is better localized in time package. This changes values returned from nanotime on windows (it does not account for startNano anymore), current comments state that it's important, but it's unclear how it can be important since no other OS does this. Update #25729 Change-Id: I2275d57b7b5ed8fd0d53eb0f19d55a86136cc555 Reviewed-on: https://go-review.googlesource.com/c/146340 Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/sys_windows_amd64.s')
-rw-r--r--src/runtime/sys_windows_amd64.s2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/runtime/sys_windows_amd64.s b/src/runtime/sys_windows_amd64.s
index ec49caa43e..612f0a474d 100644
--- a/src/runtime/sys_windows_amd64.s
+++ b/src/runtime/sys_windows_amd64.s
@@ -486,7 +486,6 @@ loop:
SHLQ $32, CX
ORQ BX, CX
IMULQ $100, CX
- SUBQ runtime·startNano(SB), CX
MOVQ CX, ret+0(FP)
RET
useQPC:
@@ -506,7 +505,6 @@ loop:
SHLQ $32, AX
ORQ BX, AX
IMULQ $100, AX
- SUBQ runtime·startNano(SB), AX
MOVQ AX, mono+16(FP)
MOVQ $_SYSTEM_TIME, DI