-
Notifications
You must be signed in to change notification settings - Fork 245
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
Intercept calls to (rust) libm and emit a builtin instead of the soft impl #81
Comments
Ran into this today with |
libstd directly calls the libm functions. Adding an extra intrinsic requires a rustc change to add it to the list of intrinsics of typeck. |
Suspected that, definitely don't want to use |
It should be possible to intercept calls to functions with specific names and instead emit a SPIRV instruction. |
Fixed by #264 |
Plan is to go with @bjorn3's comment below and expose the GLOps not in std::intrinsics via intercepting calls to https://github.com/rust-lang/libm, which is used in e.g.
glam
'sno_std
implementation.Old title: Expose GLOps not in std::intrinsics
https://docs.rs/spirv_headers/1.5.0/spirv_headers/enum.GLOp.html , same with CLOp.
For example,
acos
.The text was updated successfully, but these errors were encountered: