From 74f1512ff113cf35706af57e9d40c78b7d77f49e Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 7 Feb 2021 00:17:17 -0800 Subject: 7690 Convert comments about magic constants into metadata. --- 402time.mu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '402time.mu') diff --git a/402time.mu b/402time.mu index 5407b6b7..fdb98c81 100644 --- a/402time.mu +++ b/402time.mu @@ -7,7 +7,7 @@ type timespec { # TODO: y2038 fn time -> _/eax: int { var t: timespec - var clock/ebx: int <- copy 0 # CLOCK_MONOTONIC + var clock/ebx: int <- copy 0/CLOCK_MONOTONIC var t-addr/ecx: (addr timespec) <- address t syscall_clock_gettime var t-secs-addr/ecx: (addr int) <- get t-addr, tv_sec @@ -18,7 +18,7 @@ fn time -> _/eax: int { # return time in nanoseconds since epoch fn ntime -> _/eax: int { var t: timespec - var clock/ebx: int <- copy 0 # CLOCK_MONOTONIC + var clock/ebx: int <- copy 0/CLOCK_MONOTONIC var t-addr/ecx: (addr timespec) <- address t syscall_clock_gettime var t-nsecs-addr/ecx: (addr int) <- get t-addr, tv_nsec -- cgit 1.4.1-2-gfad0