mirror of https://git.ffmpeg.org/ffmpeg.git
lavu/riscv: fix compilation without Vector support
The half-baked assembler in Clang 16 and earlier can't process our RISC-V assembler. This adds yet another work around that. If you must use Clang, please use version 17 or later.
This commit is contained in:
parent
970d57988d
commit
e29432e6bb
|
@ -56,7 +56,6 @@ static inline size_t ff_get_rv_vlenb(void)
|
||||||
".option pop\n" : "=r" (vlenb));
|
".option pop\n" : "=r" (vlenb));
|
||||||
return vlenb;
|
return vlenb;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks that the vector bit-size is at least the given value.
|
* Checks that the vector bit-size is at least the given value.
|
||||||
|
@ -78,3 +77,4 @@ static inline bool ff_rv_vlen_least(unsigned int bits)
|
||||||
return bits <= (8 * ff_get_rv_vlenb());
|
return bits <= (8 * ff_get_rv_vlenb());
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif /* HAVE_RVV */
|
||||||
|
|
Loading…
Reference in New Issue