Skip to content

Commit c85ef3e

Browse files
committed
Move float and int builtins into submodules
1 parent ed5fbfe commit c85ef3e

File tree

8 files changed

+7
-7
lines changed

8 files changed

+7
-7
lines changed
File renamed without changes.

src/float.rs renamed to src/float/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
use core::ops::*;
22
use core::num::One;
33

4+
pub mod add;
5+
46
/// Trait for some basic operations on floats
57
pub trait Float {
68
/// A uint of the same with as the float

src/int.rs renamed to src/int/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
pub mod mul;
2+
pub mod shift;
3+
pub mod sdiv;
4+
pub mod udiv;
15

26
/// Trait for some basic operations on integers
37
pub trait Int {
File renamed without changes.

src/sdiv.rs renamed to src/int/sdiv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use Int;
1+
use int::Int;
22

33
macro_rules! div {
44
($intrinsic:ident: $ty:ty, $uty:ty) => {
File renamed without changes.
File renamed without changes.

src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@ pub mod arm;
3030
#[cfg(target_arch = "x86_64")]
3131
pub mod x86_64;
3232

33-
pub mod add;
34-
pub mod udiv;
35-
pub mod sdiv;
36-
pub mod mul;
37-
pub mod shift;
38-
3933
#[cfg(test)]
4034
mod qc;
4135

0 commit comments

Comments
 (0)