]> granicus.if.org Git - yasm/commit
* intnum.h (yasm_get_sleb128, yasm_size_sleb128): New functions to handle
authorPeter Johnson <peter@tortall.net>
Thu, 9 Feb 2006 05:00:09 +0000 (05:00 -0000)
committerPeter Johnson <peter@tortall.net>
Thu, 9 Feb 2006 05:00:09 +0000 (05:00 -0000)
commit91ac655c47a775f51bd153d0842147bbd3fcdfc1
tree0cadecb2e772e3a7e6c209222ca4bb81105f7de1
parentd69bb359ba9bed0d6856a5a49bbc2e9e4f5c1598
* intnum.h (yasm_get_sleb128, yasm_size_sleb128): New functions to handle
signed LEB128-encoded numbers straight from long values (rather than going
through intnum).
(yasm_get_uleb128, yasm_size_uleb128): Likewise, for unsigned LEB128.
* intnum.c (get_leb128, size_leb128): Move most of functionality here from:
(yasm_intnum_get_leb128, yasm_intnum_size_leb128): Here (refactor).
(yasm_get_sleb128, yasm_size_sleb128, yasm_get_uleb128, yasm_size_uleb128):
Implement using refactored functionality.

svn path=/trunk/yasm/; revision=1366
libyasm/intnum.c
libyasm/intnum.h