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

Add math module to stdlib #1042

Closed
jdm opened this issue Oct 17, 2011 · 0 comments
Closed

Add math module to stdlib #1042

jdm opened this issue Oct 17, 2011 · 0 comments
Labels
E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Comments

@jdm
Copy link
Contributor

jdm commented Oct 17, 2011

We should get some common math implementations put together. First stop: move the definitions of min and max out of comp/util/common.rs and into the new module, and fix them to be templated on @t instead of T.

coastalwhite pushed a commit to coastalwhite/rust that referenced this issue Aug 5, 2023
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
* Move test for `needs_drop`

* Minor change to description in `needs_drop` test

* Add test for `type_name`

* Add test for `type_id`

* Add test for `size_of`

* Add test for `pref_align_of`

* Add test for `min_align_of`

* Include a comment for `codegen_intrinsic_const`

* In `type_id` test, assert no duplicates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Projects
None yet
Development

No branches or pull requests

2 participants