From: David Schleef Date: Sat, 8 Jan 2011 00:58:12 +0000 (-0800) Subject: c: don't use stdint types X-Git-Tag: orc-0.4.12~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b3b777a455ff3d40630cbd685aedf15203ace86;p=platform%2Fupstream%2Forc.git c: don't use stdint types --- 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); }