Skip to content

Rename helpers to be more consistent with C++26#9731

Merged
copybara-service[bot] merged 1 commit intomasterfrom
test_885938517
Mar 19, 2026
Merged

Rename helpers to be more consistent with C++26#9731
copybara-service[bot] merged 1 commit intomasterfrom
test_885938517

Conversation

@copybara-service
Copy link
Contributor

Rename helpers to be more consistent with C++26

C++26 defines add_sat, sub_sat, and saturate_cast. I think we should use these names, with the expectation that we can remove our implementations at some point.

This also motivates renaming some similar helpers not provided by C++26, e.g. simd::convert -> simd::cast

C++26 defines `add_sat`, `sub_sat`, and `saturate_cast`. I think we should use these names, with the expectation that we can remove our implementations at some point.

This also motivates renaming some similar helpers not provided by C++26, e.g. `simd::convert` -> `simd::cast`

PiperOrigin-RevId: 886215211
@copybara-service copybara-service bot merged commit 3681a46 into master Mar 19, 2026
@copybara-service copybara-service bot deleted the test_885938517 branch March 19, 2026 16:16
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