Skip to content

Instantly share code, notes, and snippets.

View asimonf's full-sized avatar
🏠
Working from home

Alberto Simon asimonf

🏠
Working from home
View GitHub Profile
@asimonf
asimonf / Program.cs
Last active March 9, 2022 19:23
Get multiplier and divisors for an input frequency for PLL using Continued Fractions
using System;
using System.Collections.Generic;
using System.Numerics;
using Fractions;
static Fraction FractionCoefsToRational(IReadOnlyList<BigInteger> approx, int index = 0, int cutoff = -1)
{
if (cutoff > approx.Count || cutoff < 0) cutoff = approx.Count;
var ret = Fraction.Zero;
Index: gfx/drivers_context/drm_egl_ctx.c
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- gfx/drivers_context/drm_egl_ctx.c (revision 3ef70c1c3ddb49abcaed48e41897c7350076f1f5)
+++ gfx/drivers_context/drm_egl_ctx.c (revision )
@@ -356,8 +356,10 @@
if (drm->g_orig_crtc)
drmModeFreeCrtc(drm->g_orig_crtc);