-
Notifications
You must be signed in to change notification settings - Fork 1.6k
The documentations of Vector*.Clamp/ConvertTo*Int*/Max/Min are unclear #11280
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
Comments
It is not documented because it is hardware dependent. Given two CPUs it may have entirely different behaviors.
This covers that it picks the lesser of left vs right on a per-element basis, but the behavior of An example of this is that on Arm64 hardware it will just continue emitting Alternatively, on most x64 hardware we will emit However, such behaviors aren't guaranteed. The entire purpose of the
This looks like it somehow got dropped from Vector64/Vector256/Vector512. It exists in the source. @gewarren, is there an easy way to get these docs repopulated from the C# XML documentation comments to ensure remarks like this are consistent across the APIs? It looks like there might be quite a few cases like this where |
The question is about the documentations of the non-native versions, not the native versions. |
Type of issue
Missing information
Description
There are
Vector*.ClampNative/ConvertTo*Int*Native/MaxNative/MinNative
which are documented to use platform specific behavior in certain cases. However, it is not clear from the documentations whatVector*.Clamp/ConvertTo*Int*/Max/Min
do in those cases.Some of those methods like
Vector128.Max
are documented to match IEEE 754:2019, but the information is still missing for other methods includingVector512.Max
.Page URL
https://learn.microsoft.com/en-us/dotnet/api/system.runtime.intrinsics.vector512.min?view=net-10.0
Content source URL
https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Runtime.Intrinsics/Vector512.xml
Document Version Independent Id
9570ebc0-e5e1-92cf-bf93-05bf4d0017bb
Platform Id
3c28a4a4-e457-e6d2-1cd9-32698ff859c0
Article author
@dotnet-bot
The text was updated successfully, but these errors were encountered: