Merge pull request #1681 from crStiv/typo

fix: multiple typos of different importance
This commit is contained in:
Marcel Keller
2025-07-27 17:13:42 +02:00
committed by GitHub
5 changed files with 7 additions and 7 deletions

View File

@@ -21,7 +21,7 @@
#include "Tools/Worker.h"
#define SERVER_ID (0)
#define INPUT_KEYS_MSG_TYPE_SIZE (16) // so memory will by alligned
#define INPUT_KEYS_MSG_TYPE_SIZE (16) // so memory will by aligned
#ifndef N_EVAL_THREADS
// Default Intel desktop processor has 8 half cores.

View File

@@ -122,7 +122,7 @@ void Server::_listen_to_client(int id){
// printf("Server:: received %d: \n", msg_len);
_updatable->NewMsg(msg, &_clients_addr[id]);
}
printf("stop listenning to %d\n", id);
printf("stop listening to %d\n", id);
}
bool Server::_handle_recv_len(int id, size_t actual_len, size_t expected_len) {

View File

@@ -499,7 +499,7 @@ class sbits(bits):
res = cls()
inst.inputb(player, n_bits, 0, res)
return res
# compatiblity to sint
# compatibility to sint
get_raw_input_from = get_input_from
@classmethod
def load_dynamic_mem(cls, address):

View File

@@ -412,7 +412,7 @@ def BitLTC1(u, a, b):
return p, a_bits, d, s, t, c, b, pre_input
def carry(b, a, compute_p=True):
""" Carry propogation:
""" Carry propagation:
return (p,g) = (p_2, g_2)o(p_1, g_1) -> (p_1 & p_2, g_2 | (p_2 & g_1))
"""
if a is None:

View File

@@ -187,7 +187,7 @@ class Compiler:
"--prime",
dest="prime",
default=defaults.prime,
help="use bit decomposition with a specifed prime modulus "
help="use bit decomposition with a specified prime modulus "
"for non-linear computation (default: use the masking approach). "
"Don't use this unless you're certain that you need it.",
)
@@ -432,7 +432,7 @@ class Compiler:
class dummy:
def __init__(self, *args):
raise CompilerError(self.error)
dummy.error = i + " not availabe with binary circuits"
dummy.error = i + " not available with binary circuits"
if i in ("cint", "cfix"):
dummy.error += ". See https://mp-spdz.readthedocs.io/en/" \
"latest/Compiler.html#Compiler.types." + i
@@ -565,7 +565,7 @@ class Compiler:
if not (hasattr(self, "compile_name") and hasattr(self, "compile_func")):
raise CompilerError(
"No function to compile. "
"Did you decorate a function with @register_fuction(name)?"
"Did you decorate a function with @register_function(name)?"
)
self.prep_compile(self.compile_name)
print(