mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-06 16:56:55 +08:00
Change inline to __asm__ for C
Bug: b/352378035 Change-Id: Ic8b451eda19255387b5712b2f12c797ddf985c45 Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/5691322 Reviewed-by: Wan-Teh Chang <wtc@google.com>
This commit is contained in:
parent
3902eaaf86
commit
3b3c7f0b81
@ -73,7 +73,7 @@ int main(int argc, const char* argv[]) {
|
|||||||
// Read and print the SVE and SME vector lengths.
|
// Read and print the SVE and SME vector lengths.
|
||||||
if (has_sve) {
|
if (has_sve) {
|
||||||
int sve_vl;
|
int sve_vl;
|
||||||
asm(".inst 0x04bf5020 \n" // rdvl x0, #1
|
__asm__(".inst 0x04bf5020 \n" // rdvl x0, #1
|
||||||
"mov %w[sve_vl], w0 \n"
|
"mov %w[sve_vl], w0 \n"
|
||||||
: [sve_vl] "=r"(sve_vl) // %[sve_vl]
|
: [sve_vl] "=r"(sve_vl) // %[sve_vl]
|
||||||
:
|
:
|
||||||
@ -82,7 +82,7 @@ int main(int argc, const char* argv[]) {
|
|||||||
}
|
}
|
||||||
if (has_sme) {
|
if (has_sme) {
|
||||||
int sme_vl;
|
int sme_vl;
|
||||||
asm(".inst 0x04bf5820 \n" // rdsvl x0, #1
|
__asm__(".inst 0x04bf5820 \n" // rdsvl x0, #1
|
||||||
"mov %w[sme_vl], w0 \n"
|
"mov %w[sme_vl], w0 \n"
|
||||||
: [sme_vl] "=r"(sme_vl) // %[sme_vl]
|
: [sme_vl] "=r"(sme_vl) // %[sme_vl]
|
||||||
:
|
:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user