Commit 60e95db
committed
inline_memory: optimize mem_is_zero for riscv using RISC-V Vector (RVV) intrinsics
On the bpi-f3 device, the output of running
ctest -V -R unittest_memory is as follows:
size | default | v intrinsic
--------------------------------------------
1024 | 332ms | 92ms
--------------------------------------------
2048 | 657ms | 186ms
--------------------------------------------
4096 | 1290ms | 366ms
--------------------------------------------
8192 | 2572ms | 733ms
--------------------------------------------
65536 | 24836ms | 10004ms
Signed-off-by: Sun Yuechi <[email protected]>1 parent 2ee1884 commit 60e95db
1 file changed
+26
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
173 | 199 | | |
174 | 200 | | |
175 | 201 | | |
| |||
0 commit comments