mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-26 00:57:30 +09:00
Fix the damn conflict
This commit is contained in:
parent
34fb5b8946
commit
3b891733fd
1 changed files with 6 additions and 2 deletions
|
|
@ -26,22 +26,26 @@
|
||||||
#ifndef AVUTIL_TIMER_H
|
#ifndef AVUTIL_TIMER_H
|
||||||
#define AVUTIL_TIMER_H
|
#define AVUTIL_TIMER_H
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#if HAVE_INLINE_ASM
|
#if HAVE_INLINE_ASM
|
||||||
|
|
||||||
|
#if ARCH_LOONGARCH64
|
||||||
|
|
||||||
#define AV_READ_TIME read_time
|
#define AV_READ_TIME read_time
|
||||||
|
|
||||||
static inline uint64_t read_time(void)
|
static inline uint64_t read_time(void)
|
||||||
{
|
{
|
||||||
|
|
||||||
#if ARCH_LOONGARCH64
|
|
||||||
uint64_t a, id;
|
uint64_t a, id;
|
||||||
__asm__ volatile ( "rdtime.d %0, %1" : "=r"(a), "=r"(id) :: );
|
__asm__ volatile ( "rdtime.d %0, %1" : "=r"(a), "=r"(id) :: );
|
||||||
return a;
|
return a;
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
#define START_TIMER
|
#define START_TIMER
|
||||||
#define STOP_TIMER(id) { }
|
#define STOP_TIMER(id) { }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif /* HAVE_INLINE_ASM */
|
||||||
|
|
||||||
#endif /* AVUTIL_TIMER_H */
|
#endif /* AVUTIL_TIMER_H */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue