Skip to content

Instantly share code, notes, and snippets.

View Themaister's full-sized avatar

Hans-Kristian Arntzen Themaister

View GitHub Profile
From 21602719475e41c2db2819312a75fccaa4481d15 Mon Sep 17 00:00:00 2001
From: Hans-Kristian Arntzen <[email protected]>
Date: Sun, 2 Sep 2012 21:52:40 +0200
Subject: [PATCH] Remove redundant masks in STORE_BGR24_MMX.
---
libswscale/x86/rgb2rgb_template.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/libswscale/x86/rgb2rgb_template.c b/libswscale/x86/rgb2rgb_template.c
commit 5ab0d3f0abbb4ffbe9613110f8d4b9f4a0a68df5
Author: Hans-Kristian Arntzen <[email protected]>
Date: Sun Sep 2 21:03:40 2012 +0200
Remove redundant mask in STORE_BGR24_MMX.
diff --git a/libswscale/x86/rgb2rgb_template.c b/libswscale/x86/rgb2rgb_template.c
index 7eee075..1856b35 100644
--- a/libswscale/x86/rgb2rgb_template.c
+++ b/libswscale/x86/rgb2rgb_template.c
#!/usr/bin/env python
import math
def conv2d(r, c, data):
length_r = min(len(r), len(data))
length_c = min(len(c), len(data[0]))
conv_sum = 0
for v in range(length_r):
for u in range(length_c):
diff --git a/bsnes/data/cheats.xml b/bsnes/data/cheats.xml
index 0619442..0f1e774 100755
--- a/bsnes/data/cheats.xml
+++ b/bsnes/data/cheats.xml
@@ -571,7 +571,7 @@
</cheat>
</cartridge>
<cartridge sha256="22e92af92aed2d8d7bddb60732963642788b3ea9341592ce2c66a542a3d7ce7d">
- <name>Advanced Dungeons & Dragons - DragonStrike (USA)</name>
+ <name>Advanced Dungeons &amp; Dragons - DragonStrike (USA)</name>
From 4f0c6639f71a850978eeab493952ef6bc2791999 Mon Sep 17 00:00:00 2001
From: Themaister <[email protected]>
Date: Sun, 19 Aug 2012 10:43:35 +0200
Subject: [PATCH] Fix cheat database.
---
bsnes/data/cheats.xml | 134 +++++++++++++++++++++++++-------------------------
1 file changed, 67 insertions(+), 67 deletions(-)
diff --git a/bsnes/data/cheats.xml b/bsnes/data/cheats.xml
00000000 <foo>:
0: ee070a10 vmov s14, r0
4: ee377a07 vadd.f32 s14, s14, s14
8: ee170a10 vmov r0, s14
c: e12fff1e bx lr
struct Bar
{
Bar();
Bar(int);
};
struct Meow
{
Meow(int a, Bar b);
};
struct Foo
{
virtual ~Foo() = default;
};
struct Bar : Foo
{
~Bar();
};
<?xml version="1.0" encoding="UTF-8"?>
<sprite name="dino" start_id="up">
<face id="up" source="dino_up.png"/>
<face id="down" source="dino_down.png"/>
<face id="down" source="dino_down_walk1.png"/>
<face id="down" source="dino_down_walk2.png"/>
<face id="down" source="dino_down_walk3.png"/>
<face id="down" source="dino_down_walk4.png"/>
<face id="left" source="dino_left.png"/>
<face id="right" source="dino_right.png"/>
#include <stdint.h>
class Foo
{
public:
Foo() : data((const uint8_t* const&)m_data)
{
m_data = 0; // Set later in some other member function.
}