Skip to content

Commit

Permalink
Merge pull request #13 from virtualsecureplatform/export-funcs
Browse files Browse the repository at this point in the history
Export g* functions and CtxtCopy?2?
  • Loading branch information
naoki9911 authored Mar 21, 2021
2 parents f56f266 + 7db36e6 commit 17eb225
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions cufhe/include/cufhe_gpu.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,22 @@ void ConstantZero(Ctxt& out);
void ConstantOne(Ctxt& out);

bool StreamQuery(Stream st);
void CtxtCopyH2D(const Ctxt& c, Stream st);
void CtxtCopyD2H(const Ctxt& c, Stream st);

void gNand(Ctxt& out, const Ctxt& in0, const Ctxt& in1, Stream st);
void gOr(Ctxt& out, const Ctxt& in0, const Ctxt& in1, Stream st);
void gOrYN(Ctxt& out, const Ctxt& in0, const Ctxt& in1, Stream st);
void gOrNY(Ctxt& out, const Ctxt& in0, const Ctxt& in1, Stream st);
void gAnd(Ctxt& out, const Ctxt& in0, const Ctxt& in1, Stream st);
void gAndYN(Ctxt& out, const Ctxt& in0, const Ctxt& in1, Stream st);
void gAndNY(Ctxt& out, const Ctxt& in0, const Ctxt& in1, Stream st);
void gNor(Ctxt& out, const Ctxt& in0, const Ctxt& in1, Stream st);
void gXor(Ctxt& out, const Ctxt& in0, const Ctxt& in1, Stream st);
void gXnor(Ctxt& out, const Ctxt& in0, const Ctxt& in1, Stream st);
void gNot(Ctxt& out, const Ctxt& in, Stream st);
void gMux(Ctxt& out, const Ctxt& inc, const Ctxt& in1, const Ctxt& in0,
Stream st);
void gCopy(Ctxt& out, const Ctxt& in, Stream st);

} // namespace cufhe

0 comments on commit 17eb225

Please sign in to comment.