Skip to content

Instantly share code, notes, and snippets.

View DennisOSRM's full-sized avatar

Dennis Luxen DennisOSRM

View GitHub Profile
@DennisOSRM
DennisOSRM / build_clang.sh
Created February 17, 2015 13:47
download and build latest llvm/clang from sources
#!/bin/bash
mkdir -p ~/Coding
cd ~/Coding
svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
cd llvm/tools
svn co http://llvm.org/svn/llvm-project/cfe/trunk clang
cd ../..
@DennisOSRM
DennisOSRM / for_each.h
Created January 6, 2019 18:43
macOS parallel for each
#pragma once
#include <iterator>
#include <utility>
#include "dispatch/dispatch.h"
template<typename It, typename F>
void parallel_for_each(It a, It b, F&& f)
{
size_t count=std::distance(a,b);