Skip to content

Instantly share code, notes, and snippets.

View Y0un3ss3's full-sized avatar
๐Ÿ‰

PI Y0un3ss3

๐Ÿ‰
View GitHub Profile
@Y0un3ss3
Y0un3ss3 / divide.c
Created November 21, 2017 23:04 — forked from qi7chen/divide.c
divide algorithm use shift and substract
/*
These functions are examples of unsigned and signed integer division.
The algorithms assume 32-bit integers. The algorithms used are
from
Digital Computer Arithmetic, by Joseph J.F. Cavanaugh
McGraw Hill, 1984.