Skip to content

Commit 5e5b81f

Browse files
committed
Add TODO comment to gcd impl in rcc
1 parent 644e4f3 commit 5e5b81f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/rcc.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,8 @@ pub(crate) struct PllConfig {
402402
/// Determine the [greatest common divisor](https://en.wikipedia.org/wiki/Greatest_common_divisor)
403403
///
404404
/// This function is based on the [Euclidean algorithm](https://en.wikipedia.org/wiki/Euclidean_algorithm).
405+
// TODO(Sh3Rm4n): As num-traits is a indirecty dependecy of this crate through embedded-time,
406+
// use its implementation instead.
405407
fn gcd(mut a: u32, mut b: u32) -> u32 {
406408
while b != 0 {
407409
let r = a % b;

0 commit comments

Comments
 (0)