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

System.Numerics polyfills #37

Open
dodexahedron opened this issue Apr 30, 2024 · 1 comment
Open

System.Numerics polyfills #37

dodexahedron opened this issue Apr 30, 2024 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@dodexahedron
Copy link

Provide a link to the method or type you want to polyfill

https://github.com/dotnet/runtime/blob/main/src/libraries/System.Private.CoreLib/src/System/Numerics/BitOperations.cs

Other information

The MS-provided polyfills for System.Numerics are still quite lean and missing some of the most useful stuff like the BitOperations static class.

While the interfaces in that namespace would be nice (even if partially done), they're of course at least not fully possible to polyfill thanks to static virtuals and all that in them. But a lot of those statics are implemented by the BitOperations class anyway, so having that class would be great.

But BitOperations is internal in netstandard2.0 :(

@meziantou meziantou added the help wanted Extra attention is needed label May 11, 2024
@YoshiRulz
Copy link

YoshiRulz commented Aug 29, 2024

For now, you can use https://github.com/udaken/Shim.System.Numerics, but see udaken/Shim.System.Numerics#2.

edit: ZstdSharp could use this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants