We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@mulAdd
I'm implementing this algorithm over here and there are two variants: one for hardware with fused mulAdd instructions and another for those without.
What's the idiomatic way of choosing which code path to dispatch given a compile target?
The text was updated successfully, but these errors were encountered:
@mulAdd will always be available. if the target does not have it then a software implementation will be provided from compiler_rt
you can also manually do the cpu feature set detection like in what std.crypto does. eg https://github.com/ziglang/zig/blob/master/lib/std/crypto/sha2.zig#L203 feature lists are in the arch files in https://github.com/ziglang/zig/tree/master/lib/std/Target/
std.crypto
Sorry, something went wrong.
No branches or pull requests
I'm implementing this algorithm over here and there are two variants: one for hardware with fused mulAdd instructions and another for those without.
What's the idiomatic way of choosing which code path to dispatch given a compile target?
The text was updated successfully, but these errors were encountered: