Skip to content

Refactor truncate floor and ceil duplicated part#387

Merged
tompng merged 1 commit into
ruby:masterfrom
tompng:reractor_truncate_floor_ceil
Jul 27, 2025
Merged

Refactor truncate floor and ceil duplicated part#387
tompng merged 1 commit into
ruby:masterfrom
tompng:reractor_truncate_floor_ceil

Conversation

@tompng

@tompng tompng commented Jul 27, 2025

Copy link
Copy Markdown
Member

Three functions are the same except trivial code styling and rounding mode part:

VpActiveRound(c.real, a.real, VP_ROUND_DOWN, iLoc); /* 0: truncate */
VpActiveRound(c.real, a.real, VP_ROUND_FLOOR, iLoc);
VpActiveRound(c.real, a.real, VP_ROUND_CEIL, iLoc);

@tompng tompng merged commit 2bb5167 into ruby:master Jul 27, 2025
79 checks passed
@tompng tompng deleted the reractor_truncate_floor_ceil branch July 27, 2025 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant