Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

Commit 17eb225

Browse files
authored
Merge pull request #13 from virtualsecureplatform/export-funcs
Export g* functions and CtxtCopy?2?
2 parents f56f266 + 7db36e6 commit 17eb225

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

cufhe/include/cufhe_gpu.cuh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,5 +130,22 @@ void ConstantZero(Ctxt& out);
130130
void ConstantOne(Ctxt& out);
131131

132132
bool StreamQuery(Stream st);
133+
void CtxtCopyH2D(const Ctxt& c, Stream st);
134+
void CtxtCopyD2H(const Ctxt& c, Stream st);
135+
136+
void gNand(Ctxt& out, const Ctxt& in0, const Ctxt& in1, Stream st);
137+
void gOr(Ctxt& out, const Ctxt& in0, const Ctxt& in1, Stream st);
138+
void gOrYN(Ctxt& out, const Ctxt& in0, const Ctxt& in1, Stream st);
139+
void gOrNY(Ctxt& out, const Ctxt& in0, const Ctxt& in1, Stream st);
140+
void gAnd(Ctxt& out, const Ctxt& in0, const Ctxt& in1, Stream st);
141+
void gAndYN(Ctxt& out, const Ctxt& in0, const Ctxt& in1, Stream st);
142+
void gAndNY(Ctxt& out, const Ctxt& in0, const Ctxt& in1, Stream st);
143+
void gNor(Ctxt& out, const Ctxt& in0, const Ctxt& in1, Stream st);
144+
void gXor(Ctxt& out, const Ctxt& in0, const Ctxt& in1, Stream st);
145+
void gXnor(Ctxt& out, const Ctxt& in0, const Ctxt& in1, Stream st);
146+
void gNot(Ctxt& out, const Ctxt& in, Stream st);
147+
void gMux(Ctxt& out, const Ctxt& inc, const Ctxt& in1, const Ctxt& in0,
148+
Stream st);
149+
void gCopy(Ctxt& out, const Ctxt& in, Stream st);
133150

134151
} // namespace cufhe

0 commit comments

Comments
 (0)