Checkpoint the party/runtime stack before share-program and malicious-mode work.
Ship the TLS mesh, composer, Beaver/Yao/leaf MPC, prep/online paths, apps, and docs so the tree is pushable before elevating share_expr, security_mode, and prep resume. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
695f8e84f7
commit
0d22946a0e
1835 changed files with 170291 additions and 2849 deletions
|
|
@ -22,8 +22,17 @@ namespace gadgets
|
|||
|
||||
// Returns the inverse hyperbolic cosine of a number.
|
||||
// The number must be greater than or equal to 1.
|
||||
/// @brief Cleartext `acosh`.
|
||||
/// @see grotto::eval_closed
|
||||
/// @note Straight-line cleartext. Fixed-point evaluation is the symbol in `@see` when that symbol is a LUT or an `eval_*` function.
|
||||
/// \complexity One evaluation of `operator()` as written in this header. There is no domain scan and no loop. `Θ(1)` time and extra space relative to that expression.
|
||||
struct acosh
|
||||
{
|
||||
/// @brief Evaluate the cleartext map.
|
||||
/// @tparam T argument and result type
|
||||
/// @param x the input
|
||||
/// @return the cleartext image of `x`
|
||||
/// \complexity The body is straight-line. `Θ(1)` time and extra space.
|
||||
template <typename T>
|
||||
T operator()(T x) {
|
||||
if (x < 1) return -1; // TODO
|
||||
|
|
|
|||
|
|
@ -20,8 +20,17 @@ namespace grotto
|
|||
namespace gadgets
|
||||
{
|
||||
|
||||
/// @brief Cleartext `acoth`.
|
||||
/// @see grotto::eval_closed
|
||||
/// @note Straight-line cleartext. Fixed-point evaluation is the symbol in `@see` when that symbol is a LUT or an `eval_*` function.
|
||||
/// \complexity One evaluation of `operator()` as written in this header. There is no domain scan and no loop. `Θ(1)` time and extra space relative to that expression.
|
||||
struct acoth
|
||||
{
|
||||
/// @brief Evaluate the cleartext map.
|
||||
/// @tparam T argument and result type
|
||||
/// @param x the input
|
||||
/// @return the cleartext image of `x`
|
||||
/// \complexity The body is straight-line. `Θ(1)` time and extra space.
|
||||
template <typename T>
|
||||
T operator()(T x) {
|
||||
if (std::abs(x) <= 1) return 0; // TODO
|
||||
|
|
|
|||
|
|
@ -20,8 +20,17 @@ namespace grotto
|
|||
namespace gadgets
|
||||
{
|
||||
|
||||
/// @brief Cleartext `acsch`.
|
||||
/// @see grotto::eval_closed
|
||||
/// @note Straight-line cleartext. Fixed-point evaluation is the symbol in `@see` when that symbol is a LUT or an `eval_*` function.
|
||||
/// \complexity One evaluation of `operator()` as written in this header. There is no domain scan and no loop. `Θ(1)` time and extra space relative to that expression.
|
||||
struct acsch
|
||||
{
|
||||
/// @brief Evaluate the cleartext map.
|
||||
/// @tparam T argument and result type
|
||||
/// @param x the input
|
||||
/// @return the cleartext image of `x`
|
||||
/// \complexity The body is straight-line. `Θ(1)` time and extra space.
|
||||
template <typename T>
|
||||
T operator()(T x)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -20,8 +20,17 @@ namespace grotto
|
|||
namespace gadgets
|
||||
{
|
||||
|
||||
/// @brief Cleartext `asech`.
|
||||
/// @see grotto::eval_closed
|
||||
/// @note Straight-line cleartext. Fixed-point evaluation is the symbol in `@see` when that symbol is a LUT or an `eval_*` function.
|
||||
/// \complexity One evaluation of `operator()` as written in this header. There is no domain scan and no loop. `Θ(1)` time and extra space relative to that expression.
|
||||
struct asech
|
||||
{
|
||||
/// @brief Evaluate the cleartext map.
|
||||
/// @tparam T argument and result type
|
||||
/// @param x the input
|
||||
/// @return the cleartext image of `x`
|
||||
/// \complexity The body is straight-line. `Θ(1)` time and extra space.
|
||||
template <typename T>
|
||||
T operator()(T x)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -20,8 +20,17 @@ namespace grotto
|
|||
namespace gadgets
|
||||
{
|
||||
|
||||
/// @brief Cleartext `asinh`.
|
||||
/// @see grotto::eval_closed
|
||||
/// @note Straight-line cleartext. Fixed-point evaluation is the symbol in `@see` when that symbol is a LUT or an `eval_*` function.
|
||||
/// \complexity One evaluation of `operator()` as written in this header. There is no domain scan and no loop. `Θ(1)` time and extra space relative to that expression.
|
||||
struct asinh
|
||||
{
|
||||
/// @brief Evaluate the cleartext map.
|
||||
/// @tparam T argument and result type
|
||||
/// @param x the input
|
||||
/// @return the cleartext image of `x`
|
||||
/// \complexity The body is straight-line. `Θ(1)` time and extra space.
|
||||
template <typename T>
|
||||
T operator()(T x) { return std::asinh(static_cast<double>(x)); }
|
||||
};
|
||||
|
|
|
|||
|
|
@ -20,8 +20,17 @@ namespace grotto
|
|||
namespace gadgets
|
||||
{
|
||||
|
||||
/// @brief Cleartext `atanh`.
|
||||
/// @see grotto::eval_closed
|
||||
/// @note Straight-line cleartext. Fixed-point evaluation is the symbol in `@see` when that symbol is a LUT or an `eval_*` function.
|
||||
/// \complexity One evaluation of `operator()` as written in this header. There is no domain scan and no loop. `Θ(1)` time and extra space relative to that expression.
|
||||
struct atanh
|
||||
{
|
||||
/// @brief Evaluate the cleartext map.
|
||||
/// @tparam T argument and result type
|
||||
/// @param x the input
|
||||
/// @return the cleartext image of `x`
|
||||
/// \complexity The body is straight-line. `Θ(1)` time and extra space.
|
||||
template <typename T>
|
||||
T operator()(T x)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -24,8 +24,17 @@ HEDLEY_DIAGNOSTIC_PUSH
|
|||
HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED
|
||||
|
||||
|
||||
/// @brief Cleartext `cosh`.
|
||||
/// @see grotto::eval_reduced
|
||||
/// @note Straight-line cleartext. Fixed-point evaluation is the symbol in `@see` when that symbol is a LUT or an `eval_*` function.
|
||||
/// \complexity One evaluation of `operator()` as written in this header. There is no domain scan and no loop. `Θ(1)` time and extra space relative to that expression.
|
||||
struct HEDLEY_DEPRECATED_FOR(2026, grotto::eval_reduced) cosh
|
||||
{
|
||||
/// @brief Evaluate the cleartext map.
|
||||
/// @tparam T argument and result type
|
||||
/// @param x the input
|
||||
/// @return the cleartext image of `x`
|
||||
/// \complexity The body is straight-line. `Θ(1)` time and extra space.
|
||||
template <typename T>
|
||||
T operator()(T x) { return std::min(std::cosh(static_cast<double>(x)), std::numeric_limits<T>::max()); }
|
||||
};
|
||||
|
|
|
|||
|
|
@ -24,8 +24,17 @@ HEDLEY_DIAGNOSTIC_PUSH
|
|||
HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED
|
||||
|
||||
|
||||
/// @brief Cleartext `coth`.
|
||||
/// @see grotto::eval_reduced
|
||||
/// @note Straight-line cleartext. Fixed-point evaluation is the symbol in `@see` when that symbol is a LUT or an `eval_*` function.
|
||||
/// \complexity One evaluation of `operator()` as written in this header. There is no domain scan and no loop. `Θ(1)` time and extra space relative to that expression.
|
||||
struct HEDLEY_DEPRECATED_FOR(2026, grotto::eval_reduced) coth
|
||||
{
|
||||
/// @brief Evaluate the cleartext map.
|
||||
/// @tparam T argument and result type
|
||||
/// @param x the input
|
||||
/// @return the cleartext image of `x`
|
||||
/// \complexity The body is straight-line. `Θ(1)` time and extra space.
|
||||
template <typename T>
|
||||
T operator()(T x)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -24,8 +24,17 @@ HEDLEY_DIAGNOSTIC_PUSH
|
|||
HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED
|
||||
|
||||
|
||||
/// @brief Cleartext `csch`.
|
||||
/// @see grotto::eval_reduced
|
||||
/// @note Straight-line cleartext. Fixed-point evaluation is the symbol in `@see` when that symbol is a LUT or an `eval_*` function.
|
||||
/// \complexity One evaluation of `operator()` as written in this header. There is no domain scan and no loop. `Θ(1)` time and extra space relative to that expression.
|
||||
struct HEDLEY_DEPRECATED_FOR(2026, grotto::eval_reduced) csch
|
||||
{
|
||||
/// @brief Evaluate the cleartext map.
|
||||
/// @tparam T argument and result type
|
||||
/// @param x the input
|
||||
/// @return the cleartext image of `x`
|
||||
/// \complexity The body is straight-line. `Θ(1)` time and extra space.
|
||||
template <typename T>
|
||||
T operator()(T x)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -24,8 +24,17 @@ HEDLEY_DIAGNOSTIC_PUSH
|
|||
HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED
|
||||
|
||||
|
||||
/// @brief Cleartext `sech`.
|
||||
/// @see grotto::eval_reduced
|
||||
/// @note Straight-line cleartext. Fixed-point evaluation is the symbol in `@see` when that symbol is a LUT or an `eval_*` function.
|
||||
/// \complexity One evaluation of `operator()` as written in this header. There is no domain scan and no loop. `Θ(1)` time and extra space relative to that expression.
|
||||
struct HEDLEY_DEPRECATED_FOR(2026, grotto::eval_reduced) sech
|
||||
{
|
||||
/// @brief Evaluate the cleartext map.
|
||||
/// @tparam T argument and result type
|
||||
/// @param x the input
|
||||
/// @return the cleartext image of `x`
|
||||
/// \complexity The body is straight-line. `Θ(1)` time and extra space.
|
||||
template <typename T>
|
||||
T operator()(T x) { return 1/std::cosh(static_cast<double>(x)); }
|
||||
};
|
||||
|
|
|
|||
|
|
@ -24,8 +24,17 @@ HEDLEY_DIAGNOSTIC_PUSH
|
|||
HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED
|
||||
|
||||
|
||||
/// @brief Cleartext `sinh`.
|
||||
/// @see grotto::eval_reduced
|
||||
/// @note Straight-line cleartext. Fixed-point evaluation is the symbol in `@see` when that symbol is a LUT or an `eval_*` function.
|
||||
/// \complexity One evaluation of `operator()` as written in this header. There is no domain scan and no loop. `Θ(1)` time and extra space relative to that expression.
|
||||
struct HEDLEY_DEPRECATED_FOR(2026, grotto::eval_reduced) sinh
|
||||
{
|
||||
/// @brief Evaluate the cleartext map.
|
||||
/// @tparam T argument and result type
|
||||
/// @param x the input
|
||||
/// @return the cleartext image of `x`
|
||||
/// \complexity The body is straight-line. `Θ(1)` time and extra space.
|
||||
template <typename T>
|
||||
T operator()(T x)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -24,8 +24,17 @@ HEDLEY_DIAGNOSTIC_PUSH
|
|||
HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED
|
||||
|
||||
|
||||
/// @brief Cleartext `tanh`.
|
||||
/// @see grotto::eval_reduced
|
||||
/// @note Straight-line cleartext. Fixed-point evaluation is the symbol in `@see` when that symbol is a LUT or an `eval_*` function.
|
||||
/// \complexity One evaluation of `operator()` as written in this header. There is no domain scan and no loop. `Θ(1)` time and extra space relative to that expression.
|
||||
struct HEDLEY_DEPRECATED_FOR(2026, grotto::eval_reduced) tanh
|
||||
{
|
||||
/// @brief Evaluate the cleartext map.
|
||||
/// @tparam T argument and result type
|
||||
/// @param x the input
|
||||
/// @return the cleartext image of `x`
|
||||
/// \complexity The body is straight-line. `Θ(1)` time and extra space.
|
||||
template <typename T>
|
||||
T operator()(T x) { return std::tanh(static_cast<double>(x)); }
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue