]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: remove last powl() 913/head
authorQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 4 Aug 2017 14:58:00 +0000 (10:58 -0400)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 4 Aug 2017 14:58:00 +0000 (10:58 -0400)
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
lib/hash.c

index 1621d2a820c215f3e7c236a5aec5ef88bc67deec..801871f8390c1bd96ae515249ffd6a4e5d14d13b 100644 (file)
@@ -404,7 +404,7 @@ DEFUN(show_hash_stats,
                        continue;
 
                ssq = (long double)h->stats.ssq;
-               x2 = powl(h->count, 2.0);
+               x2 = h->count * h->count;
                ldc = (long double)h->count;
                full = h->size - h->stats.empty;
                lf = h->count / (double)h->size;