Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce a generic clamp function to clean up some of the various 'if-else' clamps throughout parts of the codebase. #36

Merged
merged 2 commits into from
Feb 5, 2014

Conversation

lioncash
Copy link
Member

@lioncash lioncash commented Feb 5, 2014

No description provided.

if (right < -32767) right = -32767;
if (right > 32767) right = 32767;
MathUtil::Clamp(left, -32767, 32767);
MathUtil::Clamp(right, -32767, 32767);

This comment was marked as off-topic.

Makes it easier to identify the one being modified.
@delroth
Copy link
Member

delroth commented Feb 5, 2014

LGTM

1 similar comment
@Parlane
Copy link
Member

Parlane commented Feb 5, 2014

LGTM

Parlane added a commit that referenced this pull request Feb 5, 2014
Introduce a generic clamp function to clean up some of the various 'if-else' clamps throughout parts of the codebase.
@Parlane Parlane merged commit cfa2d01 into dolphin-emu:master Feb 5, 2014
@lioncash lioncash deleted the generic-clamp-function branch February 5, 2014 09:22
rapito pushed a commit to project-lylat/dolphin that referenced this pull request Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants