Skip to content

Instantly share code, notes, and snippets.

From 38e779344d296f9f3e72c229f7847415e438b2e0 Mon Sep 17 00:00:00 2001
From: Ola Jeppsson <ola.jeppsson@gmail.com>
Date: Fri, 15 Feb 2013 00:49:41 +0100
Subject: [PATCH] shared_ptr example
---
plugin/youcompleteme.vim | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugin/youcompleteme.vim b/plugin/youcompleteme.vim
rainSolver = solve 0 . zipWithRightMax
zipWithRightMax xs = zip xs maxVals
where
rev = reverse xs
(maxVals, _) = foldl maxFold ([], head rev) rev
maxFold (acc, maxVal) x = (maxVal:acc,maxFromHere)
where
maxFromHere = max maxVal x
@olajep
olajep / epiphany-gcc-pr-fix-fp-r11-r15-regression
Last active August 29, 2015 14:08
epiphany-gcc-pr-fix-fp-r11-r15-regression
Ignore me (fix Github's gist name)
@olajep
olajep / clang-divsf3-e-gcc-Os
Last active August 29, 2015 14:22
clang-divsf3-e-gcc-Os
divsf3.o: file format elf32-epiphany
Disassembly of section .text:
00000000 <___divsf3>:
#include "fp_lib.h"
ARM_EABI_FNALIAS(fdiv, divsf3)
@olajep
olajep / code-size.html
Created June 16, 2015 17:46
WIP: Code size regression report
<html>
<head>
<title>PAL code size report for x86_64</title>
<style>
.increase {
background-color: red;
}
.decrease {
background-color: green;
}
@olajep
olajep / pal-benchmark.txt
Last active August 29, 2015 14:27
pal cflags benchmark 20150812
PAL Benchmark
=============
Comparison between different CFLAGS
Date: 2015-08-12
Commit: d88cd210f7774ba4472a494b8bd919657db8d36c