Skip to content

Instantly share code, notes, and snippets.

View janisozaur's full-sized avatar

Michał Janiszewski janisozaur

  • Poland
  • 07:10 (UTC +02:00)
View GitHub Profile
0x9e32f8: -1 -1 -1 -1 8 27 -1 38
0x9e3300: 39 40 -1 -1 -1 11 49 -1
0x9e3308: -1 -1 14 41 -1 28 -1 -1
0x9e3310: -1 30 -1 -1 -1 -1 4 -1
0x9e3318: 32 -1 47 -1 -1 9 -1 43
0x9e3320: -1 20 -1 42 -1 50 -1 1
0x9e3328: 2 16 19 25 26 48 -1 -1
0x9e3330: 5 18 29 -1 -1 0 23 44
0x9e3338: 51 -1 10 -1 -1 7 -1 12
0x9e3340: -1 21 -1 -1 -1 -1 45 -1
@janisozaur
janisozaur / OpenRCT2_072.png
Last active November 17, 2015 16:14
xbrz test
OpenRCT2_072.png
CMakeFiles/openrct2.dir/src/audio/audio.c.o: file format elf32-i386
Disassembly of section .text.RCT2_CALLFUNC_X:
00000000 <RCT2_CALLFUNC_X>:
*A = Adjust flag
*P = Parity flag
*All other bits are undefined.
@janisozaur
janisozaur / ceil_test.c
Created October 21, 2015 21:12
movzwl/ceil bug
// gcc 5.2, glibc 2.22-3
// gcc test.c -o test -m32 -O3 -masm=intel
#include <math.h>
int main()
{
volatile double x = 3.5;
volatile double d = ceil(x);
}
.file "options.c"
.section .text.unlikely,"ax",@progbits
.LCOLDB0:
.text
.LHOTB0:
.p2align 4,,15
.type window_options_scrollgetsize, @function
window_options_scrollgetsize:
.LFB577:
.cfi_startproc
.file "options.c"
.intel_syntax noprefix
.section .text.unlikely,"ax",@progbits
.LCOLDB0:
.text
.LHOTB0:
.p2align 4,,15
.type window_options_scrollgetsize, @function
window_options_scrollgetsize:
.LFB577:
# Created by compiling `viewport.c` with `-ffunction-sections` and then `objdump --section=.text.RCT2_CALLPROC_X -S viewport.c.o`
CMakeFiles/openrct2.dir/src/interface/viewport.c.o: file format elf32-i386
Disassembly of section .text.RCT2_CALLPROC_X:
00000000 <RCT2_CALLPROC_X>:
*A = Adjust flag
# Created by compiling `viewport.c` with `-ffunction-sections` and then `objdump --section=.text.RCT2_CALLPROC_X -S viewport.c.o`
CMakeFiles/openrct2.dir/src/interface/viewport.c.o: file format elf32-i386
Disassembly of section .text.RCT2_CALLPROC_X:
00000000 <RCT2_CALLPROC_X>:
*A = Adjust flag
@janisozaur
janisozaur / iwyu-wrapper
Last active December 29, 2015 20:59
iwyu-wrapper
#!/bin/bash
/usr/local/bin/clang++ "$@" || exit $?
args="$*"
if [ "${args#* -c}" != "$args" ]; then
out="${args#* -o}"
out="${out%.o *}"
if [ "x$out" != "x" ]; then
include-what-you-use "$@" > $out.iwyu.txt 2>&1
fi
fi
@janisozaur
janisozaur / .gitconfig
Created August 27, 2013 09:17
gitconfig
[color]
ui = auto
[alias]
lol = log --graph --decorate --pretty=oneline --abbrev-commit \
--pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) \
%C(bold blue)<%an>%Creset'
loll = log --graph --decorate --pretty=oneline --abbrev-commit \
--pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) \
%C(bold blue)<%an>%Creset' --numstat
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all \