Skip to content

Instantly share code, notes, and snippets.

View endSly's full-sized avatar

Endika Gutiérrez endSly

View GitHub Profile
@endSly
endSly / int_test.cr
Last active November 19, 2016 23:02
require "benchmark"
lib IntIntrinsics
{% for oper in %i(sadd ssub smul) %}
{% for name, type in {i16: Int16, i32: Int32, i64: Int64} %}
fun {{oper.id}}_with_overflow_{{name}} = "llvm.{{oper.id}}.with.overflow.{{name}}"(a : {{type}}, b : {{type}}) : { {{type}}, Bool }
{% end %}
{% end %}
{% for oper in %i(uadd usub umul) %}
{% for name, type in {i16: UInt16, i32: UInt32, i64: UInt64} %}
@endSly
endSly / brew-java-and-jenv.md
Created November 8, 2016 12:46 — forked from tomysmile/brew-java-and-jenv.md
How To Install Java 8 on Mac

Install HomeBrew first

brew update
brew tap caskroom/cask
brew install brew-cask

If you get the error "already installed", follow the instructions to unlink it, then install again: