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
*.o | |
test_* | |
*.log |
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
CXXFLAGS = -std=c++11 | |
LDLIBS = -lzmq | |
TARGETS = hwserver hwclient | |
all: $(TARGETS) | |
clean: | |
$(RM) $(TARGETS) |
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
*.d | |
# Object files | |
*.o | |
*.ko | |
*.obj | |
*.elf | |
# Precompiled Headers | |
*.gch |
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
hoge_* | |
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
CC = $(CXX) | |
CPPFLAGS += -std=c++11 -pthread -O3 -I$(HOME)/include -I../xbyak | |
BOOST_SUFFIX = | |
WORKAROUND_LDLIBS = | |
ifeq ($(shell uname -s),Darwin) | |
BOOST_SUFFIX = -mt | |
endif | |
ifneq (,$(findstring Linux,$(shell uname -s))) | |
# See http://stackoverflow.com/questions/22593658/compiling-multithread-code-with-g-wl-no-as-needed-not-working | |
# and https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/1228201 |
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
Core i7 3630QM (2.4 GHz, 4 physical cores) | |
Mac OS X 10.9.4 | |
Variable CPU clock is enabled. | |
$ git log | head -1 | |
commit 55bbdb71b68bc085e1542d682b618733afbba7f0 | |
$ ./bssl speed | |
Did 2668 RSA 2048 signing operations in 3024997us (882.0 ops/sec) |
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
GCC_VERSION := $(shell $(CXX) -dumpversion) | |
GCC_MAJOR_VERSION = $(shell echo $(GCC_VERSION) | cut -d '.' -f 1) | |
GCC_MINOR_VERSION = $(shell echo $(GCC_VERSION) | cut -d '.' -f 2) | |
CPPFLAGS = -Wall -Wextra -O3 -g3 -fcilkplus | |
LDFLAGS = -g3 -lcilkrts -lgmpxx -lgmp -lstdc++ | |
TARGETs = fib | |
.PHONY: all clean precheck |
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
#!/bin/sh | |
if [ -n "$PYTHONPATH" ]; then | |
echo WARNING: unset PYTHONPATH 1>&2 | |
unset PYTHONPATH | |
fi | |
SAGE_ROOT=/path/to/directory/of/sage | |
$SAGE_ROOT/sage "$@" |
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
package com.github.gist._3802655; | |
public interface EventCall <LISTENER> { | |
public void addListener(LISTENER listener); | |
public void removeListener(LISTENER listener); | |
} |
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
package com.github.tell.gmp; | |
import java.util.logging.ConsoleHandler; | |
import java.util.logging.Handler; | |
import java.util.logging.Level; | |
import java.util.logging.Logger; | |
import com.github.tell.gmp.JNAGMP.GMPLib.mpz_struct; | |
import com.sun.jna.Library; | |
import com.sun.jna.Native; |