Skip to content

Instantly share code, notes, and snippets.

View saka1's full-sized avatar
💭
Too busy 😩

saka1

💭
Too busy 😩
View GitHub Profile
@saka1
saka1 / count_utf8_codepoint.cpp
Last active April 7, 2019 05:09
count UTF-8 codepoint
#include <immintrin.h>
#include <iostream>
#include <algorithm>
#include <functional>
#include <cstdlib>
#include <sys/time.h>
#include <stdbool.h>
#include <string.h>
@saka1
saka1 / clang-loop.ll
Last active August 29, 2015 14:07
コンパイラは、while文とdo-while文に対してどうコード生成するか実験した結果
; ModuleID = 'loop.c'
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @loop_while() nounwind uwtable {
entry:
%i = alloca i32, align 4
store i32 0, i32* %i, align 4
br label %while.cond
@saka1
saka1 / setup.yaml
Last active August 29, 2015 14:04
ansibleでsbtを入れる所まで
---
- hosts: all
user: vagrant
sudo: True
tasks:
- name: install python-selinux
yum: pkg=libselinux-python state=latest
- name: install openjdk-1.7