FREDERICK DOUGLASS, M. R. DELANY, Editors
RIGHT IS OF NO SEX - TRUTH IS OF NO COLOR - GOD IS THE FATHER OF US ALL, AND ALL WE ARE BRETHEREN
WILLIAM C. NEIL, Publisher JOHN DICK, Printer
Registers | |
Caller-saved Callee-saved | |
RAX RCX RSP RDI RSI RDX R8 R9 R10 R11 RBP RBX R12 R13 R14 R15 | |
Args: RDI, RSI, RDX, RCX, R8, R9, XMM0–7 | |
Return: RAX | |
Simple Compile | |
yasm -f macho64 foo.asm && gcc foo.c foo.o -Wall -Wextra -g -O1 |
(module | |
(func $vec_getx (param $a i64) (result f32) | |
(i64.and (get_local $a) (i64.const 0xffffffff)) | |
i32.wrap/i64 | |
f32.reinterpret/i32 | |
) | |
(func $vec_gety (param $a i64) (result f32) | |
(i64.shr_u (get_local $a) (i64.const 32)) | |
i32.wrap/i64 |
getdeps_rpm() { | |
for dep in $(readelf -d ./* | grep NEEDED | awk '{print $5}' | cut -c 2- | rev | cut -c 2- | rev | sort | uniq); do | |
rpm -qf "/usr/lib64/${dep}" 2>/dev/null || rpm -qf "/lib64/${dep}" 2>/dev/null || rpm -qf "/usr/lib/${dep}" 2>/dev/null || rpm -qf "/lib/${dep}" | |
done | sort | uniq | rev | cut -d - -f 1-2 --complement | rev | |
} | |
getdeps_deb() { | |
for f in $(readelf -d ./* | grep NEEDED | awk '{print $5}' | cut -c 2- | rev | cut -c 2- | rev | sort | uniq); do | |
apt-file search "$f" | |
done | cut -d ':' -f 1 | sort | uniq |
I hereby claim:
To claim this, I am signing this object:
x = 0 | |
for _ in range(100000): | |
f = lambda: x += 1 | |
f() |
'use strict'; | |
let x = 0; | |
for(let i = 0; i < 10000000; i += 1) { | |
(function() { | |
x += 1; | |
})(); | |
} |
struct Element { | |
vals: &[float]; | |
} | |
impl Element { | |
fn test() { | |
// Prints a random value close to, but not exactly equal to, 0. | |
// e.g. 9.52676e-317, 1.43533e-316 | |
// Optimization flags make it exactly 0. | |
log(info, self.vals[0]); |
#!/bin/bash | |
set -e | |
emailAddress=<USERNAME>@mongodb.com | |
# get the commit message | |
msg=`git log -1 --oneline | cut -d' ' -f2-` | |
hash=`git rev-parse HEAD` | |
hash=`git rev-parse HEAD~`..${hash} |
/* | |
* Copyright (C) 2011 Hans Petter Selasky. All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions | |
* are met: | |
* * Redistributions of source code must retain the above copyright | |
* notice, this list of conditions and the following disclaimer. | |
* * Redistributions in binary form must reproduce the above copyright | |
* notice, this list of conditions and the following disclaimer in |