Skip to content

More more builtins #2452

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

Merged
merged 8 commits into from
May 9, 2019
Merged

More more builtins #2452

merged 8 commits into from
May 9, 2019

Conversation

LemonBoy
Copy link
Contributor

@LemonBoy LemonBoy commented May 8, 2019

Another day, another dump.

LemonBoy added 7 commits May 8, 2019 22:26
Also add their AEABI aliases, __aeabi_i2f & __aeabi_i2d
Add AEABI builtin __aeabi_d2f
Add AEABI builtins __aeabi_ul2d, __aeabi_ui2d
Add AEABI builtin __aeabi_l2d
Add AEABI builtin __aeabi_f2d
@andrewrk
Copy link
Member

andrewrk commented May 8, 2019

Nice! I think this is most of the work to adding __floatsitf as well, which would check off the next todo item on #2443.

@LemonBoy
Copy link
Contributor Author

LemonBoy commented May 8, 2019

I think this is most of the work to adding __floatsitf as well

Done ;)

testing.expect(r == expected);
}

test "floatdidf" {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this test in a separate file? While e.g. floatsiXf has tests in the same file?

Copy link
Member

Choose a reason for hiding this comment

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

There's a precedent for having them in a separate file to save space of the shipped .zig files. However it's not required.

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't mind either way, I just think it should be consistent.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I try to put long test cases in a separate file and keep short ones at the bottom of the file where the implementation is.

@andrewrk andrewrk merged commit 4b9e12b into ziglang:master May 9, 2019
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.

3 participants