aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ops_template.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/ops_template.h b/ops_template.h
index 4cada782c2..7adf7be6a7 100644
--- a/ops_template.h
+++ b/ops_template.h
@@ -204,9 +204,14 @@ static int glue(compute_all_shl, SUFFIX)(void)
return cf | pf | af | zf | sf | of;
}
-#if DATA_BITS == 32
static int glue(compute_c_shl, SUFFIX)(void)
{
+ return (CC_SRC >> (DATA_BITS - 1)) & CC_C;
+}
+
+#if DATA_BITS == 32
+static int glue(compute_c_sar, SUFFIX)(void)
+{
return CC_SRC & 1;
}
#endif