varint - varint: Initial commit of an arbitrary precision unsigned

Started by Nonamealmost 18 years ago1 messagescomitters
Jump to latest
#1Noname
jeremyd@pgfoundry.org

Log Message:
-----------
Initial commit of an arbitrary precision unsigned integer data type with
bitwise operators.

The following operators are implemented so far (not optimally, but I'm not
worried about that yet):
& (bitwise and)
| (bitwise or)
^ (bitwise xor)
<< (bitwise left shift)

(bitwise right shift)

+ (arithmetic add)
- (arithmetic subtract)
* (arithmetic multiply)

I plan to implement comparison operators and division next.

Added Files:
-----------
varint:
Makefile (r1.1)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/varint/varint/Makefile?rev=1.1&amp;content-type=text/x-cvsweb-markup)
varint.c (r1.1)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/varint/varint/varint.c?rev=1.1&amp;content-type=text/x-cvsweb-markup)
varint.h (r1.1)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/varint/varint/varint.h?rev=1.1&amp;content-type=text/x-cvsweb-markup)
varint.sql.in (r1.1)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/varint/varint/varint.sql.in?rev=1.1&amp;content-type=text/x-cvsweb-markup)