inline some things
This commit is contained in:
1 parent
87d9ecc3c8
commit
75f2868971
3 files changed
+4
-4
No files matched your search
+1
-1
@@ -134,7 +134,7 @@ void P_ClosestPointOnLine3D(fixed_t x, fixed_t y, fixed_t z, line_t *line, verte
|
||||
// P_PointOnLineSide
|
||||
// Returns 0 or 1
|
||||
//
|
||||
PUREFUNC INT32 P_PointOnLineSide(fixed_t x, fixed_t y, const line_t *line)
|
||||
PUREFUNC FUNCINLINE ATTRINLINE INT32 P_PointOnLineSide(fixed_t x, fixed_t y, const line_t *line)
|
||||
{
|
||||
const vertex_t *v1 = line->v1;
|
||||
fixed_t dx, dy, left, right;
|
||||
|
||||
+1
-1
@@ -331,7 +331,7 @@ static void FlipCam4_OnChange(void)
|
||||
//
|
||||
// killough 5/2/98: reformatted
|
||||
//
|
||||
PUREFUNC INT32 R_PointOnSide(fixed_t x, fixed_t y, const node_t *restrict node)
|
||||
PUREFUNC FUNCINLINE ATTRINLINE INT32 R_PointOnSide(fixed_t x, fixed_t y, const node_t *restrict node)
|
||||
{
|
||||
if (!node->dx)
|
||||
return x <= node->x ? node->dy > 0 : node->dy < 0;
|
||||
|
||||
+2
-2
@@ -27,7 +27,7 @@
|
||||
|
||||
#include "tables.h"
|
||||
|
||||
unsigned SlopeDiv(unsigned num, unsigned den)
|
||||
FUNCINLINE ATTRINLINE unsigned SlopeDiv(unsigned num, unsigned den)
|
||||
{
|
||||
unsigned ans;
|
||||
num <<= (FINE_FRACBITS-FRACBITS);
|
||||
@@ -38,7 +38,7 @@ unsigned SlopeDiv(unsigned num, unsigned den)
|
||||
return ans <= SLOPERANGE ? ans : SLOPERANGE;
|
||||
}
|
||||
|
||||
UINT64 SlopeDivEx(unsigned int num, unsigned int den)
|
||||
FUNCINLINE ATTRINLINE UINT64 SlopeDivEx(unsigned int num, unsigned int den)
|
||||
{
|
||||
UINT64 ans;
|
||||
if (den < 512)
|
||||
|
||||
Reference in new issue
Block a user