rotate_neon64.cc 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544
  1. /*
  2. * Copyright 2014 The LibYuv Project Authors. All rights reserved.
  3. *
  4. * Use of this source code is governed by a BSD-style license
  5. * that can be found in the LICENSE file in the root of the source
  6. * tree. An additional intellectual property rights grant can be found
  7. * in the file PATENTS. All contributing project authors may
  8. * be found in the AUTHORS file in the root of the source tree.
  9. */
  10. #include "libyuv/row.h"
  11. #include "libyuv/rotate_row.h"
  12. #include "libyuv/basic_types.h"
  13. #ifdef __cplusplus
  14. namespace libyuv {
  15. extern "C" {
  16. #endif
  17. // This module is for GCC Neon armv8 64 bit.
  18. #if !defined(LIBYUV_DISABLE_NEON) && defined(__aarch64__)
  19. static uvec8 kVTbl4x4Transpose =
  20. { 0, 4, 8, 12, 1, 5, 9, 13, 2, 6, 10, 14, 3, 7, 11, 15 };
  21. void TransposeWx8_NEON(const uint8* src, int src_stride,
  22. uint8* dst, int dst_stride, int width) {
  23. const uint8* src_temp;
  24. int64 width64 = (int64) width; // Work around clang 3.4 warning.
  25. asm volatile (
  26. // loops are on blocks of 8. loop will stop when
  27. // counter gets to or below 0. starting the counter
  28. // at w-8 allow for this
  29. "sub %3, %3, #8 \n"
  30. // handle 8x8 blocks. this should be the majority of the plane
  31. "1: \n"
  32. "mov %0, %1 \n"
  33. MEMACCESS(0)
  34. "ld1 {v0.8b}, [%0], %5 \n"
  35. MEMACCESS(0)
  36. "ld1 {v1.8b}, [%0], %5 \n"
  37. MEMACCESS(0)
  38. "ld1 {v2.8b}, [%0], %5 \n"
  39. MEMACCESS(0)
  40. "ld1 {v3.8b}, [%0], %5 \n"
  41. MEMACCESS(0)
  42. "ld1 {v4.8b}, [%0], %5 \n"
  43. MEMACCESS(0)
  44. "ld1 {v5.8b}, [%0], %5 \n"
  45. MEMACCESS(0)
  46. "ld1 {v6.8b}, [%0], %5 \n"
  47. MEMACCESS(0)
  48. "ld1 {v7.8b}, [%0] \n"
  49. "trn2 v16.8b, v0.8b, v1.8b \n"
  50. "trn1 v17.8b, v0.8b, v1.8b \n"
  51. "trn2 v18.8b, v2.8b, v3.8b \n"
  52. "trn1 v19.8b, v2.8b, v3.8b \n"
  53. "trn2 v20.8b, v4.8b, v5.8b \n"
  54. "trn1 v21.8b, v4.8b, v5.8b \n"
  55. "trn2 v22.8b, v6.8b, v7.8b \n"
  56. "trn1 v23.8b, v6.8b, v7.8b \n"
  57. "trn2 v3.4h, v17.4h, v19.4h \n"
  58. "trn1 v1.4h, v17.4h, v19.4h \n"
  59. "trn2 v2.4h, v16.4h, v18.4h \n"
  60. "trn1 v0.4h, v16.4h, v18.4h \n"
  61. "trn2 v7.4h, v21.4h, v23.4h \n"
  62. "trn1 v5.4h, v21.4h, v23.4h \n"
  63. "trn2 v6.4h, v20.4h, v22.4h \n"
  64. "trn1 v4.4h, v20.4h, v22.4h \n"
  65. "trn2 v21.2s, v1.2s, v5.2s \n"
  66. "trn1 v17.2s, v1.2s, v5.2s \n"
  67. "trn2 v20.2s, v0.2s, v4.2s \n"
  68. "trn1 v16.2s, v0.2s, v4.2s \n"
  69. "trn2 v23.2s, v3.2s, v7.2s \n"
  70. "trn1 v19.2s, v3.2s, v7.2s \n"
  71. "trn2 v22.2s, v2.2s, v6.2s \n"
  72. "trn1 v18.2s, v2.2s, v6.2s \n"
  73. "mov %0, %2 \n"
  74. MEMACCESS(0)
  75. "st1 {v17.8b}, [%0], %6 \n"
  76. MEMACCESS(0)
  77. "st1 {v16.8b}, [%0], %6 \n"
  78. MEMACCESS(0)
  79. "st1 {v19.8b}, [%0], %6 \n"
  80. MEMACCESS(0)
  81. "st1 {v18.8b}, [%0], %6 \n"
  82. MEMACCESS(0)
  83. "st1 {v21.8b}, [%0], %6 \n"
  84. MEMACCESS(0)
  85. "st1 {v20.8b}, [%0], %6 \n"
  86. MEMACCESS(0)
  87. "st1 {v23.8b}, [%0], %6 \n"
  88. MEMACCESS(0)
  89. "st1 {v22.8b}, [%0] \n"
  90. "add %1, %1, #8 \n" // src += 8
  91. "add %2, %2, %6, lsl #3 \n" // dst += 8 * dst_stride
  92. "subs %3, %3, #8 \n" // w -= 8
  93. "b.ge 1b \n"
  94. // add 8 back to counter. if the result is 0 there are
  95. // no residuals.
  96. "adds %3, %3, #8 \n"
  97. "b.eq 4f \n"
  98. // some residual, so between 1 and 7 lines left to transpose
  99. "cmp %3, #2 \n"
  100. "b.lt 3f \n"
  101. "cmp %3, #4 \n"
  102. "b.lt 2f \n"
  103. // 4x8 block
  104. "mov %0, %1 \n"
  105. MEMACCESS(0)
  106. "ld1 {v0.s}[0], [%0], %5 \n"
  107. MEMACCESS(0)
  108. "ld1 {v0.s}[1], [%0], %5 \n"
  109. MEMACCESS(0)
  110. "ld1 {v0.s}[2], [%0], %5 \n"
  111. MEMACCESS(0)
  112. "ld1 {v0.s}[3], [%0], %5 \n"
  113. MEMACCESS(0)
  114. "ld1 {v1.s}[0], [%0], %5 \n"
  115. MEMACCESS(0)
  116. "ld1 {v1.s}[1], [%0], %5 \n"
  117. MEMACCESS(0)
  118. "ld1 {v1.s}[2], [%0], %5 \n"
  119. MEMACCESS(0)
  120. "ld1 {v1.s}[3], [%0] \n"
  121. "mov %0, %2 \n"
  122. MEMACCESS(4)
  123. "ld1 {v2.16b}, [%4] \n"
  124. "tbl v3.16b, {v0.16b}, v2.16b \n"
  125. "tbl v0.16b, {v1.16b}, v2.16b \n"
  126. // TODO(frkoenig): Rework shuffle above to
  127. // write out with 4 instead of 8 writes.
  128. MEMACCESS(0)
  129. "st1 {v3.s}[0], [%0], %6 \n"
  130. MEMACCESS(0)
  131. "st1 {v3.s}[1], [%0], %6 \n"
  132. MEMACCESS(0)
  133. "st1 {v3.s}[2], [%0], %6 \n"
  134. MEMACCESS(0)
  135. "st1 {v3.s}[3], [%0] \n"
  136. "add %0, %2, #4 \n"
  137. MEMACCESS(0)
  138. "st1 {v0.s}[0], [%0], %6 \n"
  139. MEMACCESS(0)
  140. "st1 {v0.s}[1], [%0], %6 \n"
  141. MEMACCESS(0)
  142. "st1 {v0.s}[2], [%0], %6 \n"
  143. MEMACCESS(0)
  144. "st1 {v0.s}[3], [%0] \n"
  145. "add %1, %1, #4 \n" // src += 4
  146. "add %2, %2, %6, lsl #2 \n" // dst += 4 * dst_stride
  147. "subs %3, %3, #4 \n" // w -= 4
  148. "b.eq 4f \n"
  149. // some residual, check to see if it includes a 2x8 block,
  150. // or less
  151. "cmp %3, #2 \n"
  152. "b.lt 3f \n"
  153. // 2x8 block
  154. "2: \n"
  155. "mov %0, %1 \n"
  156. MEMACCESS(0)
  157. "ld1 {v0.h}[0], [%0], %5 \n"
  158. MEMACCESS(0)
  159. "ld1 {v1.h}[0], [%0], %5 \n"
  160. MEMACCESS(0)
  161. "ld1 {v0.h}[1], [%0], %5 \n"
  162. MEMACCESS(0)
  163. "ld1 {v1.h}[1], [%0], %5 \n"
  164. MEMACCESS(0)
  165. "ld1 {v0.h}[2], [%0], %5 \n"
  166. MEMACCESS(0)
  167. "ld1 {v1.h}[2], [%0], %5 \n"
  168. MEMACCESS(0)
  169. "ld1 {v0.h}[3], [%0], %5 \n"
  170. MEMACCESS(0)
  171. "ld1 {v1.h}[3], [%0] \n"
  172. "trn2 v2.8b, v0.8b, v1.8b \n"
  173. "trn1 v3.8b, v0.8b, v1.8b \n"
  174. "mov %0, %2 \n"
  175. MEMACCESS(0)
  176. "st1 {v3.8b}, [%0], %6 \n"
  177. MEMACCESS(0)
  178. "st1 {v2.8b}, [%0] \n"
  179. "add %1, %1, #2 \n" // src += 2
  180. "add %2, %2, %6, lsl #1 \n" // dst += 2 * dst_stride
  181. "subs %3, %3, #2 \n" // w -= 2
  182. "b.eq 4f \n"
  183. // 1x8 block
  184. "3: \n"
  185. MEMACCESS(1)
  186. "ld1 {v0.b}[0], [%1], %5 \n"
  187. MEMACCESS(1)
  188. "ld1 {v0.b}[1], [%1], %5 \n"
  189. MEMACCESS(1)
  190. "ld1 {v0.b}[2], [%1], %5 \n"
  191. MEMACCESS(1)
  192. "ld1 {v0.b}[3], [%1], %5 \n"
  193. MEMACCESS(1)
  194. "ld1 {v0.b}[4], [%1], %5 \n"
  195. MEMACCESS(1)
  196. "ld1 {v0.b}[5], [%1], %5 \n"
  197. MEMACCESS(1)
  198. "ld1 {v0.b}[6], [%1], %5 \n"
  199. MEMACCESS(1)
  200. "ld1 {v0.b}[7], [%1] \n"
  201. MEMACCESS(2)
  202. "st1 {v0.8b}, [%2] \n"
  203. "4: \n"
  204. : "=&r"(src_temp), // %0
  205. "+r"(src), // %1
  206. "+r"(dst), // %2
  207. "+r"(width64) // %3
  208. : "r"(&kVTbl4x4Transpose), // %4
  209. "r"(static_cast<ptrdiff_t>(src_stride)), // %5
  210. "r"(static_cast<ptrdiff_t>(dst_stride)) // %6
  211. : "memory", "cc", "v0", "v1", "v2", "v3", "v4", "v5", "v6", "v7", "v16",
  212. "v17", "v18", "v19", "v20", "v21", "v22", "v23"
  213. );
  214. }
  215. static uint8 kVTbl4x4TransposeDi[32] =
  216. { 0, 16, 32, 48, 2, 18, 34, 50, 4, 20, 36, 52, 6, 22, 38, 54,
  217. 1, 17, 33, 49, 3, 19, 35, 51, 5, 21, 37, 53, 7, 23, 39, 55};
  218. void TransposeUVWx8_NEON(const uint8* src, int src_stride,
  219. uint8* dst_a, int dst_stride_a,
  220. uint8* dst_b, int dst_stride_b,
  221. int width) {
  222. const uint8* src_temp;
  223. int64 width64 = (int64) width; // Work around clang 3.4 warning.
  224. asm volatile (
  225. // loops are on blocks of 8. loop will stop when
  226. // counter gets to or below 0. starting the counter
  227. // at w-8 allow for this
  228. "sub %4, %4, #8 \n"
  229. // handle 8x8 blocks. this should be the majority of the plane
  230. "1: \n"
  231. "mov %0, %1 \n"
  232. MEMACCESS(0)
  233. "ld1 {v0.16b}, [%0], %5 \n"
  234. MEMACCESS(0)
  235. "ld1 {v1.16b}, [%0], %5 \n"
  236. MEMACCESS(0)
  237. "ld1 {v2.16b}, [%0], %5 \n"
  238. MEMACCESS(0)
  239. "ld1 {v3.16b}, [%0], %5 \n"
  240. MEMACCESS(0)
  241. "ld1 {v4.16b}, [%0], %5 \n"
  242. MEMACCESS(0)
  243. "ld1 {v5.16b}, [%0], %5 \n"
  244. MEMACCESS(0)
  245. "ld1 {v6.16b}, [%0], %5 \n"
  246. MEMACCESS(0)
  247. "ld1 {v7.16b}, [%0] \n"
  248. "trn1 v16.16b, v0.16b, v1.16b \n"
  249. "trn2 v17.16b, v0.16b, v1.16b \n"
  250. "trn1 v18.16b, v2.16b, v3.16b \n"
  251. "trn2 v19.16b, v2.16b, v3.16b \n"
  252. "trn1 v20.16b, v4.16b, v5.16b \n"
  253. "trn2 v21.16b, v4.16b, v5.16b \n"
  254. "trn1 v22.16b, v6.16b, v7.16b \n"
  255. "trn2 v23.16b, v6.16b, v7.16b \n"
  256. "trn1 v0.8h, v16.8h, v18.8h \n"
  257. "trn2 v1.8h, v16.8h, v18.8h \n"
  258. "trn1 v2.8h, v20.8h, v22.8h \n"
  259. "trn2 v3.8h, v20.8h, v22.8h \n"
  260. "trn1 v4.8h, v17.8h, v19.8h \n"
  261. "trn2 v5.8h, v17.8h, v19.8h \n"
  262. "trn1 v6.8h, v21.8h, v23.8h \n"
  263. "trn2 v7.8h, v21.8h, v23.8h \n"
  264. "trn1 v16.4s, v0.4s, v2.4s \n"
  265. "trn2 v17.4s, v0.4s, v2.4s \n"
  266. "trn1 v18.4s, v1.4s, v3.4s \n"
  267. "trn2 v19.4s, v1.4s, v3.4s \n"
  268. "trn1 v20.4s, v4.4s, v6.4s \n"
  269. "trn2 v21.4s, v4.4s, v6.4s \n"
  270. "trn1 v22.4s, v5.4s, v7.4s \n"
  271. "trn2 v23.4s, v5.4s, v7.4s \n"
  272. "mov %0, %2 \n"
  273. MEMACCESS(0)
  274. "st1 {v16.d}[0], [%0], %6 \n"
  275. MEMACCESS(0)
  276. "st1 {v18.d}[0], [%0], %6 \n"
  277. MEMACCESS(0)
  278. "st1 {v17.d}[0], [%0], %6 \n"
  279. MEMACCESS(0)
  280. "st1 {v19.d}[0], [%0], %6 \n"
  281. MEMACCESS(0)
  282. "st1 {v16.d}[1], [%0], %6 \n"
  283. MEMACCESS(0)
  284. "st1 {v18.d}[1], [%0], %6 \n"
  285. MEMACCESS(0)
  286. "st1 {v17.d}[1], [%0], %6 \n"
  287. MEMACCESS(0)
  288. "st1 {v19.d}[1], [%0] \n"
  289. "mov %0, %3 \n"
  290. MEMACCESS(0)
  291. "st1 {v20.d}[0], [%0], %7 \n"
  292. MEMACCESS(0)
  293. "st1 {v22.d}[0], [%0], %7 \n"
  294. MEMACCESS(0)
  295. "st1 {v21.d}[0], [%0], %7 \n"
  296. MEMACCESS(0)
  297. "st1 {v23.d}[0], [%0], %7 \n"
  298. MEMACCESS(0)
  299. "st1 {v20.d}[1], [%0], %7 \n"
  300. MEMACCESS(0)
  301. "st1 {v22.d}[1], [%0], %7 \n"
  302. MEMACCESS(0)
  303. "st1 {v21.d}[1], [%0], %7 \n"
  304. MEMACCESS(0)
  305. "st1 {v23.d}[1], [%0] \n"
  306. "add %1, %1, #16 \n" // src += 8*2
  307. "add %2, %2, %6, lsl #3 \n" // dst_a += 8 * dst_stride_a
  308. "add %3, %3, %7, lsl #3 \n" // dst_b += 8 * dst_stride_b
  309. "subs %4, %4, #8 \n" // w -= 8
  310. "b.ge 1b \n"
  311. // add 8 back to counter. if the result is 0 there are
  312. // no residuals.
  313. "adds %4, %4, #8 \n"
  314. "b.eq 4f \n"
  315. // some residual, so between 1 and 7 lines left to transpose
  316. "cmp %4, #2 \n"
  317. "b.lt 3f \n"
  318. "cmp %4, #4 \n"
  319. "b.lt 2f \n"
  320. // TODO(frkoenig): Clean this up
  321. // 4x8 block
  322. "mov %0, %1 \n"
  323. MEMACCESS(0)
  324. "ld1 {v0.8b}, [%0], %5 \n"
  325. MEMACCESS(0)
  326. "ld1 {v1.8b}, [%0], %5 \n"
  327. MEMACCESS(0)
  328. "ld1 {v2.8b}, [%0], %5 \n"
  329. MEMACCESS(0)
  330. "ld1 {v3.8b}, [%0], %5 \n"
  331. MEMACCESS(0)
  332. "ld1 {v4.8b}, [%0], %5 \n"
  333. MEMACCESS(0)
  334. "ld1 {v5.8b}, [%0], %5 \n"
  335. MEMACCESS(0)
  336. "ld1 {v6.8b}, [%0], %5 \n"
  337. MEMACCESS(0)
  338. "ld1 {v7.8b}, [%0] \n"
  339. MEMACCESS(8)
  340. "ld1 {v30.16b}, [%8], #16 \n"
  341. "ld1 {v31.16b}, [%8] \n"
  342. "tbl v16.16b, {v0.16b, v1.16b, v2.16b, v3.16b}, v30.16b \n"
  343. "tbl v17.16b, {v0.16b, v1.16b, v2.16b, v3.16b}, v31.16b \n"
  344. "tbl v18.16b, {v4.16b, v5.16b, v6.16b, v7.16b}, v30.16b \n"
  345. "tbl v19.16b, {v4.16b, v5.16b, v6.16b, v7.16b}, v31.16b \n"
  346. "mov %0, %2 \n"
  347. MEMACCESS(0)
  348. "st1 {v16.s}[0], [%0], %6 \n"
  349. MEMACCESS(0)
  350. "st1 {v16.s}[1], [%0], %6 \n"
  351. MEMACCESS(0)
  352. "st1 {v16.s}[2], [%0], %6 \n"
  353. MEMACCESS(0)
  354. "st1 {v16.s}[3], [%0], %6 \n"
  355. "add %0, %2, #4 \n"
  356. MEMACCESS(0)
  357. "st1 {v18.s}[0], [%0], %6 \n"
  358. MEMACCESS(0)
  359. "st1 {v18.s}[1], [%0], %6 \n"
  360. MEMACCESS(0)
  361. "st1 {v18.s}[2], [%0], %6 \n"
  362. MEMACCESS(0)
  363. "st1 {v18.s}[3], [%0] \n"
  364. "mov %0, %3 \n"
  365. MEMACCESS(0)
  366. "st1 {v17.s}[0], [%0], %7 \n"
  367. MEMACCESS(0)
  368. "st1 {v17.s}[1], [%0], %7 \n"
  369. MEMACCESS(0)
  370. "st1 {v17.s}[2], [%0], %7 \n"
  371. MEMACCESS(0)
  372. "st1 {v17.s}[3], [%0], %7 \n"
  373. "add %0, %3, #4 \n"
  374. MEMACCESS(0)
  375. "st1 {v19.s}[0], [%0], %7 \n"
  376. MEMACCESS(0)
  377. "st1 {v19.s}[1], [%0], %7 \n"
  378. MEMACCESS(0)
  379. "st1 {v19.s}[2], [%0], %7 \n"
  380. MEMACCESS(0)
  381. "st1 {v19.s}[3], [%0] \n"
  382. "add %1, %1, #8 \n" // src += 4 * 2
  383. "add %2, %2, %6, lsl #2 \n" // dst_a += 4 * dst_stride_a
  384. "add %3, %3, %7, lsl #2 \n" // dst_b += 4 * dst_stride_b
  385. "subs %4, %4, #4 \n" // w -= 4
  386. "b.eq 4f \n"
  387. // some residual, check to see if it includes a 2x8 block,
  388. // or less
  389. "cmp %4, #2 \n"
  390. "b.lt 3f \n"
  391. // 2x8 block
  392. "2: \n"
  393. "mov %0, %1 \n"
  394. MEMACCESS(0)
  395. "ld2 {v0.h, v1.h}[0], [%0], %5 \n"
  396. MEMACCESS(0)
  397. "ld2 {v2.h, v3.h}[0], [%0], %5 \n"
  398. MEMACCESS(0)
  399. "ld2 {v0.h, v1.h}[1], [%0], %5 \n"
  400. MEMACCESS(0)
  401. "ld2 {v2.h, v3.h}[1], [%0], %5 \n"
  402. MEMACCESS(0)
  403. "ld2 {v0.h, v1.h}[2], [%0], %5 \n"
  404. MEMACCESS(0)
  405. "ld2 {v2.h, v3.h}[2], [%0], %5 \n"
  406. MEMACCESS(0)
  407. "ld2 {v0.h, v1.h}[3], [%0], %5 \n"
  408. MEMACCESS(0)
  409. "ld2 {v2.h, v3.h}[3], [%0] \n"
  410. "trn1 v4.8b, v0.8b, v2.8b \n"
  411. "trn2 v5.8b, v0.8b, v2.8b \n"
  412. "trn1 v6.8b, v1.8b, v3.8b \n"
  413. "trn2 v7.8b, v1.8b, v3.8b \n"
  414. "mov %0, %2 \n"
  415. MEMACCESS(0)
  416. "st1 {v4.d}[0], [%0], %6 \n"
  417. MEMACCESS(0)
  418. "st1 {v6.d}[0], [%0] \n"
  419. "mov %0, %3 \n"
  420. MEMACCESS(0)
  421. "st1 {v5.d}[0], [%0], %7 \n"
  422. MEMACCESS(0)
  423. "st1 {v7.d}[0], [%0] \n"
  424. "add %1, %1, #4 \n" // src += 2 * 2
  425. "add %2, %2, %6, lsl #1 \n" // dst_a += 2 * dst_stride_a
  426. "add %3, %3, %7, lsl #1 \n" // dst_b += 2 * dst_stride_b
  427. "subs %4, %4, #2 \n" // w -= 2
  428. "b.eq 4f \n"
  429. // 1x8 block
  430. "3: \n"
  431. MEMACCESS(1)
  432. "ld2 {v0.b, v1.b}[0], [%1], %5 \n"
  433. MEMACCESS(1)
  434. "ld2 {v0.b, v1.b}[1], [%1], %5 \n"
  435. MEMACCESS(1)
  436. "ld2 {v0.b, v1.b}[2], [%1], %5 \n"
  437. MEMACCESS(1)
  438. "ld2 {v0.b, v1.b}[3], [%1], %5 \n"
  439. MEMACCESS(1)
  440. "ld2 {v0.b, v1.b}[4], [%1], %5 \n"
  441. MEMACCESS(1)
  442. "ld2 {v0.b, v1.b}[5], [%1], %5 \n"
  443. MEMACCESS(1)
  444. "ld2 {v0.b, v1.b}[6], [%1], %5 \n"
  445. MEMACCESS(1)
  446. "ld2 {v0.b, v1.b}[7], [%1] \n"
  447. MEMACCESS(2)
  448. "st1 {v0.d}[0], [%2] \n"
  449. MEMACCESS(3)
  450. "st1 {v1.d}[0], [%3] \n"
  451. "4: \n"
  452. : "=&r"(src_temp), // %0
  453. "+r"(src), // %1
  454. "+r"(dst_a), // %2
  455. "+r"(dst_b), // %3
  456. "+r"(width64) // %4
  457. : "r"(static_cast<ptrdiff_t>(src_stride)), // %5
  458. "r"(static_cast<ptrdiff_t>(dst_stride_a)), // %6
  459. "r"(static_cast<ptrdiff_t>(dst_stride_b)), // %7
  460. "r"(&kVTbl4x4TransposeDi) // %8
  461. : "memory", "cc",
  462. "v0", "v1", "v2", "v3", "v4", "v5", "v6", "v7",
  463. "v16", "v17", "v18", "v19", "v20", "v21", "v22", "v23",
  464. "v30", "v31"
  465. );
  466. }
  467. #endif // !defined(LIBYUV_DISABLE_NEON) && defined(__aarch64__)
  468. #ifdef __cplusplus
  469. } // extern "C"
  470. } // namespace libyuv
  471. #endif