Searched refs:gcd (Results 1 - 25 of 32) sorted by relevance

12

/freebsd-current/sys/compat/linuxkpi/common/include/linux/
H A Dgcd.h34 gcd(unsigned long a, unsigned long b) function
/freebsd-current/crypto/openssl/crypto/rsa/
H A Drsa_sp800_56b_check.c139 BIGNUM *p1 = NULL, *gcd = NULL; local
149 gcd = BN_CTX_get(ctx);
150 if (gcd != NULL) {
152 BN_set_flags(gcd, BN_FLG_CONSTTIME);
161 && BN_gcd(gcd, p1, e, ctx)
162 && BN_is_one(gcd);
178 BIGNUM *r, *p1, *q1, *lcm, *p1q1, *gcd; local
190 gcd = BN_CTX_get(ctx);
191 if (gcd != NULL) {
197 BN_set_flags(gcd, BN_FLG_CONSTTIM
265 ossl_rsa_get_lcm(BN_CTX *ctx, const BIGNUM *p, const BIGNUM *q, BIGNUM *lcm, BIGNUM *gcd, BIGNUM *p1, BIGNUM *q1, BIGNUM *p1q1) argument
286 BIGNUM *gcd = NULL; local
[all...]
H A Drsa_sp800_56b_gen.c236 BIGNUM *p1, *q1, *lcm, *p1q1, *gcd; local
243 gcd = BN_CTX_get(ctx);
244 if (gcd == NULL)
251 BN_set_flags(gcd, BN_FLG_CONSTTIME);
254 if (ossl_rsa_get_lcm(ctx, rsa->p, rsa->q, lcm, gcd, p1, q1, p1q1) != 1)
332 BN_clear(gcd);
H A Drsa_local.h169 BIGNUM *lcm, BIGNUM *gcd, BIGNUM *p1, BIGNUM *q1,
/freebsd-current/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_utils.h57 constexpr size_t gcd(size_t a, size_t b) { function in namespace:__xray
58 return (b == 0) ? a : gcd(b, a % b);
61 constexpr size_t lcm(size_t a, size_t b) { return a * b / gcd(a, b); }
/freebsd-current/contrib/llvm-project/libcxx/modules/std/
H A Dnumeric.inc49 // [numeric.ops.gcd], greatest common divisor
50 using std::gcd;
/freebsd-current/sys/sys/
H A Dtime.h220 const int64_t gcd = __common_powers_of_two(factor, divisor); local
222 return (__stime64_scale32_ceil(x, factor / gcd, divisor / gcd));
228 const int64_t gcd = __common_powers_of_two(factor, divisor); local
230 return (__stime64_scale32_floor(x, factor / gcd, divisor / gcd));
236 const uint64_t gcd = __common_powers_of_two(factor, divisor); local
238 return (__utime64_scale32_ceil(x, factor / gcd, divisor / gcd));
244 const uint64_t gcd local
[all...]
/freebsd-current/contrib/llvm-project/libcxx/include/__numeric/
H A Dgcd_lcm.h59 _LIBCPP_CONSTEXPR _LIBCPP_HIDE_FROM_ABI common_type_t<_Tp, _Up> gcd(_Tp __m, _Up __n) { function
60 static_assert((is_integral<_Tp>::value && is_integral<_Up>::value), "Arguments to gcd must be integer types");
61 static_assert((!is_same<__remove_cv_t<_Tp>, bool>::value), "First argument to gcd cannot be bool");
62 static_assert((!is_same<__remove_cv_t<_Up>, bool>::value), "Second argument to gcd cannot be bool");
78 _Rp __val1 = __ct_abs<_Rp, _Tp>()(__m) / std::gcd(__m, __n);
/freebsd-current/crypto/openssl/providers/implementations/kdfs/
H A Dkrb5kdf.c268 unsigned int tmp, gcd, remainder, lcm, carry; local
277 gcd = blocksize;
281 tmp = gcd % remainder;
282 gcd = remainder;
286 lcm = blocksize * constant_len / gcd;
/freebsd-current/contrib/llvm-project/llvm/lib/MCA/
H A DSupport.cpp30 unsigned GCD = std::gcd(Denominator, RHS.Denominator);
/freebsd-current/contrib/llvm-project/lldb/source/Host/common/
H A DGetOptInc.cpp44 static int gcd(int, int);
56 static int gcd(int a, int b) { function
87 ncycle = gcd(nnonopts, nopts);
/freebsd-current/sys/kgssapi/krb5/
H A Dkcrypto.c86 gcd(size_t a, size_t b) function
91 return gcd(b, a % b);
97 return ((a * b) / gcd(a, b));
/freebsd-current/contrib/libfido2/openbsd-compat/
H A Dgetopt_long.c89 static int gcd(int, int);
110 gcd(int a, int b) function
141 ncycle = gcd(nnonopts, nopts);
/freebsd-current/crypto/openssh/openbsd-compat/
H A Dgetopt_long.c112 static int gcd(int, int);
133 gcd(int a, int b) function
164 ncycle = gcd(nnonopts, nopts);
/freebsd-current/contrib/tcpdump/missing/
H A Dgetopt_long.c91 static int gcd(int, int);
121 gcd(int a, int b) function
152 ncycle = gcd(nnonopts, nopts);
/freebsd-current/contrib/file/src/
H A Dgetopt_long.c93 static int gcd(int, int);
115 gcd(a, b) function
153 ncycle = gcd(nnonopts, nopts);
/freebsd-current/lib/libc/stdlib/
H A Dgetopt_long.c96 static int gcd(int, int);
127 gcd(int a, int b) function
158 ncycle = gcd(nnonopts, nopts);
/freebsd-current/crypto/openssl/test/testutil/
H A Ddriver.c84 static int gcd(int a, int b) function
361 while (jstep == 0 || gcd(all_tests[i].num, jstep) != 1);
/freebsd-current/sbin/geom/misc/
H A Dsubr.c67 gcd(unsigned int a, unsigned int b) function
86 return ((a * b) / gcd(a, b));
/freebsd-current/sys/compat/linuxkpi/common/src/
H A Dlinux_compat.c2034 uint64_t gcd; local
2052 gcd = lkpi_gcd_64(lkpi_nsec2hz_rem, lkpi_nsec2hz_div);
2053 lkpi_nsec2hz_rem /= gcd;
2054 lkpi_nsec2hz_div /= gcd;
2057 gcd = lkpi_gcd_64(lkpi_usec2hz_rem, lkpi_usec2hz_div);
2058 lkpi_usec2hz_rem /= gcd;
2059 lkpi_usec2hz_div /= gcd;
2062 gcd = lkpi_gcd_64(lkpi_msec2hz_rem, lkpi_msec2hz_div);
2063 lkpi_msec2hz_rem /= gcd;
2064 lkpi_msec2hz_div /= gcd;
[all...]
/freebsd-current/crypto/openssl/test/
H A Dbntest.c1767 BIGNUM *a = NULL, *b = NULL, *gcd = NULL, *ret = NULL; local
1772 || !TEST_ptr(gcd = getBN(s, "GCD"))
1777 || !equalBN("gcd(A,B)", gcd, ret))
1784 BN_free(gcd);
2586 BIGNUM *a = NULL, *b = NULL, *gcd = NULL; local
2591 || !TEST_ptr(gcd = BN_new()))
2599 || !TEST_true(BN_gcd(gcd, a, b, ctx))
2600 || !TEST_true(BN_is_one(gcd)))
2608 BN_free(gcd);
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXLowerArgs.cpp310 Align NewLoadAlign(std::gcd(NewArgAlign, CurLoad.Offset));
/freebsd-current/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DUtils.cpp1088 std::gcd(OrigTy.getNumElements(), TargetTy.getNumElements());
1146 int GCD = std::gcd(OrigTy.getNumElements(), TargetTy.getNumElements());
1155 unsigned GCD = std::gcd(OrigSize, TargetSize);
1173 unsigned GCD = std::gcd(OrigSize, TargetSize);
/freebsd-current/sys/geom/shsec/
H A Dg_shsec.c88 gcd(u_int a, u_int b) function
107 return ((a * b) / gcd(a, b));
/freebsd-current/sys/geom/concat/
H A Dg_concat.c75 gcd(u_int a, u_int b) function
94 return ((a * b) / gcd(a, b));

Completed in 393 milliseconds

12