<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/core/src/num/mod.rs, branch beta</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=beta</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=beta'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-09-04T05:43:21+00:00</updated>
<entry>
<title>Rollup merge of #145690 - sayantn:integer-funnel-shift, r=tgross35</title>
<updated>2025-09-04T05:43:21+00:00</updated>
<author>
<name>Jacob Pratt</name>
<email>jacob@jhpratt.dev</email>
</author>
<published>2025-09-04T05:43:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=00d5dc5c9d0a304020c7eb75562a415cf0e23806'/>
<id>urn:sha1:00d5dc5c9d0a304020c7eb75562a415cf0e23806</id>
<content type='text'>
Implement Integer funnel shifts

Tracking issue: rust-lang/rust#145686
ACP: https://github.com/rust-lang/libs-team/issues/642

This implements funnel shifts on primitive integer types. Implements this for cg_llvm, with a fallback impl for everything else

Thanks `@folkertdev` for the fixes and tests

cc `@rust-lang/libs-api`
</content>
</entry>
<entry>
<title>Add `funnel_sh{l,r}` functions and intrinsics</title>
<updated>2025-09-03T08:43:24+00:00</updated>
<author>
<name>sayantn</name>
<email>sayantn05@gmail.com</email>
</author>
<published>2025-08-20T23:17:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=62b4347e80cc86314bd98749e95eff8cdf8ef005'/>
<id>urn:sha1:62b4347e80cc86314bd98749e95eff8cdf8ef005</id>
<content type='text'>
 - Add a fallback implementation for the intrinsics
 - Add LLVM backend support for funnel shifts

Co-Authored-By: folkertdev &lt;folkert@folkertdev.nl&gt;
</content>
</entry>
<entry>
<title>Constify conversion traits</title>
<updated>2025-09-02T01:38:26+00:00</updated>
<author>
<name>ltdk</name>
<email>usr@ltdk.xyz</email>
</author>
<published>2025-08-11T23:36:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1c64d3e6d1fe6256cb11b8dd455ccad1b5f9848c'/>
<id>urn:sha1:1c64d3e6d1fe6256cb11b8dd455ccad1b5f9848c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Constify Try, From, TryFrom</title>
<updated>2025-07-21T09:49:45+00:00</updated>
<author>
<name>Evgenii Zheltonozhskii</name>
<email>zheltonozhskiy@gmail.com</email>
</author>
<published>2025-07-21T09:49:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3c76e3d0026ea9904358b1614bbd9c4f8b7cedf5'/>
<id>urn:sha1:3c76e3d0026ea9904358b1614bbd9c4f8b7cedf5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>integer docs: remove extraneous text</title>
<updated>2025-06-20T18:38:29+00:00</updated>
<author>
<name>Tshepang Mbambo</name>
<email>hopsi@tuta.io</email>
</author>
<published>2025-06-20T18:38:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5babf246574d5d4a789f7a34a2d1c1bc1b9595c3'/>
<id>urn:sha1:5babf246574d5d4a789f7a34a2d1c1bc1b9595c3</id>
<content type='text'>
"Basic usage" implies there is an example that shows advanced usage,
but these APIs are extra simple.
</content>
</entry>
<entry>
<title>chore(doctest): Remove redundant blank lines</title>
<updated>2025-06-12T07:29:09+00:00</updated>
<author>
<name>Shun Sakai</name>
<email>sorairolake@protonmail.ch</email>
</author>
<published>2025-06-12T07:29:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8584c7c6a4441ee5d1500bc80816ce6c1eb026c9'/>
<id>urn:sha1:8584c7c6a4441ee5d1500bc80816ce6c1eb026c9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Auto merge of #138087 - tgross35:core-float-math, r=Amanieu</title>
<updated>2025-05-17T19:31:39+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2025-05-17T19:31:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=777d372772aa3b39ba7273fcb8208a89f2ab0afd'/>
<id>urn:sha1:777d372772aa3b39ba7273fcb8208a89f2ab0afd</id>
<content type='text'>
Initial implementation of `core_float_math`

Since [1], `compiler-builtins` makes a certain set of math symbols
weakly available on all platforms. This means we can begin exposing some
of the related functions in `core`, so begin this process here.

It is not possible to provide inherent methods in both `core` and `std`
while giving them different stability gates, so standalone functions are
added instead. This provides a way to experiment with the functionality
while unstable; once it is time to stabilize, they can be converted to
inherent.

For `f16` and `f128`, everything is unstable so we can move the inherent
methods.

The following are included to start:

* floor
* ceil
* round
* round_ties_even
* trunc
* fract
* mul_add
* div_euclid
* rem_euclid
* powi
* sqrt
* abs_sub
* cbrt

These mirror the set of functions that we have in `compiler-builtins`
since [1], with the exception of `powi` that has been there longer.

Details for each of the changes is in the commit messages.

Tracking issue: https://github.com/rust-lang/rust/issues/137578

[1]: https://github.com/rust-lang/compiler-builtins/pull/763

try-job: aarch64-gnu
tru-job: armhf-gnu
try-job: i686-msvc-1
try-job: test-various
try-job: x86_64-mingw-1
try-job: x86_64-mingw-2
</content>
</entry>
<entry>
<title>Add assert_unsafe_precondition!()s to as_ascii_unchecked() methods</title>
<updated>2025-05-16T12:54:02+00:00</updated>
<author>
<name>sam skeoch</name>
<email>djscythe@noreply.codeberg.org</email>
</author>
<published>2025-05-13T13:55:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=101e24a223f818e17d2c68298d48d4e6008c02aa'/>
<id>urn:sha1:101e24a223f818e17d2c68298d48d4e6008c02aa</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add as_ascii_unchecked() methods to char, str, and u8</title>
<updated>2025-05-16T12:53:32+00:00</updated>
<author>
<name>sam skeoch</name>
<email>djscythe@noreply.codeberg.org</email>
</author>
<published>2025-02-22T17:22:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7d9f437f993e213c1f9aeb9c07454f6fd1648821'/>
<id>urn:sha1:7d9f437f993e213c1f9aeb9c07454f6fd1648821</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Initial implementation of `core_float_math`</title>
<updated>2025-05-13T22:08:18+00:00</updated>
<author>
<name>Trevor Gross</name>
<email>tmgross@umich.edu</email>
</author>
<published>2025-02-25T03:29:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=36790d28810ac188a8bca7fc9e95fe0869ae9a11'/>
<id>urn:sha1:36790d28810ac188a8bca7fc9e95fe0869ae9a11</id>
<content type='text'>
Since [1], `compiler-builtins` makes a certain set of math symbols
weakly available on all platforms. This means we can begin exposing some
of the related functions in `core`, so begin this process here.

It is not possible to provide inherent methods in both `core` and `std`
while giving them different stability gates, so standalone functions are
added instead. This provides a way to experiment with the functionality
while unstable; once it is time to stabilize, they can be converted to
inherent.

For `f16` and `f128`, everything is unstable so we can move the inherent
methods.

The following are included to start:

* floor
* ceil
* round
* round_ties_even
* trunc
* fract
* mul_add
* div_euclid
* rem_euclid
* powi
* sqrt
* abs_sub
* cbrt

These mirror the set of functions that we have in `compiler-builtins`
since [1].

Tracking issue: https://github.com/rust-lang/rust/issues/137578

[1]: https://github.com/rust-lang/compiler-builtins/pull/763
</content>
</entry>
</feed>
