Skip to content
This repository was archived by the owner on Dec 11, 2025. It is now read-only.

Q2PRO sync: Clamping & Conversions#504

Merged
apanteleev merged 3 commits intoNVIDIA:masterfrom
res2k:q2pro-sync-clamping-conversion
Nov 13, 2025
Merged

Q2PRO sync: Clamping & Conversions#504
apanteleev merged 3 commits intoNVIDIA:masterfrom
res2k:q2pro-sync-clamping-conversion

Conversation

@res2k
Copy link
Contributor

@res2k res2k commented Nov 6, 2025

Upstream changes for:

  1. "Functional" clamping/range clipping of values
  2. More consistent conversion of integer values from strings
  3. Adds Q_atof - mirrors Q_atoi, but also returns float

Andrey Nazarov added 3 commits November 6, 2025 15:25
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.
@res2k res2k force-pushed the q2pro-sync-clamping-conversion branch from 1115554 to 05404c8 Compare November 6, 2025 14:30
@res2k res2k marked this pull request as ready for review November 6, 2025 14:31
@apanteleev
Copy link
Collaborator

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.

@res2k
Copy link
Contributor Author

res2k commented Nov 10, 2025

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
That's an automated mirror from skuller's repo containing the last commit made to it.
(Apart from that, that site mirrors a bunch of Quake(2)-related repos, including skuller's other stuff, like the "extended" game code.)

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.

@apanteleev apanteleev merged commit c44d91c into NVIDIA:master Nov 13, 2025
2 checks passed
@res2k res2k deleted the q2pro-sync-clamping-conversion branch November 13, 2025 13:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants