Skip to content

Instantly share code, notes, and snippets.

@Lanius-collaris
Lanius-collaris / 7-zip.chm.html
Last active April 21, 2022 21:17
7zip help (convert from chm)
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta name="generator" content="Aspose.Words for .NET 22.3.0">
<title>7-Zip</title>
<style type="text/css">body { font-family:Verdana; font-size:9.5pt }h1, h2, h3, h4, h5, h6, p { margin:0pt }li, table { margin-top:0pt; margin-bottom:0pt }h1 { margin-top:12pt; margin-bottom:0pt; page-break-inside:avoid; page-break-after:avoid; font-family:Verdana; font-size:17.5pt; font-weight:bold; font-style:normal; color:#2f5496 }h2 { margin-top:2pt; margin-bottom:0pt; page-break-inside:avoid; page-break-after:avoid; font-family:Verdana; font-size:15.5pt; font-weight:bold; font-style:normal; color:#2f5496 }h3 { margin-top:2pt; margin-bottom:0pt; page-break-inside:avoid; page-break-after:avoid; font-family:Verdana; font-size:14pt; font-weight:bold; font-style:normal; color:#1f3763 }h4 { margin-top:2pt; margin-bottom:0pt; page-break-inside:avoid; page-break-aft
@Lanius-collaris
Lanius-collaris / linuxsampler_loongarch64.patch
Created January 5, 2022 22:24
loongarch64_linuxsampler_patch
--- a/src/common/RTMath.cpp 2021-12-25 18:37:48.733719298 +0800
+++ b/src/common/RTMath.cpp 2021-12-25 21:54:21.914927577 +0800
@@ -73,6 +73,10 @@
return t;
#elif defined(__APPLE__)
return (time_stamp_t) mach_absolute_time();
+ #elif defined(__loongarch64)
+ uint64_t t;
+ __asm__ __volatile__ ("rdtime.d %0, $zero":"=r"(t));
+ return time_stamp_t(t>>8);