This file contains hidden or 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 <pipewire/pipewire.h> | |
#include <pthread.h> | |
#include <dlfcn.h> | |
static pthread_once_t lib_once = PTHREAD_ONCE_INIT; | |
static void *pw_lib = NULL; | |
static void load_pw_lib(void) | |
{ | |
pw_lib = dlopen("/usr/lib/libpipewire-0.3.so", RTLD_NOW); | |
} |
This file contains hidden or 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
git filter-branch --tree-filter 'git-clang-format; true' -- <SHA1>..HEAD |
This file contains hidden or 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
```cpp | |
// Sorry, I don't know which. | |
#define WIN32_MEAN_AND_LEAN | |
#define WIN32_LEAN_AND_MEAN | |
enum class FizzBuzzState : uint32_t | |
{ | |
Fizz = 0b01, | |
Buzz = 0b10, | |
FizzBuzz = Fizz | Buzz |
This file contains hidden or 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
@echo off | |
REM Generate a .lib from a .dll | |
REM By Joshua Ashton | |
REM | |
REM Usage: make_lib.bat libfontconfig-1.dll fontconfig x64 | |
set dllname=%1 | |
set outname=%2 | |
set arch=%3 |
This file contains hidden or 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
double not_terrible_lerp<double>(double, double, double): | |
push rbp | |
mov rbp, rsp | |
movsd QWORD PTR [rbp-8], xmm0 | |
movsd QWORD PTR [rbp-16], xmm1 | |
movsd QWORD PTR [rbp-24], xmm2 | |
movsd xmm0, QWORD PTR [rbp-16] | |
subsd xmm0, QWORD PTR [rbp-8] | |
mulsd xmm0, QWORD PTR [rbp-24] | |
addsd xmm0, QWORD PTR [rbp-8] |
This file contains hidden or 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
std::isfinite(double): | |
push rbp | |
mov rbp, rsp | |
movsd QWORD PTR [rbp-8], xmm0 | |
movsd xmm0, QWORD PTR [rbp-8] | |
movq xmm1, QWORD PTR .LC0[rip] | |
andpd xmm1, xmm0 | |
movsd xmm0, QWORD PTR .LC1[rip] | |
ucomisd xmm0, xmm1 | |
setb al |
This file contains hidden or 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
template <class _Ty> | |
_NODISCARD /* constexpr */ _Ty _Common_lerp(const _Ty _ArgA, const _Ty _ArgB, const _Ty _ArgT) noexcept { | |
// on a line intersecting {(0.0, _ArgA), (1.0, _ArgB)}, return the Y value for X == _ArgT | |
const int _Finite_mask = (int{isfinite(_ArgA)} << 2) | (int{isfinite(_ArgB)} << 1) | int{isfinite(_ArgT)}; | |
if (_Finite_mask == 0b111) { | |
// 99% case, put it first; this block comes from P0811R3 | |
if ((_ArgA <= 0 && _ArgB >= 0) || (_ArgA >= 0 && _ArgB <= 0)) { | |
// exact, monotonic, bounded, determinate, and (for _ArgA == _ArgB == 0) consistent: | |
return _ArgT * _ArgB + (1 - _ArgT) * _ArgA; |
This file contains hidden or 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
setxkbmap -option grab:break_actions | |
xdotool key XF86Ungrab |
This file contains hidden or 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/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp | |
index e29d7d07..a2ff403e 100644 | |
--- a/src/d3d9/d3d9_device.cpp | |
+++ b/src/d3d9/d3d9_device.cpp | |
@@ -2441,6 +2441,8 @@ namespace dxvk { | |
ApplyPrimitiveType(ctx, D3DPT_POINTLIST); | |
+ Rc<DxvkShader> fragmentShader = ctx->unbindShader(VK_SHADER_STAGE_FRAGMENT_BIT); | |
+ |
This file contains hidden or 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/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp | |
index e29d7d07..a2ff403e 100644 | |
--- a/src/d3d9/d3d9_device.cpp | |
+++ b/src/d3d9/d3d9_device.cpp | |
@@ -2441,6 +2441,8 @@ namespace dxvk { | |
ApplyPrimitiveType(ctx, D3DPT_POINTLIST); | |
+ Rc<DxvkShader> fragmentShader = ctx->unbindShader(VK_SHADER_STAGE_FRAGMENT_BIT); | |
+ |
NewerOlder