diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-01-12 09:28:54 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-01-12 09:29:56 +0900 |
commit | cc15963aa30ed41d4e5263233134d275de832683 (patch) | |
tree | f38d79164d6efe174544541fe1258da259575b7a /yjit | |
parent | 0abb4b6348f00b03736b198b26e58b08cefc3303 (diff) | |
download | ruby-cc15963aa30ed41d4e5263233134d275de832683.tar.gz |
Strip trailing spaces [ci skip]
Diffstat (limited to 'yjit')
-rw-r--r-- | yjit/src/asm/arm64/arg/bitmask_imm.rs | 2 | ||||
-rw-r--r-- | yjit/src/asm/arm64/arg/truncate.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/yjit/src/asm/arm64/arg/bitmask_imm.rs b/yjit/src/asm/arm64/arg/bitmask_imm.rs index d569828a24..ff9b2c8a2d 100644 --- a/yjit/src/asm/arm64/arg/bitmask_imm.rs +++ b/yjit/src/asm/arm64/arg/bitmask_imm.rs @@ -40,7 +40,7 @@ impl TryFrom<u64> for BitmaskImmediate { type Error = (); /// Attempt to convert a u64 into a BitmaskImmediate. - /// + /// /// The implementation here is largely based on this blog post: /// https://dougallj.wordpress.com/2021/10/30/bit-twiddling-optimising-aarch64-logical-immediate-encoding-and-decoding/ fn try_from(value: u64) -> Result<Self, Self::Error> { diff --git a/yjit/src/asm/arm64/arg/truncate.rs b/yjit/src/asm/arm64/arg/truncate.rs index 0de562f808..85d56ff202 100644 --- a/yjit/src/asm/arm64/arg/truncate.rs +++ b/yjit/src/asm/arm64/arg/truncate.rs @@ -6,7 +6,7 @@ /// Truncate a signed immediate to fit into a compile-time known width. It is /// assumed before calling this function that the value fits into the correct /// size. If it doesn't, then this function will panic. -/// +/// /// When the value is positive, this should effectively be a no-op since we're /// just dropping leading zeroes. When the value is negative we should only be /// dropping leading ones. @@ -27,7 +27,7 @@ pub fn truncate_imm<T: Into<i32>, const WIDTH: usize>(imm: T) -> u32 { /// Truncate an unsigned immediate to fit into a compile-time known width. It is /// assumed before calling this function that the value fits into the correct /// size. If it doesn't, then this function will panic. -/// +/// /// This should effectively be a no-op since we're just dropping leading zeroes. pub fn truncate_uimm<T: Into<u32>, const WIDTH: usize>(uimm: T) -> u32 { let value: u32 = uimm.into(); |