Skip to content

Instantly share code, notes, and snippets.

View janisozaur's full-sized avatar

Michał Janiszewski janisozaur

  • Poland
  • 02:36 (UTC +02:00)
View GitHub Profile
.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:
.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
@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);
}
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 / OpenRCT2_072.png
Last active November 17, 2015 16:14
xbrz test
OpenRCT2_072.png
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 / keybase.md
Created August 1, 2016 08:35
keybase.md

Keybase proof

I hereby claim:

  • I am janisozaur on github.
  • I am janisozaur (https://keybase.io/janisozaur) on keybase.
  • I have a public key whose fingerprint is BBAF D71B E500 87DA 116B D192 3D7A 8908 10FD 344E

To claim this, I am signing this object:

@janisozaur
janisozaur / clang.log
Last active September 10, 2016 18:30
OpenRCT2 compiler warnings
In file included from /home/janisozaur/workspace/OpenRCT2/src/audio/audio.c:18:
In file included from /home/janisozaur/workspace/OpenRCT2/src/audio/../interface/viewport.h:23:
In file included from /home/janisozaur/workspace/OpenRCT2/src/audio/../interface/window.h:24:
/home/janisozaur/workspace/OpenRCT2/src/audio/../interface/../ride/ride.h:1128:1: error: 'const' type qualifier on return type has no effect [-Werror,-Wignored-qualifiers]
const uint32 ride_customers_per_hour(const rct_ride *ride);
^~~~~~
/home/janisozaur/workspace/OpenRCT2/src/audio/../interface/../ride/ride.h:1129:1: error: 'const' type qualifier on return type has no effect [-Werror,-Wignored-qualifiers]
const uint32 ride_customers_in_last_5_minutes(const rct_ride *ride);
^~~~~~
/home/janisozaur/workspace/OpenRCT2/src/audio/audio.c:332:20: error: comparison of integers of different signs: 'int' and 'unsigned int' [-Werror,-Wsign-compare]
#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers
/*****************************************************************************
* OpenRCT2, an open source clone of Roller Coaster Tycoon 2.
*
* OpenRCT2 is the work of many authors, a full list can be found in contributors.md
* For more information, visit https://github.com/OpenRCT2/OpenRCT2
*
* OpenRCT2 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or