comparison mm7_1.cpp @ 871:710cf848ad24

Particle engine made working.
author Nomad
date Mon, 01 Apr 2013 13:39:19 +0200
parents dfd683c4f538
children 2db21a810d48
comparison
equal deleted inserted replaced
838:d061180f2b42 871:710cf848ad24
62 int fixpoint_div(int a1, int a2) 62 int fixpoint_div(int a1, int a2)
63 { 63 {
64 return ((__int64)a1 << 16) / a2; 64 return ((__int64)a1 << 16) / a2;
65 } 65 }
66 66
67 int fixpoint_mul(int a1, int a2)
68 {
69 return (((__int64)a1 << 16) * a2) >> 16;
70 }
71
67 //----- (004453C0) mm6----------------------------------------------------- 72 //----- (004453C0) mm6-----------------------------------------------------
68 //----- (004A1760) mm6_chinese--------------------------------------------- 73 //----- (004A1760) mm6_chinese---------------------------------------------
69 int fixpoint_mul(int a1, int a2) 74 int fixpoint_sub0(int a1, int a2)
70 { 75 {
71 return ((__int64)a1 * (__int64)a2) / 65536; 76 return ((__int64)a1 * (__int64)a2) >> 16;
72 } 77 }
73 78
74 //----- (004196A0) -------------------------------------------------------- 79 //----- (004196A0) --------------------------------------------------------
75 void __cdecl sub_4196A0() 80 void __cdecl sub_4196A0()
76 { 81 {