Re: [FFmpeg-devel] [PATCH 5/7] lavc/me_cmp: R-V V vsse vsad

2024-02-22 Thread Rémi Denis-Courmont
Le 22 février 2024 05:04:58 GMT+02:00, flow gg a écrit : >.macro vabsaddu dst src tmp >- vneg.v \tmp, \src >- vmax.vv \tmp, \src, \tmp >+ vfabs.v \tmp, \src >vwaddu.wv \dst, \dst, \tmp >.endm > >After making this change, the test

Re: [FFmpeg-devel] [PATCH 5/7] lavc/me_cmp: R-V V vsse vsad

2024-02-21 Thread flow gg
.macro vabsaddu dst src tmp - vneg.v \tmp, \src - vmax.vv \tmp, \src, \tmp + vfabs.v \tmp, \src vwaddu.wv \dst, \dst, \tmp .endm After making this change, the tests did not pass. I'm not quite clear on how to understand the differe

Re: [FFmpeg-devel] [PATCH 5/7] lavc/me_cmp: R-V V vsse vsad

2024-02-21 Thread Rémi Denis-Courmont
Le tiistaina 6. helmikuuta 2024, 17.56.32 EET flow gg a écrit : > Did you try to compute integral absolute values with the ad-hoc (floating point) instruction instead of vneg/vmax? It should work since the sign is in the same place, though I don't know if it will be faster. -- レミ・デニ-クールモン htt