Mercurial > mm7
comparison mm7_1.cpp @ 1621:25d3f9e43634
Merge
author | Grumpy7 |
---|---|
date | Sun, 15 Sep 2013 02:21:26 +0200 |
parents | 89dec2be255f |
children | 7182930263b3 |
comparison
equal
deleted
inserted
replaced
1620:61ea994a1812 | 1621:25d3f9e43634 |
---|---|
62 //----- (004453C0) mm6----------------------------------------------------- | 62 //----- (004453C0) mm6----------------------------------------------------- |
63 //----- (004A1760) mm6_chinese--------------------------------------------- | 63 //----- (004A1760) mm6_chinese--------------------------------------------- |
64 __int64 fixpoint_sub0(int a1, int a2) | 64 __int64 fixpoint_sub0(int a1, int a2) |
65 { | 65 { |
66 return ((__int64)a1 * (__int64)a2) >> 16; | 66 return ((__int64)a1 * (__int64)a2) >> 16; |
67 } | |
68 __int64 fixpoint_sub2(int a1, int a2) | |
69 { | |
70 signed __int64 v3; // qtt@1 | |
71 | |
72 LODWORD(v3) = a1 << 16; | |
73 HIDWORD(v3) = a1 >> 16; | |
74 return v3 / a2; | |
67 } | 75 } |
68 | 76 |
69 __int64 fixpoint_dot(int x1, int x2, int y1, int y2, int z1, int z2) | 77 __int64 fixpoint_dot(int x1, int x2, int y1, int y2, int z1, int z2) |
70 { | 78 { |
71 return fixpoint_sub0(x1, x2) + | 79 return fixpoint_sub0(x1, x2) + |