summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2012-09-25 21:49:58 -0400
committerSøren Sandmann Pedersen <ssp@redhat.com>2013-07-29 06:21:51 -0400
commitcd316b541cab1866632bdd6873d41891093101a7 (patch)
tree58bbf5c1339bee11c47f7ae21236b0272538346e
parent944ea01850899309d5adbd642e9a88001ebb1e08 (diff)
q15
-rw-r--r--docs/q155
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/q15 b/docs/q15
index 9211a4ae..26ea7d71 100644
--- a/docs/q15
+++ b/docs/q15
@@ -28,3 +28,8 @@ This is a very accurate way to convert un8 into this format:
// add (a, 0xffff)
// xor (a, 0xffff)
}
+
+Here is another very accurate way:
+
+ return mulhrsw (a << 7, 0x807f) - a;
+