This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdint.h> | |
struct xy { | |
uint16_t x, y; | |
}; | |
uint32_t xy2z(struct xy *xy) | |
{ | |
uint64_t r = xy->x | ((uint64_t)xy->y << 32); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There seems to be a firmware issue with TSC (timestamp counter) on new | |
AMD Ryzen CPUs in recently released Acer Swift 3 SF314-42 laptops. | |
The issue is that different cores of the CPU may have TSC running at | |
different rates or out of sync with each other. This causes a | |
performance penalty as the operating system is unable to use the TSC, | |
and has to fall back to another time source. | |
The issue can be easily reproduced by booting Linux (Windows should be | |
affected too, but I'm not sure how to diagnose it there). After |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
// Copyright 2018 Alexander Monakov <[email protected]> | |
/* This implements a sort function suitable for GCC use cases: | |
- signature-compatible to C qsort, but with relaxed contract: | |
- may apply the comparator to elements moved to a temporary buffer | |
- may abort on allocation failure | |
- deterministic (not stable, but allows a stable variant at low cost) | |
- fast, especially for common cases (0-5 elements of size 8 or 4) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/mesa/drivers/dri/i965/intel_pixel_draw.c b/src/mesa/drivers/dri/i965/intel_pixel_draw.c | |
index af618a2..0ba7c9c 100644 | |
--- a/src/mesa/drivers/dri/i965/intel_pixel_draw.c | |
+++ b/src/mesa/drivers/dri/i965/intel_pixel_draw.c | |
@@ -29,14 +29,110 @@ | |
#include "main/enums.h" | |
#include "main/image.h" | |
#include "main/mtypes.h" | |
+#include "main/fbobject.h" | |
#include "main/teximage.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ENIGMAsystem/SHELL/Platforms/xlib/include.h b/ENIGMAsystem/SHELL/Platforms/xlib/include.h | |
index 824aa8b..86119a9 100644 | |
--- a/ENIGMAsystem/SHELL/Platforms/xlib/include.h | |
+++ b/ENIGMAsystem/SHELL/Platforms/xlib/include.h | |
@@ -1,4 +1,5 @@ | |
#include "XLIBwindow.h" | |
#include "XLIBthreads.h" | |
#include "LINUXjoystick.h" | |
+#include "file_manip.h" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--w------- 1 root root 4096 Nov 11 15:57 bind | |
lrwxrwxrwx 1 root root 0 Nov 11 15:57 LNXVIDEO:00 -> ../../../../devices/LNXSYSTM:00/device:00/PNP0A08:00/device:2f/LNXVIDEO:00 | |
lrwxrwxrwx 1 root root 0 Nov 11 15:57 LNXVIDEO:01 -> ../../../../devices/LNXSYSTM:00/device:00/PNP0A08:00/LNXVIDEO:01 | |
--w------- 1 root root 4096 Nov 11 15:43 uevent | |
--w------- 1 root root 4096 Nov 11 15:57 unbind |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/path:\_SB_ | |
./PNP0C14:00/path:\_SB_.WMI0 | |
./PNP0A08:00/path:\_SB_.PCI0 | |
./PNP0A08:00/device:01/path:\_SB_.PCI0.P0P1 | |
./PNP0A08:00/device:02/path:\_SB_.PCI0.LPCB | |
./PNP0A08:00/device:02/PNP0200:00/path:\_SB_.PCI0.LPCB.DMAC | |
./PNP0A08:00/device:02/INT0800:00/path:\_SB_.PCI0.LPCB.FWHD | |
./PNP0A08:00/device:02/PNP0103:00/path:\_SB_.PCI0.LPCB.HPET | |
./PNP0A08:00/device:02/PNP0000:00/path:\_SB_.PCI0.LPCB.IPIC | |
./PNP0A08:00/device:02/PNP0C04:00/path:\_SB_.PCI0.LPCB.MATH |