Skip to content

Instantly share code, notes, and snippets.

//This file implements the non restoring algorithm for division in binary
#include <stdio.h>
void binout_helper(int in, int left) {
if (left == 0) return;
binout_helper(in >> 1, left - 1);
printf("%d",in & 1);
}