| Server IP : 82.208.35.60 / Your IP : 216.73.217.33 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/graphics/appleseed/files/ |
Upload File : |
--- src/appleseed/foundation/platform/system.cpp.orig 2019-08-31 15:49:01 UTC
+++ src/appleseed/foundation/platform/system.cpp
@@ -548,6 +548,20 @@ namespace
"=d" (regs[edx]));
}
+ // Two-argument compatibility method.
+ void cpuid(uint32 cpuinfo[4], const uint32 index)
+ {
+ cpuinfo[eax] = index;
+ cpuid(cpuinfo);
+ }
+
+ uint64 xgetbv(const int32 index)
+ {
+ uint32 eax, edx;
+ __asm__ __volatile__("xgetbv" : "=a"(eax), "=d"(edx) : "c"(index));
+ return (static_cast<uint64>(edx) << 32) | eax;
+ }
+
#define BIT(n) (1UL << (n))
#define BITMASK(h, l) ((BIT(h) | (BIT(h) - 1)) & ~(BIT(l) - 1))
#define BITFIELD(x, h, l) (((x) & BITMASK(h, l)) >> l)