summary refs log tree commit diff
path: root/util.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin@c9x.me>2017-06-06 13:46:33 -0400
committerQuentin Carbonneaux <quentin@c9x.me>2017-06-06 13:46:33 -0400
commit9908ae067af59cb6e43997552cb0e03e8f082f31 (patch)
treedfbeea9a9f617850768dc489232c92a53ea70476 /util.c
parent5dcf8c14cbefb3f96262e5fbe5168cfe48e6fd3a (diff)
downloadroux-9908ae067af59cb6e43997552cb0e03e8f082f31.tar.gz
isreg() does not need to be inlined
Diffstat (limited to 'util.c')
-rw-r--r--util.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/util.c b/util.c
index 8527931..f1a5383 100644
--- a/util.c
+++ b/util.c
@@ -190,6 +190,12 @@ str(uint32_t id)
 }
 
 int
+isreg(Ref r)
+{
+	return rtype(r) == RTmp && r.val < Tmp0;
+}
+
+int
 iscmp(int op, int *pk, int *pc)
 {
 	if (Ocmpw <= op && op <= Ocmpw1) {