Files
zeekay f968edf75a Rename the Concrete dialect and project identifiers to Torus
The MLIR dialect, its conversion passes (TFHEToConcrete, ConcreteToCAPI,
ConcreteToLLVM), the optimizer component, the compiler binary, the Rust
crate and the program_info parameter file all still carried the upstream
project's name. They now carry this one's.

Two things deliberately keep the word, because in them it is not the name.
mlir::OpTrait CRTP parameters mean "the derived type", so they are spelled
Derived and OpTy — LLVM's other conventional spelling for the same idiom.
concreteShape is a capnp field: renaming it would change the serialized
protocol, and the prose describing it is ordinary English.

This also repairs references the earlier partial rename left dangling:
Security.cpp included concrete/curves.gen.h and the directory is torus/,
torus-cpu.h included concrete-num_complex.h, the Torus dialect CMakeLists
named ConcreteOps.td, and compiler/setup.py asked find_namespace_packages
for a "concrete" package that no longer exists — so it built without the
package it ships.
2026-08-27 13:17:38 -07:00

46 lines
1.6 KiB
C

// Copyright © 2022 LUX.
// All rights reserved.
#ifndef TORUS_CPU_NOISE_MODEL_FFI_H
#define TORUS_CPU_NOISE_MODEL_FFI_H
// Warning, this file is autogenerated by cbindgen. Do not modify this manually.
#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#define FFT_SCALING_WEIGHT -2.57722494
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
double torus_cpu_estimate_modulus_switching_noise_with_binary_key(uint64_t internal_ks_output_lwe_dimension,
uint64_t glwe_log2_polynomial_size,
uint32_t ciphertext_modulus_log);
double torus_cpu_variance_blind_rotate(uint64_t in_lwe_dimension,
uint64_t out_glwe_dimension,
uint64_t out_polynomial_size,
uint64_t log2_base,
uint64_t level,
uint32_t ciphertext_modulus_log,
uint32_t fft_precision,
double variance_bsk);
double torus_cpu_variance_keyswitch(uint64_t input_lwe_dimension,
uint64_t log2_base,
uint64_t level,
uint32_t ciphertext_modulus_log,
double variance_ksk);
#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus
#endif /* TORUS_CPU_NOISE_MODEL_FFI_H */