X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fgpu_unai%2Fgpu_raster_line.h;h=fc59b79715124b7b0bc2d455407580fcbe62fdf3;hp=6d66c7d16f190bcd5e25d3df0f7dcf4aef8e5bfd;hb=4144e9abc1fb8420e08e0a5ef48a9ceba7f26661;hpb=86aad47b0418b1715a4d223adf8f59aa92619d15 diff --git a/plugins/gpu_unai/gpu_raster_line.h b/plugins/gpu_unai/gpu_raster_line.h index 6d66c7d1..fc59b797 100644 --- a/plugins/gpu_unai/gpu_raster_line.h +++ b/plugins/gpu_unai/gpu_raster_line.h @@ -18,13 +18,15 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307 USA. * ***************************************************************************/ +#define GPU_TESTRANGE(x) { if((u32)(x+1024) > 2047) return; } + /////////////////////////////////////////////////////////////////////////////// // GPU internal line drawing functions #define GPU_DIGITS 16 #define GPU_DIGITSC (GPU_DIGITS+3) -INLINE long GPU_DIV(long rs, long rt) +INLINE s32 GPU_DIV(s32 rs, s32 rt) { return rt ? (rs / rt) : (0); }