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 | |
| parent | 0abb4b6348f00b03736b198b26e58b08cefc3303 (diff) | |
Strip trailing spaces [ci skip]
| -rw-r--r-- | .github/workflows/check_misc.yml | 2 | ||||
| -rw-r--r-- | yjit/src/asm/arm64/arg/bitmask_imm.rs | 2 | ||||
| -rw-r--r-- | yjit/src/asm/arm64/arg/truncate.rs | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/check_misc.yml b/.github/workflows/check_misc.yml index 74756807a5..f6b09ae2a9 100644 --- a/.github/workflows/check_misc.yml +++ b/.github/workflows/check_misc.yml @@ -20,7 +20,7 @@ jobs: ! grep -r -n '[^ -~]' -- *.[chy] include internal win32/*.[ch] - name: Check for trailing spaces run: | - ! git grep -n '[ ]$' -- '*.rb' '*.[chy]' + ! git grep -n '[ ]$' -- '*.rb' '*.[chy]' '*.rs' ! git grep -n '^[ ][ ]*$' -- '*.md' - name: Check for bash specific substitution in configure.ac run: | 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(); |
