Q2PRO sync: Clamping & Conversions#504
Conversation
Also add more efficient functions (stolen from FFmpeg) to clip integers to power of two ranges. Add SSE optimized Q_clipf().
Windows version of atoi() clamps returned value to INT_MIN/INT_MAX on overflow. Add Q_atoi() to make this consistent on all platforms.
1115554 to
05404c8
Compare
|
Hey @res2k, can I ask you where you're taking these changes from? Someone pointed out to me that the Q2PRO repo has been removed from GitHub not too long ago. |
@apanteleev, these particular changes are from my hard disk, where I happened to have an (I believe) up-to-date download of skuller's original repo. 😛 But I presume you're looking for mirrors/"clean" forks of the original repo... Take a look here: https://code.nephatrine.net/QuakeArchive/q2pro I also just updated the "master" branch of the fork I made some time ago to match that archived version: https://github.com/res2k/q2pro - so you could also use that if you prefer GitHub. |
Upstream changes for:
Q_atof- mirrorsQ_atoi, but also returnsfloat