About The Contest

The first ever Olympiad of Misguided Geeks contest at Worse Than Failure (or OMGWTF for short) is a new kind of programming contest. Readers are invited to be creative with devising a calculator with the craziest code they can write. One lucky and potentially insane winner will get either a brand new MacBook Pro or comparable Sony VAIO laptop.

Navigation

Advertisements

Entry #100217: mmucalc

by Christian Söderström
mmucalc uses low level linux system memory handling capabilities to perform hardware (MMU) accelerated arithmetic operations.

the most used operation is sbrk(), which increases or returns the current top of the process arena (usually slightly incorrectly referred to as the heap). using sbrk to increase (or decrease) the arena size with the operands makes it possible to trivially perform all basic arithmetic operations.

Download0 Comments