Skip to content

Instantly share code, notes, and snippets.

View Randrianasulu's full-sized avatar

Andrew Randrianasulu Randrianasulu

View GitHub Profile
@Randrianasulu
Randrianasulu / math_include.diff
Created March 20, 2023 01:53
Fix for liquid-dsp 'make bench'
~/quiet-dsp $ cat ~/storage/downloads/liquid_dsp/math_include.diff
diff --git a/src/framing/bench/framesync64_benchmark.c b/src/framing/bench/framesync64_benchmark.c index 07a9184d..a436ec12 100644
--- a/src/framing/bench/framesync64_benchmark.c
+++ b/src/framing/bench/framesync64_benchmark.c
@@ -22,6 +22,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include "math.h"
#include <sys/resource.h>
wget https://raw.githubusercontent.com/jeffpar/pcjs/master/machines/pcx86/compaq/deskpro386/rom/1988-01-28/109591-001.hex
wget https://raw.githubusercontent.com/jeffpar/pcjs/master/machines/pcx86/compaq/deskpro386/rom/1988-01-28/109592-001.hex
then download and compile nex2bin from
https://github.com/Keidan/hex2bin.git
(require cmake)
cat ~/86box-minix2.cfg
[General]
vid_renderer = qt_opengl3
dpi_scale = 0
confirm_reset = 0
[Machine]
machine = super286tr
cpu_family = 286
cpu_speed = 6000000
[general]
; version: version number, DO NOT CHANGE
; firstrun: 1 for opening the settings menu automatically, 0 otherwise
; settingsmenufont: the font to use for the Settings menu: 0=Default, 1=Phoenix Laptop, 2=Phoenix - Award Workstation
; backgroundpolicy: 0=Full halt, 1=Run without audio playing and recording, 2=Run without recording, 3=Run without rendering the display
version=1
firstrun=0
settingsmenufont=0
backgroundpolicy=0