Skip to content

Instantly share code, notes, and snippets.

View mmozeiko's full-sized avatar

Mārtiņš Možeiko mmozeiko

View GitHub Profile
@rygorous
rygorous / fp16_to_32.asm
Created March 21, 2012 04:37
half->float using SSE2
; input: 4x F16 in XMM0 (low words of each DWord)
; original idea+implementation by Dean Macri
; WARNING: copy & pasted together from other code, this ver is untested!!
; though the original version was definitely correct.
bits 32
section .data
@banthar
banthar / stack_trace.c
Created November 7, 2011 01:41
stacktrace with libunwind and elfutils
// stack_trace.c
//
// gcc stack_trace.c -ldw -lunwind -g -o stack_trace
#define UNW_LOCAL_ONLY
#include <elfutils/libdwfl.h>
#include <libunwind.h>
#include <stdio.h>