This file contains 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
// -*- compile-command: "clang++ -O2 -Wall -std=c++20 -fstrict-aliasing -o mem-set-benchmark-16 mem-set-benchmark-16.cpp $(pkg-config --cflags --libs fmt)" -*- | |
#include <array> | |
#include <bit> | |
#include <chrono> | |
#include <iostream> | |
#include <memory> | |
#include <utility> | |
#include <cassert> | |
#include <cstddef> |
This file contains 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
// -*- compile-command: "g++ -O2 -Wall -std=c++20 -fstrict-aliasing -o mem-benchmark mem-benchmark.cpp $(pkg-config --cflags --libs fmt)" -*- | |
#include <bit> | |
#include <chrono> | |
#include <iostream> | |
#include <memory> | |
#include <utility> | |
#include <cassert> | |
#include <cstddef> | |
#include <cstdint> |
This file contains 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
// -*- compile-command: "g++ -O2 -Wall -std=c++20 -fstrict-aliasing -o mem-benchmark mem-benchmark.cpp $(pkg-config --cflags --libs fmt)" -*- | |
#include <bit> | |
#include <chrono> | |
#include <iostream> | |
#include <memory> | |
#include <utility> | |
#include <cassert> | |
#include <cstddef> | |
#include <cstdint> |
This file contains 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
<?php | |
// Usage: icon_letters.php?FN=symbol&L=m&L_B=250&L_R=00&L_G=150&BG_B=100&BG_R=150&BG_G=250 | |
// Usage: icon_letters.php?FN=kaiu&dx=-3&dy=0&BG_B=100&BG_R=100&L=陈 | |
$width_height = 320; | |
//Send a generated image to the browser | |
$LETTERS_MAX_LEN = 3; | |
$letters = "SDP"; | |
if (isset($_GET['L'])) { |
This file contains 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 <cstdint> | |
#include <ctime> | |
#include <random> | |
#include <boost/format.hpp> | |
#define RUN_COUNT 100000 | |
#define RANGE_MIN 100 | |
#define RANGE_MAX 100000 | |
typedef std::minstd_rand PRNG; |
This file contains 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
==9979== Memcheck, a memory error detector | |
==9979== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al. | |
==9979== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info | |
==9979== Command: /home/kaixiong/installs/libvisual-0.5/bin/lv-tool | |
==9979== | |
/home/kaixiong/installs/libvisual-0.5/bin/lv-tool - libvisual-0.5.0 (257c138-dirty) commandline tool - http://libvisual.org | |
==9979== | |
==9979== HEAP SUMMARY: | |
==9979== in use at exit: 108,336 bytes in 538 blocks | |
==9979== total heap usage: 3,933 allocs, 3,395 frees, 1,837,113 bytes allocated |
This file contains 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
kaixiong@dreamerbox:~/Documents/projects/libvisual/libvisual/build$ lv-tool -i pulseaudio -f 0 | |
lv-tool v0.1 | |
Loading actor 'lv_analyzer'... | |
Loading input 'pulseaudio'... | |
0.15332912 | |
0.00005442 | |
0.00007324 | |
0.00004757 | |
0.15461316 | |
0.00004697 |
This file contains 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
kaixiong@dreamerbox:~/Documents/projects/libvisual$ git pull | |
remote: Counting objects: 100, done. | |
remote: Compressing objects: 100% (13/13), done. | |
remote: Total 40 (delta 27), reused 40 (delta 27) | |
Unpacking objects: 100% (40/40), done. | |
From github.com:Libvisual/libvisual | |
dd5ac7a..ae678da cxx -> origin/cxx | |
Updating dd5ac7a..ae678da | |
Fast-forward | |
libvisual-plugins/plugins/input/jack/input_jack.cpp | 33 ++++++++++++++------------------- |
This file contains 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 <libvisual/libvisual.h> | |
#include <pulse/simple.h> | |
#include <pulse/error.h> | |
#include <boost/format.hpp> | |
#include <iostream> | |
#include <vector> | |
#include <cmath> | |
#include <cstdlib> | |
typedef std::vector<LV::Time> TimingProfile; |
This file contains 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 "config.h" | |
#include "lv_ringbuffer.h" | |
#include "lv_common.h" | |
#include "gettext.h" | |
#include <vector> | |
namespace LV { | |
namespace { |
NewerOlder