MCPcopy Create free account
hub / github.com/conflow-dev/ConFlow / ecall_ceshi

Function ecall_ceshi

sgx_tf_ops/Enclave/Enclave.cpp:89–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89void ecall_ceshi(float* input,float* output,int M,int C){
90 for (int i = 0; i < M; i++) {
91 int k = static_cast<int>(fabs(input[i*C+C-1] * 100))%10;
92 for (int j = 0; j < C-1; j++) {
93 output[i*(C-1)+j] = input[i*C+j] + sgx_arr[k][j%128];
94 }
95 }
96}
97void ecall_ceshi_grad(float* input,float* output,int M,int C){
98 for (int i = 0; i < M; i++){
99 output[i*C+C-1] = 0.0f;

Callers 1

ceshiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected