Skip to content

Instantly share code, notes, and snippets.

View Bigpet's full-sized avatar

Peter Tissen Bigpet

View GitHub Profile
//previous non-STL version:
u32 vfsDevice::CmpLocalPath(const wxString& local_path)
{
wxFileName path0(m_local_path);
path0.Normalize();
const wxString full_local_path = path0.GetFullPath();
if (local_path.Len() < full_local_path.Len())
return 0;
@Bigpet
Bigpet / ps3_loop_tlou
Created March 2, 2014 17:44
a small loop that I encountered that rpcs3 can't seem to escape
jmp_loc0:
5058297d subf r9,r9,r11 ; start here
0c00a938 addi r5,r9,12
0028887f cmpw cr7,r8,r5
5040e57c subf r7,r5,r8
3f00072f cmpwi cr6,r7,63
ec019c41 blt cr7,jmp_loc20 ; jump taken everytime
....
....
@Bigpet
Bigpet / deploy.yml
Created March 10, 2014 10:04
simple ansible yml
---
- hosts: testservers
user: bradmin
sudo: yes
tasks:
- name: ensure apache is runing
service: name=https state=running
adde ([00],[00]) -> 0000000000000001 | adde ([00],[00]) -> 0000000000000000
adde ([00],[01]) -> 0000000000000002 | adde ([00],[01]) -> 0000000000000001
adde ([00],[02]) -> 0000000000000003 | adde ([00],[02]) -> 0000000000000002
adde ([00],[03]) -> 0000000000000004 | adde ([00],[03]) -> 0000000000000003
adde ([00],[04]) -> 0000000000000005 | adde ([00],[04]) -> 0000000000000004
adde ([00],[05]) -> 0000000000000000 | adde ([00],[05]) -> ffffffffffffffff
adde ([00],[06]) -> ffffffffffffffff | adde ([00],[06]) -> fffffffffffffffe
adde ([00],[07]) -> fffffffffffffffe | adde ([00],[07]) -> fffffffffffffffd
adde ([00],[08]) -> fffffffffffffffd | adde ([00],[08]) -> fffffffffffffffc
adde ([00],[09]) -> 0003333300330034 | adde ([00],[09]) -> 0003333300330033
adde ([00],[00]) -> 0000000000000001 | adde ([00],[00]) -> 0000000000000000
adde ([00],[01]) -> 0000000000000002 | adde ([00],[01]) -> 0000000000000001
adde ([00],[02]) -> 0000000000000003 | adde ([00],[02]) -> 0000000000000002
adde ([00],[03]) -> 0000000000000004 | adde ([00],[03]) -> 0000000000000003
adde ([00],[04]) -> 0000000000000005 | adde ([00],[04]) -> 0000000000000004
adde ([00],[05]) -> 0000000000000000 | adde ([00],[05]) -> ffffffffffffffff
adde ([00],[06]) -> ffffffffffffffff | adde ([00],[06]) -> fffffffffffffffe
adde ([00],[07]) -> fffffffffffffffe | adde ([00],[07]) -> fffffffffffffffd
adde ([00],[08]) -> fffffffffffffffd | adde ([00],[08]) -> fffffffffffffffc
adde ([00],[09]) -> 0003333300330034 | adde ([00],[09]) -> 0003333300330033
@Bigpet
Bigpet / cflags
Created April 10, 2014 21:07
compiler flags
/usr/bin/clang++
-DGLX_GLXEXT_PROTOTYPES
-DGL_GLEXT_PROTOTYPES
-DWXUSINGDLL
-D_FILE_OFFSET_BITS=64
-D__WXGTK__
-g
-std=c++11
-fsanitize=address
-pthread
test2.cpp:9:10: error: no matching function for call to 'all_of'
cout << all_of(foo.begin(), foo.end(), isdigit);
^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/stl_algo.h:729:5: note:
candidate template ignored: couldn't infer template argument '_Predicate'
all_of(_InputIterator __first, _InputIterator __last, _Predicate __pred)
^
1 error generated.
1> main.cpp
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xmemory0(572): error C2280: 'std::unique_ptr<vfsStream,std::default_delete<_Ty>>::unique_ptr(const std::unique_ptr<_Ty,std::default_delete<_Ty>> &)' : attempting to reference a deleted function
1> with
1> [
1> _Ty=vfsStream
1> ]
1> c:\program files (x86)\microsoft visual studio 12.0\vc\include\memory(1486) : see declaration of 'std::unique_ptr<vfsStream,std::default_delete<_Ty>>::unique_ptr'
1> with
1> [
1> _Ty=vfsStream
In file included from /home/bigpet/DEV/rpcs3/rpcs3/Emu/Cell/SPUThread.cpp:6:0:
/home/bigpet/DEV/rpcs3/rpcs3/Emu/Cell/SPURecompiler.h: In constructor ‘g_imm_table_struct::g_imm_table_struct()’:
/home/bigpet/DEV/rpcs3/rpcs3/Emu/Cell/SPURecompiler.h:44:45: error: request for member ‘m128i_u32’ in ‘((g_imm_table_struct*)this)->g_imm_table_struct::fsm_table[i]’, which is of non-class type ‘__m128i {aka __vector(2) long long int}’
for (u32 j = 0; j < 4; j++) fsm_table[i].m128i_u32[j] = (i & (1 << j)) ? ~0 : 0;
^
/home/bigpet/DEV/rpcs3/rpcs3/Emu/Cell/SPURecompiler.h:48:46: error: request for member ‘m128i_u16’ in ‘((g_imm_table_struct*)this)->g_imm_table_struct::fsmh_table[i]’, which is of non-class type ‘__m128i {aka __vector(2) long long int}’
for (u32 j = 0; j < 8; j++) fsmh_table[i].m128i_u16[j] = (i & (1 << j)) ? ~0 : 0;
^
/home/bigpet/DEV/rpcs3/rpcs3/Emu/Cell/SPURecompiler.h:52:47: error: request for member ‘m128
1 2 5 6 18 19
3 4 7 8 20 21
9 10 13 14
11 12 15 16