diff options
author | Eric Anholt <[email protected]> | 2018-03-13 16:23:33 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-03-19 16:42:59 -0700 |
commit | c81d6817422c83ba990fac19b165d4dedb1150fe (patch) | |
tree | afbf13f82881b98b0acc401c2fc1e000e4df5047 /src/broadcom/compiler/v3d_compiler.h | |
parent | 9e28c18cd1b99cb5dc5842da74426db21d5dcc8f (diff) |
broadcom/vc5: Move the umul macro to a header.
Anywhere we want to multiply, we probably want this.
Diffstat (limited to 'src/broadcom/compiler/v3d_compiler.h')
-rw-r--r-- | src/broadcom/compiler/v3d_compiler.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/broadcom/compiler/v3d_compiler.h b/src/broadcom/compiler/v3d_compiler.h index 94cbd0523cb..f777cfcd87b 100644 --- a/src/broadcom/compiler/v3d_compiler.h +++ b/src/broadcom/compiler/v3d_compiler.h @@ -916,6 +916,13 @@ vir_LDTMU(struct v3d_compile *c) } } +static inline struct qreg +vir_UMUL(struct v3d_compile *c, struct qreg src0, struct qreg src1) +{ + vir_MULTOP(c, src0, src1); + return vir_UMUL24(c, src0, src1); +} + /* static inline struct qreg vir_LOAD_IMM(struct v3d_compile *c, uint32_t val) |