mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 12:30:46 +00:00
- Replace dmulscale()
calls with DMulScale()
from common.
This commit is contained in:
parent
aae175f287
commit
b5aac8723f
2 changed files with 2 additions and 10 deletions
|
@ -743,8 +743,8 @@ int GetDistToLine(int x1, int y1, int x2, int y2, int x3, int y3)
|
|||
int check2 = (x1-x2)*(y3-y2);
|
||||
if (check2 > check)
|
||||
return -1;
|
||||
int v8 = dmulscale(x1-x2,x3-x2,y1-y3,y3-y2,4);
|
||||
int vv = dmulscale(x3-x2,x3-x2,y3-y2,y3-y2,4);
|
||||
int v8 = DMulScale(x1-x2,x3-x2,y1-y3,y3-y2,4);
|
||||
int vv = DMulScale(x3-x2,x3-x2,y3-y2,y3-y2,4);
|
||||
int t1, t2;
|
||||
if (v8 <= 0)
|
||||
{
|
||||
|
|
|
@ -38,14 +38,6 @@ inline int sgn(int32_t a) { return (a > 0) - (a < 0); }
|
|||
|
||||
static inline int32_t mulscale(int32_t eax, int32_t edx, int32_t ecx) { return dw((qw(eax) * edx) >> by(ecx)); }
|
||||
static inline double fmulscale(double eax, double edx, int32_t ecx) { return (eax * edx) / (double)(qw(1) << ecx); }
|
||||
static inline int32_t dmulscale(int32_t eax, int32_t edx, int32_t esi, int32_t edi, int32_t ecx)
|
||||
{
|
||||
return dw(((qw(eax) * edx) + (qw(esi) * edi)) >> by(ecx));
|
||||
}
|
||||
static inline double fdmulscale(double eax, double edx, double esi, double edi, int32_t ecx)
|
||||
{
|
||||
return ((eax * edx) + (esi * edi)) / (double)(qw(1) << ecx);
|
||||
}
|
||||
|
||||
static inline int32_t krecipasm(int32_t i)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue