Skip to content

[libc][math][c++23] Add {ceil,floor,round,roundeven,trunc}bf16 math functions #152352

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

Merged
merged 19 commits into from
Aug 8, 2025

Conversation

krishna2803
Copy link
Contributor

@krishna2803 krishna2803 commented Aug 6, 2025

This PR implements the following basic math functions for BFloat16 type along with the tests:

  • ceilbf16
  • floorbf16
  • roundbf16
  • roundevenbf16
  • truncbf16

Signed-off-by: Krishna Pandey <[email protected]>
Signed-off-by: Krishna Pandey <[email protected]>
Signed-off-by: Krishna Pandey <[email protected]>
Signed-off-by: Krishna Pandey <[email protected]>
Signed-off-by: Krishna Pandey <[email protected]>
Signed-off-by: Krishna Pandey <[email protected]>
Copy link

github-actions bot commented Aug 6, 2025

✅ With the latest revision this PR passed the C/C++ code formatter.

@lntue lntue requested review from overmighty and lntue August 7, 2025 15:32
Copy link
Member

@overmighty overmighty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with one more nit.

Signed-off-by: Krishna Pandey <[email protected]>
@lntue lntue merged commit 15a705d into llvm:main Aug 8, 2025
19 checks passed
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.

3 participants