mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 02:08:49 +12:00
move inline definitions in header, wtf am I doing, Travis pls.
This commit is contained in:
parent
1bb140780b
commit
e8efb8f9fb
2 changed files with 23 additions and 31 deletions
|
@ -18,31 +18,3 @@ int clock_gettime(int foo, struct timespec *ts) {
|
|||
return(0);
|
||||
}
|
||||
#endif /* !__APPLE__ */
|
||||
|
||||
#if defined(__GNUG__)
|
||||
int64_t InterlockedOr64(volatile int64_t *dest, int64_t val)
|
||||
{
|
||||
int64_t olderval;
|
||||
int64_t oldval = *dest;
|
||||
do
|
||||
{
|
||||
olderval = oldval;
|
||||
oldval = InterlockedCompareExchange64(dest, olderval | val, olderval);
|
||||
} while (olderval != oldval);
|
||||
return oldval;
|
||||
}
|
||||
|
||||
uint64_t __umulh(uint64_t a, uint64_t b)
|
||||
{
|
||||
uint64_t result;
|
||||
__asm__("mulq %[b]" : "=d" (result) : [a] "a" (a), [b] "rm" (b));
|
||||
return result;
|
||||
}
|
||||
|
||||
int64_t __mulh(int64_t a, int64_t b)
|
||||
{
|
||||
int64_t result;
|
||||
__asm__("imulq %[b]" : "=d" (result) : [a] "a" (a), [b] "rm" (b));
|
||||
return result;
|
||||
}
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue