From 6b3b777a455ff3d40630cbd685aedf15203ace86 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Fri, 7 Jan 2011 16:58:12 -0800 Subject: [PATCH] c: don't use stdint types --- orc/orcprogram-c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/orc/orcprogram-c.c b/orc/orcprogram-c.c index edcc29c..416971d 100644 --- a/orc/orcprogram-c.c +++ b/orc/orcprogram-c.c @@ -1079,7 +1079,7 @@ c_rule_div255w (OrcCompiler *p, void *user, OrcInstruction *insn) c_get_name_int (src, p, insn, insn->src_args[0]); ORC_ASM_CODE(p, - " %s = ((uint16_t)(((orc_uint16)(%s+128)) + (((orc_uint16)(%s+128))>>8)))>>8;\n", + " %s = ((orc_uint16)(((orc_uint16)(%s+128)) + (((orc_uint16)(%s+128))>>8)))>>8;\n", dest, src, src); } @@ -1093,7 +1093,7 @@ c_rule_divluw (OrcCompiler *p, void *user, OrcInstruction *insn) c_get_name_int (src2, p, insn, insn->src_args[1]); ORC_ASM_CODE(p, - " %s = ((%s&0xff) == 0) ? 255 : ORC_CLAMP_UB(((uint16_t)%s)/((uint16_t)%s&0xff));\n", + " %s = ((%s&0xff) == 0) ? 255 : ORC_CLAMP_UB(((orc_uint16)%s)/((orc_uint16)%s&0xff));\n", dest, src2, src1, src2); } -- 2.7.4