diff options
Diffstat (limited to 'gdb/utils.c')
-rw-r--r-- | gdb/utils.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/gdb/utils.c b/gdb/utils.c index 8928295..4c7d665 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -723,36 +723,6 @@ myread (int desc, char *addr, int len) return orglen; } -/* See utils.h. */ - -ULONGEST -uinteger_pow (ULONGEST v1, LONGEST v2) -{ - if (v2 < 0) - { - if (v1 == 0) - error (_("Attempt to raise 0 to negative power.")); - else - return 0; - } - else - { - /* The Russian Peasant's Algorithm. */ - ULONGEST v; - - v = 1; - for (;;) - { - if (v2 & 1L) - v *= v1; - v2 >>= 1; - if (v2 == 0) - return v; - v1 *= v1; - } - } -} - /* An RAII class that sets up to handle input and then tears down |