Skip to content

Conversation

@LegNeato
Copy link
Contributor

@LegNeato LegNeato commented Sep 22, 2025

I thought we could use the fallback code from compiler-builtins but I guess not? Most things were broken....I got confused as to what was provided by whom.

I had AI bang out our implementations, I did not write them.

This is generating a lot of code, perhaps better to generate a fn and then have everything call it?

I added an example and confirmed it works / passes.

@LegNeato
Copy link
Contributor Author

@nnethercote this changes math_builder_methods

@LegNeato
Copy link
Contributor Author

@nnethercote I am going to rebase this on your macro changes, they look better.

@LegNeato LegNeato marked this pull request as draft September 22, 2025 07:27
@LegNeato LegNeato force-pushed the fix128 branch 2 times, most recently from ffad7d1 to e01ffb6 Compare September 23, 2025 03:08
@LegNeato LegNeato marked this pull request as ready for review September 23, 2025 03:10
@LegNeato
Copy link
Contributor Author

I'm still not sure this is right, as I would expect to be using compiler-builtins instead of reimplementing the fallback ourselves. But I am a bit out of my depth as to how all this fits together.

@LegNeato LegNeato marked this pull request as draft September 24, 2025 17:36
@LegNeato LegNeato marked this pull request as ready for review September 25, 2025 01:42
@LegNeato

This comment was marked as outdated.

@LegNeato LegNeato changed the title Emulate all 128 bit ops Emulate 128 bit ops Nov 25, 2025
@LegNeato LegNeato force-pushed the fix128 branch 2 times, most recently from c39901e to 509d28f Compare November 25, 2025 20:53
I thought we could use the fallback code from compiler-builtins
but I guess not? Most things were broken.

I had AI bang out our implementations, I did not write them.

This is generating a lot of code, perhaps better to generate a fn and then
have everything call it?

I added an example and confirmed it works / passes.
@LegNeato LegNeato merged commit 6ffb344 into Rust-GPU:main Nov 25, 2025
11 checks passed
@LegNeato LegNeato deleted the fix128 branch November 25, 2025 22:54
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.

1 participant