21#ifndef INCLUDE_SHL_E907_H_
22#define INCLUDE_SHL_E907_H_
53int shl_rvp_get_xlenb();
54void shl_rvp_int8_to_int16(int8_t *src, int16_t *dst,
size_t len);
55void shl_rvp_int16_to_int32(int16_t *src, int32_t *dst,
size_t len);
56void shl_rvp_int32_to_int16(int32_t *src, int16_t *dst,
size_t len);
57void shl_rvp_int16_to_int8(int16_t *src, int8_t *dst,
size_t len);
58intXLEN_t shl_rvp_int16_to_xlen(int16_t val);
59intXLEN_t shl_rvp_int32_to_xlen(int32_t val);
60void shl_rvp_requantize(int32_t *src, int32_t multiplier, int32_t shift,
int channel_size);
61void shl_rvp_saturated_int8(int32_t *src, int8_t *dst, int32_t out_zp,
int size);
63static inline int32_t shl_rvp_mulh(int32_t rs1, int32_t rs2)
66 asm volatile(
"mulh %0, %1, %2" :
"=r"(ret) :
"r"(rs1),
"r"(rs2));
70static inline int8_t shl_rvp_clip_i8(int32_t val)
74 }
else if (val < -128) {
Definition: csinn_data_structure.h:780
Definition: csinn_data_structure.h:553
Definition: csinn_data_structure.h:753
Definition: csinn_data_structure.h:596
Definition: csinn_data_structure.h:1033
Definition: csinn_data_structure.h:676
Definition: csinn_data_structure.h:692
Definition: csinn_data_structure.h:475