Skip to content

Instantly share code, notes, and snippets.

--- intrin.h Wed Feb 19 11:23:33 2014
+++ intrin.h_patched Mon Mar 31 23:03:19 2014
@@ -647,8 +647,10 @@
__MACHINEX86X_NOX64(__m64 _m_pavgw(__m64,__m64))
__MACHINEX86X_NOX64(__m64 _m_psadbw(__m64,__m64))
#endif
+#if !defined(__GNUC__) || (!defined(__3dNOW__) && !defined(__MINGW_FORCE_SYS_INTRINS))
__MACHINEX86X_NOWIN64(__m64 _m_from_float(float))
__MACHINEX86X_NOWIN64(float _m_to_float(__m64))
+#endif
/*
* The following code produces a segfault when run on linux, but works on windows.
*
* Segfault at:
* Src/OVR_DeviceImpl.h:384
* factory->AddedToManager(this);
*
*/
#include <OVR.h>
@slowriot
slowriot / gist:7663640
Last active December 29, 2015 11:29
Make your linux prompt look like a C64 console - higher contrast version with cyan text instead of blue
# cyan text:
echo -en "\e[44m\e[01;36m";PS1="\[\033[01;36m\]\[\033[44m\]READY.\n";alias ls="ls --color=none";clear;echo " **** COMMODORE 64 BASIC V2 ****";echo " $(free -k|head -2|tail -1|tr -s " "|cut -d" " -f2)K RAM SYSTEM $(free -b|head -2|tail -1|tr -s " "| cut -d" " -f4) BASIC BYTES FREE"
@slowriot
slowriot / gist:7663385
Last active August 24, 2016 18:55
Make your linux prompt look like a C64 console.
# blue text:
echo -en "\e[44m\e[01;34m";PS1="\[\033[01;34m\]\[\033[44m\]READY.\n";alias ls="ls --color=none";clear;echo " **** COMMODORE 64 BASIC V2 ****";echo " $(free -k|head -2|tail -1|tr -s " "|cut -d" " -f2)K RAM SYSTEM $(free -b|head -2|tail -1|tr -s " "| cut -d" " -f4) BASIC BYTES FREE"