fix(runtime): formatting.

This commit is contained in:
Antoniu Pop
2022-01-04 09:53:14 +00:00
committed by Quentin Bourgerie
parent 93835e0106
commit 8f71c331d4
2 changed files with 12 additions and 8 deletions

View File

@@ -22,17 +22,19 @@ typedef struct RuntimeContext {
~RuntimeContext() {
int err;
for (const auto &key : bsk) {
if (key.first != "_concretelang_base_context_bsk")
free_lwe_bootstrap_key_u64(&err, key.second);
if (key.first != "_concretelang_base_context_bsk")
free_lwe_bootstrap_key_u64(&err, key.second);
}
}
} RuntimeContext;
}
}
} // namespace concretelang
} // namespace mlir
extern "C" {
LweKeyswitchKey_u64 *get_keyswitch_key(mlir::concretelang::RuntimeContext *context);
LweKeyswitchKey_u64 *
get_keyswitch_key(mlir::concretelang::RuntimeContext *context);
LweBootstrapKey_u64 *get_bootstrap_key(mlir::concretelang::RuntimeContext *context);
LweBootstrapKey_u64 *
get_bootstrap_key(mlir::concretelang::RuntimeContext *context);
}
#endif

View File

@@ -11,11 +11,13 @@
#include <hpx/include/runtime.hpp>
#endif
LweKeyswitchKey_u64 *get_keyswitch_key(mlir::concretelang::RuntimeContext *context) {
LweKeyswitchKey_u64 *
get_keyswitch_key(mlir::concretelang::RuntimeContext *context) {
return context->ksk;
}
LweBootstrapKey_u64 *get_bootstrap_key(mlir::concretelang::RuntimeContext *context) {
LweBootstrapKey_u64 *
get_bootstrap_key(mlir::concretelang::RuntimeContext *context) {
int err;
#ifdef CONCRETELANG_PARALLEL_EXECUTION_ENABLED
std::string threadName = hpx::get_thread_name();