diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-07-29 04:00:27 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-07-29 04:00:27 +0200 |
| commit | 7a07b0ee6a99a98ec1f144d5d06043fa0c03f451 (patch) | |
| tree | 0978bd98b9fd690c71f2a8ca06f02e0b65039ce4 /include | |
| parent | 416f0405cb03ecc816b829d5a3d357a556b95fcd (diff) | |
| download | busybox-w32-7a07b0ee6a99a98ec1f144d5d06043fa0c03f451.tar.gz busybox-w32-7a07b0ee6a99a98ec1f144d5d06043fa0c03f451.tar.bz2 busybox-w32-7a07b0ee6a99a98ec1f144d5d06043fa0c03f451.zip | |
dc: make it use long longs for integer ops
function old new delta
print_base 176 238 +62
or 91 103 +12
eor 91 103 +12
and 91 103 +12
not 60 64 +4
mod 103 105 +2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 6/0 up/down: 104/0) Total: 104 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/usage.src.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/include/usage.src.h b/include/usage.src.h index 9b326eebb..0053a7c4b 100644 --- a/include/usage.src.h +++ b/include/usage.src.h | |||
| @@ -736,28 +736,6 @@ INSERT | |||
| 736 | "$ date\n" \ | 736 | "$ date\n" \ |
| 737 | "Wed Apr 12 18:52:41 MDT 2000\n" | 737 | "Wed Apr 12 18:52:41 MDT 2000\n" |
| 738 | 738 | ||
| 739 | #define dc_trivial_usage \ | ||
| 740 | "expression..." | ||
| 741 | #define dc_full_usage "\n\n" \ | ||
| 742 | "Tiny RPN calculator. Operations:\n" \ | ||
| 743 | "+, add, -, sub, *, mul, /, div, %, mod, **, exp, and, or, not, eor,\n" \ | ||
| 744 | "p - print top of the stack (without altering the stack),\n" \ | ||
| 745 | "f - print entire stack, o - pop the value and set output radix\n" \ | ||
| 746 | "(value must be 10 or 16).\n" \ | ||
| 747 | "Examples: 'dc 2 2 add' -> 4, 'dc 8 8 * 2 2 + /' -> 16\n" \ | ||
| 748 | |||
| 749 | #define dc_example_usage \ | ||
| 750 | "$ dc 2 2 + p\n" \ | ||
| 751 | "4\n" \ | ||
| 752 | "$ dc 8 8 \\* 2 2 + / p\n" \ | ||
| 753 | "16\n" \ | ||
| 754 | "$ dc 0 1 and p\n" \ | ||
| 755 | "0\n" \ | ||
| 756 | "$ dc 0 1 or p\n" \ | ||
| 757 | "1\n" \ | ||
| 758 | "$ echo 72 9 div 8 mul p | dc\n" \ | ||
| 759 | "64\n" | ||
| 760 | |||
| 761 | #define dd_trivial_usage \ | 739 | #define dd_trivial_usage \ |
| 762 | "[if=FILE] [of=FILE] " IF_FEATURE_DD_IBS_OBS("[ibs=N] [obs=N] ") "[bs=N] [count=N] [skip=N]\n" \ | 740 | "[if=FILE] [of=FILE] " IF_FEATURE_DD_IBS_OBS("[ibs=N] [obs=N] ") "[bs=N] [count=N] [skip=N]\n" \ |
| 763 | " [seek=N]" IF_FEATURE_DD_IBS_OBS(" [conv=notrunc|noerror|sync|fsync]") | 741 | " [seek=N]" IF_FEATURE_DD_IBS_OBS(" [conv=notrunc|noerror|sync|fsync]") |
