Skip to content

Conversation

@MichalPetryka
Copy link
Contributor

Makes Truncate emit round with truncate mode on xarch and frintz on aarch64.

Based off current handling for Ceiling.

Fixes #56931

@ghost ghost added area-System.Numerics community-contribution Indicates that the PR has been added by a community member labels Feb 8, 2022
@ghost
Copy link

ghost commented Feb 8, 2022

Tagging subscribers to this area: @dotnet/area-system-numerics
See info in area-owners.md if you want to be subscribed.

Issue Details

Makes Truncate emit round with truncate mode on xarch and frintz on aarch64.

Based off current handling for Ceiling.

Fixes #56931

Author: MichalPetryka
Assignees: -
Labels:

area-System.Numerics

Milestone: -

@MichalPetryka
Copy link
Contributor Author

@tannergooding asked me to revert the fcalls and add back the managed method instead on discord, will handle it tomorrow.

@MichalPetryka MichalPetryka marked this pull request as ready for review February 9, 2022 18:00
@MichalPetryka
Copy link
Contributor Author

Test failures seem unrelated, marking as ready for review.

@tannergooding
Copy link
Member

CC. @dotnet/jit-contrib; Community PR needs secondary sign-off

Copy link
Contributor

@echesakov echesakov left a comment

Choose a reason for hiding this comment

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

LGTM

@tannergooding tannergooding merged commit a44b7c2 into dotnet:main Feb 11, 2022
@JulieLeeMSFT JulieLeeMSFT added this to the 7.0.0 milestone Feb 16, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Mar 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Numerics community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Math/MathF.Truncate isn't an intrinsic and results in inefficient codegen

4 participants