Procházet zdrojové kódy

Incorporating changes from Ian's review

Sajin Sasy před 1 rokem
rodič
revize
115874a771
3 změnil soubory, kde provedl 20 přidání a 0 odebrání
  1. 9 0
      node.cpp
  2. 10 0
      node.hpp
  3. 1 0
      online.cpp

+ 9 - 0
bst.cpp → node.cpp

@@ -226,7 +226,11 @@ std::tuple<RegXS, RegBS> insert(MPCTIO &tio, yield_t &yield, RegXS ptr, Node new
 
 
 // Insert(root, ptr, key, TTL, isDummy) -> (new_ptr, wptr, wnode, f_p)
+<<<<<<< HEAD:bst.cpp
 void insert(MPCTIO &tio, yield_t &yield, RegXS &root, Node node, Duoram<Node>::Flat A, size_t &num_items) {
+=======
+void insert(MPCTIO &tio, yield_t &yield, RegXS &root, Node &node, Duoram<Node>::Flat A, size_t num_items) {
+>>>>>>> Incorporating changes from Ian's review:node.cpp
   if(num_items==0) {
     Node zero;
     A[0] = zero;
@@ -269,10 +273,15 @@ void newnode(Node &a) {
   a.pointers.set(0);
   a.value.randomize();
 }
+<<<<<<< HEAD:bst.cpp
 
 // Now we use the node in various ways.  This function is called by
 // online.cpp.
+=======
+>>>>>>> Incorporating changes from Ian's review:node.cpp
 
+// Now we use the node in various ways.  This function is called by
+// online.cpp.
 void bst(MPCIO &mpcio,
     const PRACOptions &opts, char **args)
 {

+ 10 - 0
node.hpp

@@ -0,0 +1,10 @@
+#ifndef __NODE_HPP__
+#define __NODE_HPP__
+
+#include "mpcio.hpp"
+#include "options.hpp"
+
+void bst(MPCIO &mpcio,
+    const PRACOptions &opts, char **args);
+
+#endif

+ 1 - 0
online.cpp

@@ -7,6 +7,7 @@
 #include "cdpf.hpp"
 #include "cell.hpp"
 #include "shapes.hpp"
+#include "bst.hpp"
 
 static void online_test(MPCIO &mpcio,
     const PRACOptions &opts, char **args)