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

Review workaround for HalfToInt16Bits and Int16BitsToHalf in Cbor #65935

Closed
jeffhandley opened this issue Feb 27, 2022 · 4 comments
Closed

Review workaround for HalfToInt16Bits and Int16BitsToHalf in Cbor #65935

jeffhandley opened this issue Feb 27, 2022 · 4 comments
Labels
area-System.Formats.Cbor untriaged New issue has not been triaged by the area owner

Comments

@jeffhandley
Copy link
Member

Cleanup Issue-URLs in Code · Issue #63902 · dotnet/runtime identified a workaround in place and it's unclear if the backing issue that necessitated the workaround has been resolved.

namespace System.Formats.Cbor
{
// Temporarily implements missing APIs for System.Half
// Remove class once https://github.com/dotnet/runtime/issues/38288 has been addressed
internal static class HalfHelpers

The workaround should be evaluated to determine if it's still necessary. With the findings, we should either update the code to remove the workaround, or the code comment to reference an open issue for tracking when we can remove the workaround.

/cc @deeprobin

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label Feb 27, 2022
@ghost
Copy link

ghost commented Feb 27, 2022

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

Issue Details

Cleanup Issue-URLs in Code · Issue #63902 · dotnet/runtime identified a workaround in place and it's unclear if the backing issue that necessitated the workaround has been resolved.

namespace System.Formats.Cbor
{
// Temporarily implements missing APIs for System.Half
// Remove class once https://github.com/dotnet/runtime/issues/38288 has been addressed
internal static class HalfHelpers

The workaround should be evaluated to determine if it's still necessary. With the findings, we should either update the code to remove the workaround, or the code comment to reference an open issue for tracking when we can remove the workaround.

/cc @deeprobin

Author: jeffhandley
Assignees: -
Labels:

area-System.Formats.Cbor

Milestone: -

@teo-tsirpanis
Copy link
Contributor

This is an old edition of the file. The issue has been addressed with #62872; if you take a look at the current sources, you will see that we forward to the existing BCL methods. The HalfHelpers class is still needed to uniformly convert between halfs and floats across .NET Standard 2.0 and modern .NET.

@jeffhandley
Copy link
Member Author

Thanks, @teo-tsirpanis! I'll update the comment to reflect that updated info.

@jeffhandley
Copy link
Member Author

Oh, I see the comment doesn't even exist anymore. Excellent. Thanks again.

@ghost ghost locked as resolved and limited conversation to collaborators Mar 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Formats.Cbor untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

2 participants