Skip to content

Instantly share code, notes, and snippets.

View burmecia's full-sized avatar
💭
thinking

Bo Lu burmecia

💭
thinking
View GitHub Profile

Keybase proof

I hereby claim:

  • I am burmecia on github.
  • I am bolu (https://keybase.io/bolu) on keybase.
  • I have a public key ASDj20-SEB6TJOMGyRaymO5hJly5wrdQxx2gTneix0QlDwo

To claim this, I am signing this object:

@burmecia
burmecia / check_library.m4
Created May 20, 2016 03:52
sample m4 macro to check library
# libsnappy_tests.m4
# gl_LIBSNAPPY_TESTS()
# -------------------
# Check if libsnappy is available.
AC_DEFUN([gl_LIBSNAPPY_TESTS],
[
LIBSNAPPY_LIBS=
LIBSNAPPY_LDFLAGS=
LDFLAGS_SAVE="$LDFLAGS"
@burmecia
burmecia / get_cpu_features.c
Last active May 18, 2016 14:27
get CPU features in C
// CPU features set
typedef struct cpu_features_t
{
// Misc.
bool HW_MMX;
bool HW_x64;
bool HW_ABM; // Advanced Bit Manipulation
bool HW_RDRAND;
bool HW_BMI1;
bool HW_BMI2;