mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-06 08:46:47 +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.
|
||||
if (has_sve) {
|
||||
int sve_vl;
|
||||
asm(".inst 0x04bf5020 \n" // rdvl x0, #1
|
||||
__asm__(".inst 0x04bf5020 \n" // rdvl x0, #1
|
||||
"mov %w[sve_vl], w0 \n"
|
||||
: [sve_vl] "=r"(sve_vl) // %[sve_vl]
|
||||
:
|
||||
@ -82,7 +82,7 @@ int main(int argc, const char* argv[]) {
|
||||
}
|
||||
if (has_sme) {
|
||||
int sme_vl;
|
||||
asm(".inst 0x04bf5820 \n" // rdsvl x0, #1
|
||||
__asm__(".inst 0x04bf5820 \n" // rdsvl x0, #1
|
||||
"mov %w[sme_vl], w0 \n"
|
||||
: [sme_vl] "=r"(sme_vl) // %[sme_vl]
|
||||
:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user