This file contains hidden or 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 <stdio.h> | |
#include <time.h> | |
#define NSUB (1L<<32) | |
#define NBIT 48 | |
//#define NSUB (1<<4) | |
//#define NBIT 8 | |
#define COUNT(isub, iseg) (isub*((long)NSUB)+iseg) | |
#define PRINT_COUNT(msg, count) printf("%s: iSub= %ld\tcount= %ld\tr1= %ld\tr2=%ld\telapse= %f\n", msg, isub, count, r1, r2, elapse) | |
#define PRINT(msg) PRINT_COUNT(msg, COUNT(isub, iseg)) |
This file contains hidden or 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
defscrollback 10000 | |
autodetach on | |
vbell on | |
hardstatus alwayslastline | |
hardstatus string '%{= kg}[ %{y}%H %{g}][%= %{=kw}%?%-w%?%{y}(%{W}%n*%t%?(%u)%?%{y})%{g}%?%+w%?%?%= %{g}][ %{y}%Y-%m-%d %{W}%c %D %{g}]' | |
escape ^Aa | |
#shell bash |
This file contains hidden or 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
#!/usr/bin/env bash | |
function token_to_array() { | |
local -n array=$1 | |
local str=$2 | |
local i=0 c quote start=0 | |
while [ $i -lt ${#str} ]; do | |
c=${str:$i:1} | |
case "$c" in | |
\\) i=$(( i + 1 )) |
OlderNewer