/freebsd/contrib/diff/lib/ |
H A D | cmpbuf.c | 131 size_t lcm, m, n, q, r; in buffer_lcm() local 145 lcm = q * b; in buffer_lcm() 146 return lcm <= lcm_max && lcm / b == q ? lcm : a; in buffer_lcm()
|
/freebsd/crypto/openssl/crypto/rsa/ |
H A D | rsa_sp800_56b_check.c | 178 BIGNUM *r, *p1, *q1, *lcm, *p1q1, *gcd; in ossl_rsa_check_private_exponent() local 188 lcm = BN_CTX_get(ctx); in ossl_rsa_check_private_exponent() 195 BN_set_flags(lcm, BN_FLG_CONSTTIME); in ossl_rsa_check_private_exponent() 204 && (ossl_rsa_get_lcm(ctx, rsa->p, rsa->q, lcm, gcd, p1, q1, in ossl_rsa_check_private_exponent() 207 && (BN_cmp(rsa->d, lcm) < 0) in ossl_rsa_check_private_exponent() 209 && BN_mod_mul(r, rsa->e, rsa->d, lcm, ctx) in ossl_rsa_check_private_exponent() 215 BN_clear(lcm); in ossl_rsa_check_private_exponent() 266 BIGNUM *lcm, BIGNUM *gcd, BIGNUM *p1, BIGNUM *q1, in ossl_rsa_get_lcm() argument 273 && BN_div(lcm, NULL, p1q1, gcd, ctx); /* LCM((p-1, q-1)) */ in ossl_rsa_get_lcm()
|
H A D | rsa_sp800_56b_gen.c | 236 BIGNUM *p1, *q1, *lcm, *p1q1, *gcd; in ossl_rsa_sp800_56b_derive_params_from_pq() local 241 lcm = BN_CTX_get(ctx); in ossl_rsa_sp800_56b_derive_params_from_pq() 249 BN_set_flags(lcm, BN_FLG_CONSTTIME); in ossl_rsa_sp800_56b_derive_params_from_pq() 254 if (ossl_rsa_get_lcm(ctx, rsa->p, rsa->q, lcm, gcd, p1, q1, p1q1) != 1) in ossl_rsa_sp800_56b_derive_params_from_pq() 269 if (BN_mod_inverse(rsa->d, e, lcm, ctx) == NULL) in ossl_rsa_sp800_56b_derive_params_from_pq() 330 BN_clear(lcm); in ossl_rsa_sp800_56b_derive_params_from_pq()
|
H A D | rsa_local.h | 169 BIGNUM *lcm, BIGNUM *gcd, BIGNUM *p1, BIGNUM *q1,
|
/freebsd/contrib/llvm-project/libcxx/modules/std/ |
H A D | numeric.cppm |
|
/freebsd/crypto/openssl/providers/implementations/kdfs/ |
H A D | krb5kdf.c | 268 unsigned int tmp, gcd, remainder, lcm, carry; in n_fold() local 286 lcm = blocksize * constant_len / gcd; in n_fold() 293 for (l = lcm - 1; l >= 0; l--) { in n_fold()
|
/freebsd/sys/kgssapi/krb5/ |
H A D | kcrypto.c | 95 lcm(size_t a, size_t b) in lcm() function 166 tmplen = lcm(inlen, outlen); in krb5_n_fold()
|
/freebsd/contrib/bc/tests/bc/ |
H A D | lib2.txt | 102 lcm(40, 4096) 103 lcm(555, 55)
|
/freebsd/contrib/llvm-project/compiler-rt/lib/xray/ |
H A D | xray_utils.h | 61 constexpr size_t lcm(size_t a, size_t b) { return a * b / gcd(a, b); } in lcm() function
|
/freebsd/sys/compat/linux/ |
H A D | linux_socket.c | 1779 struct l_cmsghdr *lcm = NULL; in linux_recvmsg_common() local 1850 lcm = malloc(L_CMSG_HDRSZ, M_LINUX, M_WAITOK | M_ZERO); in linux_recvmsg_common() 1856 lcm->cmsg_type = bsd_to_linux_cmsg_type(p, cm->cmsg_type, in linux_recvmsg_common() 1858 lcm->cmsg_level = bsd_to_linux_sockopt_level(cm->cmsg_level); in linux_recvmsg_common() 1860 if (lcm->cmsg_type == -1 || in linux_recvmsg_common() 1877 lcm->cmsg_type, &datalen, &data, &udata); in linux_recvmsg_common() 1881 lcm->cmsg_type, flags, &datalen, &data, &udata); in linux_recvmsg_common() 1901 lcm->cmsg_len = LINUX_CMSG_LEN(datalen); in linux_recvmsg_common() 1902 error = copyout(lcm, outbuf, L_CMSG_HDRSZ); in linux_recvmsg_common() 1931 free(lcm, M_LINUX); in linux_recvmsg_common()
|
/freebsd/contrib/llvm-project/libcxx/include/__numeric/ |
H A D | gcd_lcm.h | 110 constexpr _LIBCPP_HIDE_FROM_ABI common_type_t<_Tp, _Up> lcm(_Tp __m, _Up __n) {
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | SlowDynamicAPInt.h | 97 SlowDynamicAPInt lcm(const SlowDynamicAPInt &A, const SlowDynamicAPInt &B);
|
H A D | DynamicAPInt.h | 176 friend DynamicAPInt lcm(const DynamicAPInt &A, const DynamicAPInt &B); 398 LLVM_ATTRIBUTE_ALWAYS_INLINE DynamicAPInt lcm(const DynamicAPInt &A, in lcm() function
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | TargetSchedule.cpp | 63 ResourceLCM = std::lcm(ResourceLCM, NumUnits); in init()
|
/freebsd/sys/geom/shsec/ |
H A D | g_shsec.c | 104 lcm(u_int a, u_int b) in lcm() function 420 sectorsize = lcm(sectorsize, in g_shsec_check_and_run()
|
/freebsd/crypto/openssl/test/recipes/04-test_pem_reading_data/ |
H A D | cert-threecolumn.pem | 107 lcm
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | SlowDynamicAPInt.cpp | 226 SlowDynamicAPInt detail::lcm(const SlowDynamicAPInt &A, in lcm() function in detail
|
/freebsd/contrib/llvm-project/libcxx/include/ |
H A D | numeric | 135 constexpr common_type_t<M,N> lcm(M m, N n); // C++17
|
/freebsd/sys/geom/stripe/ |
H A D | g_stripe.c | 108 lcm(u_int a, u_int b) in lcm() function 699 sectorsize = lcm(sectorsize, dp->sectorsize); in g_stripe_check_and_run()
|
/freebsd/sys/geom/concat/ |
H A D | g_concat.c | 91 lcm(u_int a, u_int b) in lcm() function 475 sectorsize = lcm(sectorsize, dp->sectorsize); in g_concat_check_and_run()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | Utils.cpp | 1192 unsigned LCM = std::lcm(OrigTy.getSizeInBits().getKnownMinValue(), in getLCMType() 1212 unsigned LCM = std::lcm(EltTy.getSizeInBits().getFixedValue() * in getLCMType() 1222 unsigned LCM = std::lcm(OrigTy.getSizeInBits().getFixedValue(), in getLCMType()
|
/freebsd/sys/contrib/device-tree/src/arm64/qcom/ |
H A D | sc7180-acer-aspire1.dts | 940 reg_lcm_en_default: reg-lcm-en-deault-state {
|
/freebsd/contrib/bc/gen/ |
H A D | lib2.bc | 200 define lcm(a,b){
|
/freebsd/contrib/bc/manuals/ |
H A D | algorithms.md | 357 This is implemented in the function `lcm(a,b)`.
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/ |
H A D | zstd_compress.c | 620 const ZSTD_literalCompressionMode_e lcm = (ZSTD_literalCompressionMode_e)value; in ZSTD_CCtxParams_setParameter() local 621 BOUNDCHECK(ZSTD_c_literalCompressionMode, lcm); in ZSTD_CCtxParams_setParameter() 622 CCtxParams->literalCompressionMode = lcm; in ZSTD_CCtxParams_setParameter()
|