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

Sema: allow cast builtins on vectors #16988

Merged
merged 1 commit into from
Aug 28, 2023
Merged

Conversation

mlugg
Copy link
Member

@mlugg mlugg commented Aug 27, 2023

The following cast builtins did not previously work on vectors, and have been made to:

  • @floatCast
  • @ptrFromInt
  • @intFromPtr
  • @floatFromInt
  • @intFromFloat
  • @intFromBool

Resolves: #16267

@mlugg mlugg force-pushed the vec-casts branch 2 times, most recently from 36813b2 to 15da051 Compare August 27, 2023 19:08
The following cast builtins did not previously work on vectors, and have
been made to:

* `@floatCast`
* `@ptrFromInt`
* `@intFromPtr`
* `@floatFromInt`
* `@intFromFloat`
* `@intFromBool`

Resolves: ziglang#16267
@andrewrk
Copy link
Member

Nice work!

@andrewrk andrewrk merged commit 8d036d1 into ziglang:master Aug 28, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Type Interference not working with @intFromFloat() and @floatFromInt() when used with Vectors
2 participants