aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/util.cpp')
-rw-r--r--src/utils/util.cpp26
1 files changed, 14 insertions, 12 deletions
diff --git a/src/utils/util.cpp b/src/utils/util.cpp
index f8b98fcb8..e6e281bd1 100644
--- a/src/utils/util.cpp
+++ b/src/utils/util.cpp
@@ -1,7 +1,9 @@
-/*************************************************
-* Utility Functions Source File *
-* (C) 1999-2007 Jack Lloyd *
-*************************************************/
+/*
+* Utility Functions
+* (C) 1999-2007 Jack Lloyd
+*
+* Distributed under the terms of the Botan license
+*/
#include <botan/util.h>
#include <botan/bit_ops.h>
@@ -10,9 +12,9 @@
namespace Botan {
-/*************************************************
-* Round up n to multiple of align_to *
-*************************************************/
+/*
+* Round up n to multiple of align_to
+*/
u32bit round_up(u32bit n, u32bit align_to)
{
if(n % align_to || n == 0)
@@ -20,17 +22,17 @@ u32bit round_up(u32bit n, u32bit align_to)
return n;
}
-/*************************************************
-* Round down n to multiple of align_to *
-*************************************************/
+/*
+* Round down n to multiple of align_to
+*/
u32bit round_down(u32bit n, u32bit align_to)
{
return (n - (n % align_to));
}
-/*************************************************
+/*
* Choose the exponent size for a DL group
-*************************************************/
+*/
u32bit dl_work_factor(u32bit bits)
{
#if 0