Re: [PATCH v1 3/4] RISC-V: Implement scalar SAT_TRUNC for signed integer

2024-10-08 Thread Kito Cheng
LGTM 於 2024年10月8日 週二 16:33 寫道: > From: Pan Li > > This patch would like to implement the sstrunc for scalar signed > integer. > > Form 1: > #define DEF_SAT_S_TRUNC_FMT_1(WT, NT, NT_MIN, NT_MAX) \ > NT __attribute__((noinline)) \ > sat_s_trunc_##WT##_to_##NT##_fmt_

[PATCH v1 3/4] RISC-V: Implement scalar SAT_TRUNC for signed integer

2024-10-08 Thread pan2 . li
From: Pan Li This patch would like to implement the sstrunc for scalar signed integer. Form 1: #define DEF_SAT_S_TRUNC_FMT_1(WT, NT, NT_MIN, NT_MAX) \ NT __attribute__((noinline)) \ sat_s_trunc_##WT##_to_##NT##_fmt_1 (WT x) \ {