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

NaN-Tagged Pointer Support #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

cwbriones
Copy link

Introduce NaN-tagged pointer support in Broom, which allows for intermingling stack and heap-based values in a single representation. In particular, this allows for storing floats, pointers (Handle), and a u8 tag value in a single enum-like value.

See Also

@zesterer
Copy link
Owner

@nilq Any chance I could get your review on this? I've not got much experience with NaN tagging.



#[cfg(test)]
mod tests {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a test to make sure that the handle is the correct size?

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.

None yet

2 participants