diff --git a/src/p_maputl.c b/src/p_maputl.c index 7a6af4d61..450e8a22c 100644 --- a/src/p_maputl.c +++ b/src/p_maputl.c @@ -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; diff --git a/src/r_main.c b/src/r_main.c index c9b498050..d558eebcc 100644 --- a/src/r_main.c +++ b/src/r_main.c @@ -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; diff --git a/src/tables.c b/src/tables.c index 41520b4dc..c1bb7c030 100644 --- a/src/tables.c +++ b/src/tables.c @@ -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)