aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/bit_ops.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-08-01 14:48:45 +0000
committerlloyd <[email protected]>2012-08-01 14:48:45 +0000
commit3e4ecea6915f4ceb3c0426cf6d179fcc078dd8df (patch)
tree7ffda5d9c17247b83b8f1f1761cfd4aace1e9e3c /src/utils/bit_ops.h
parent10e7da367713352975c684d18d1377559c71ea24 (diff)
Remove BigInt(NumberType type, size_t n) and replace it with a static
BigInt function power_of_2. (Power2 was the only available NumberType)
Diffstat (limited to 'src/utils/bit_ops.h')
-rw-r--r--src/utils/bit_ops.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/bit_ops.h b/src/utils/bit_ops.h
index af7f07a05..0072fde71 100644
--- a/src/utils/bit_ops.h
+++ b/src/utils/bit_ops.h
@@ -18,7 +18,7 @@ namespace Botan {
* @return true iff arg is 2^n for some n > 0
*/
template<typename T>
-inline bool power_of_2(T arg)
+inline bool is_power_of_2(T arg)
{
return ((arg != 0 && arg != 1) && ((arg & (arg-1)) == 0));
}