gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] 146/164: Added comment to explain |1


From: gnunet
Subject: [gnunet] 146/164: Added comment to explain |1
Date: Fri, 30 Jul 2021 15:33:32 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

commit 6371a6497d415eeb0b9950a73fec3fb9f552195c
Author: Elias Summermatter <elias.summermatter@seccom.ch>
AuthorDate: Thu Jun 10 00:53:27 2021 +0200

    Added comment to explain |1
---
 src/setu/gnunet-service-setu.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/setu/gnunet-service-setu.c b/src/setu/gnunet-service-setu.c
index c527ed7da..add2127af 100644
--- a/src/setu/gnunet-service-setu.c
+++ b/src/setu/gnunet-service-setu.c
@@ -2106,7 +2106,8 @@ static unsigned int
 get_size_from_difference (unsigned int diff, int number_buckets_per_element,
                           float ibf_bucket_number_factor)
 {
-  /** Make ibf estimation size odd **/
+  /** Make ibf estimation size odd reasoning can be found in BSc Thesis of
+   * Elias Summermatter (2021) in section 3.11 **/
   return (((int) (diff * ibf_bucket_number_factor)) | 1);
 
 }
@@ -2119,6 +2120,8 @@ get_next_ibf_size (float ibf_bucket_number_factor, 
unsigned int
   unsigned int next_size = (unsigned int) ((last_ibf_size * 2)
                                            - (ibf_bucket_number_factor
                                               * decoded_elements));
+   /** Make ibf estimation size odd reasoning can be found in BSc Thesis of
+   * Elias Summermatter (2021) in section 3.11 **/
   return next_size | 1;
 }
 
@@ -2679,6 +2682,8 @@ decode_and_send (struct Operation *op)
 
       next_size = get_next_ibf_size (op->ibf_bucket_number_factor, num_decoded,
                                      diff_ibf->size);
+      /** Make ibf estimation size odd reasoning can be found in BSc Thesis of
+        * Elias Summermatter (2021) in section 3.11 **/
       uint32_t ibf_min_size = IBF_MIN_SIZE | 1;
 
       if (next_size<ibf_min_size)

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]