Skip to content

Instantly share code, notes, and snippets.

@shiner-chen
shiner-chen / create_rootfs.sh
Created March 25, 2022 08:45 — forked from fjkz/create_rootfs.sh
Create a rootfs environment for chroot building.
#!/bin/sh
#
# Create a rootfs environment for chroot building.
#
# Requires
# - OS installing CDROM at the current directory,
# - the root authority.
#
# mount install cd
@shiner-chen
shiner-chen / fix_fft.c
Created September 3, 2019 08:06 — forked from Tomwi/fix_fft.c
/* fix_fft.c - Fixed-point in-place Fast Fourier Transform */
/*
All data are fixed-point short integers, in which -32768
to +32768 represent -1.0 to +1.0 respectively. Integer
arithmetic is used for speed, instead of the more natural
floating-point.
For the forward FFT (time -> freq), fixed scaling is
performed to prevent arithmetic overflow, and to map a 0dB
sine/cosine wave (i.e. amplitude = 32767) to two -6dB freq