zama-ai / tfhe-rs

TFHE-rs: A Pure Rust implementation of the TFHE Scheme for Boolean and Integer Arithmetics Over Encrypted Data.
Other
904 stars 143 forks source link

chore(all): enforce polynomial size to be a power of 2 #1627

Open mayeul-zama opened 7 hours ago

IceTDrinker commented 6 hours ago

Documenting the function to indicate it’s the floor log2 like the rust std lib is simpler here, I don’t think an assert would make sense, until we have other polynomial rings I don’t think this change is worthwhile