aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/mips64
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2018-11-22 11:46:44 +0100
committerTobias Klauser <tobias.klauser@gmail.com>2018-12-02 15:12:26 +0000
commit9e277f7d554455e16ba3762541c53e9bfc1d8188 (patch)
treea72e026004116edc63d3171d5d4e612ad299c265 /src/cmd/compile/internal/mips64
parentb397248168fcb26400ac6afb88bf6080497a819e (diff)
downloadgo-9e277f7d554455e16ba3762541c53e9bfc1d8188.tar.gz
go-9e277f7d554455e16ba3762541c53e9bfc1d8188.zip
all: use "reports whether" consistently instead of "returns whether"
Follow-up for CL 147037 and after Brad noticed the "returns whether" pattern during the review of CL 150621. Go documentation style for boolean funcs is to say: // Foo reports whether ... func Foo() bool (rather than "returns whether") Created with: $ perl -i -npe 's/returns whether/reports whether/' $(git grep -l "returns whether" | grep -v vendor) Change-Id: I15fe9ff99180ad97750cd05a10eceafdb12dc0b4 Reviewed-on: https://go-review.googlesource.com/c/150918 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/mips64')
-rw-r--r--src/cmd/compile/internal/mips64/ssa.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/compile/internal/mips64/ssa.go b/src/cmd/compile/internal/mips64/ssa.go
index bf2076f5fb..8a2d2b0f7a 100644
--- a/src/cmd/compile/internal/mips64/ssa.go
+++ b/src/cmd/compile/internal/mips64/ssa.go
@@ -14,12 +14,12 @@ import (
"cmd/internal/obj/mips"
)
-// isFPreg returns whether r is an FP register
+// isFPreg reports whether r is an FP register
func isFPreg(r int16) bool {
return mips.REG_F0 <= r && r <= mips.REG_F31
}
-// isHILO returns whether r is HI or LO register
+// isHILO reports whether r is HI or LO register
func isHILO(r int16) bool {
return r == mips.REG_HI || r == mips.REG_LO
}