From: William Manley Date: Tue, 28 Jan 2014 15:02:57 +0000 (+0000) Subject: docs: mulhsw, mulhsw shifts by 16, not 8 X-Git-Tag: orc-0.4.19~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e1cfc5412a074ef8a33c0fb719990a6868fcebfd;p=platform%2Fupstream%2Forc.git docs: mulhsw, mulhsw shifts by 16, not 8 The documentation said that mulhsw and mulsuw was equivalent to: (a * b) >> 8 when the implementation actually shifts by 16 bits. https://bugzilla.gnome.org/show_bug.cgi?id=723170 --- diff --git a/testsuite/generate_xml_table2.c b/testsuite/generate_xml_table2.c index 4d7d6ce..d9e0a50 100644 --- a/testsuite/generate_xml_table2.c +++ b/testsuite/generate_xml_table2.c @@ -116,8 +116,8 @@ struct a ops[] = { { "minsw", "(a < b) ? a : b", "signed minimum" }, { "minuw", "(a < b) ? a : b", "unsigned minimum" }, { "mullw", "a * b", "low bits of multiply" }, - { "mulhsw", "(a * b) >> 8", "high bits of signed multiply" }, - { "mulhuw", "(a * b) >> 8", "high bits of unsigned multiply" }, + { "mulhsw", "(a * b) >> 16", "high bits of signed multiply" }, + { "mulhuw", "(a * b) >> 16", "high bits of unsigned multiply" }, { "orw", "a | b", "bitwise or" }, { "shlw", "a << b", "shift left" }, { "shrsw", "a >> b", "signed shift right" },