diff options
author | Martin Storsjö <martin@martin.st> | 2021-05-14 09:26:58 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2021-05-14 09:26:58 +0300 |
commit | 24036ca3d4f31382910bc425537905fd1e79b78c (patch) | |
tree | 0c1f796d6619a16d3246996fda533c2884991908 | |
parent | 477cc158d17c376d2aa1f731d7ce104123e2d0cf (diff) |
arm64: filmgrain16: Simplify constructing the constant 0x0fff
Use the mvni instruction instead of setting the constant in a GPR
first.
-rw-r--r-- | src/arm/64/film_grain16.S | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/arm/64/film_grain16.S b/src/arm/64/film_grain16.S index a72164c..f79812c 100644 --- a/src/arm/64/film_grain16.S +++ b/src/arm/64/film_grain16.S @@ -188,7 +188,6 @@ function fgy_loop_neon .macro fgy ox, oy L(loop_\ox\oy): 1: - mov w16, #0xfff ld1 {v0.8h, v1.8h, v2.8h, v3.8h}, [x1], x2 // src .if \ox ld1 {v20.4h}, [x4], x9 // grain_lut old @@ -199,7 +198,7 @@ L(loop_\ox\oy): .if \ox && \oy ld1 {v14.4h}, [x8], x9 // grain_lut top old .endif - dup v4.8h, w16 + mvni v4.8h, #0xf0, lsl #8 // 0x0fff ld1 {v16.8h, v17.8h, v18.8h, v19.8h}, [x5], x9 // grain_lut // Make sure that uninitialized pixels out of range past the right |