Home
last modified time | relevance | path

Searched refs:lcm (Results 1 – 25 of 28) sorted by relevance

12

/external/libcxx/include/experimental/
Dnumeric27 constexpr common_type_t<M,N> lcm(M m, N n);
94 lcm(_Tp __m, _Up __n)
96 …static_assert((is_integral<_Tp>::value && is_integral<_Up>::value), "Arguments to lcm must be inte…
97 …static_assert((!is_same<typename remove_cv<_Tp>::type, bool>::value), "First argument to lcm canno…
98 …static_assert((!is_same<typename remove_cv<_Up>::type, bool>::value), "Second argument to lcm cann…
105 _LIBCPP_ASSERT((numeric_limits<_Rp>::max() / __val1 > __val2), "Overflow in lcm");
/external/libcxx/test/std/numerics/numeric.ops/numeric.ops.lcm/
Dlcm.pass.cpp39 static_assert((std::is_same<Output, decltype(std::lcm(Input1(0), Input2(0)))>::value), "" ); in test0()
40 static_assert((std::is_same<Output, decltype(std::lcm(Input2(0), Input1(0)))>::value), "" ); in test0()
41 return out == std::lcm(in1, in2) ? true : (std::abort(), false); in test0()
134 auto res1 = std::lcm((int64_t)1234, (int32_t)-2147483648); in main()
135 (void) std::lcm<int, unsigned long>(INT_MIN, 2); // this used to trigger UBSAN in main()
Dlcm.bool3.fail.cpp24 std::lcm<volatile bool, int>(false, 4); in main()
Dlcm.bool2.fail.cpp24 std::lcm(2, true); in main()
Dlcm.bool4.fail.cpp24 std::lcm<int, const bool>(2, true); in main()
Dlcm.not_integral1.fail.cpp24 std::lcm(2.0, 4); in main()
Dlcm.not_integral2.fail.cpp24 std::lcm(4, 6.0); in main()
Dlcm.bool1.fail.cpp24 std::lcm(false, 4); in main()
/external/libcxx/test/std/experimental/numeric/numeric.ops/numeric.ops.lcm/
Dlcm.pass.cpp39 …static_assert((std::is_same<Output, decltype(std::experimental::lcm(Input1(0), Input2(0)))>::value… in test0()
40 …static_assert((std::is_same<Output, decltype(std::experimental::lcm(Input2(0), Input1(0)))>::value… in test0()
41 return out == std::experimental::lcm(in1, in2) ? true : (std::abort(), false); in test0()
134 auto res1 = std::experimental::lcm((int64_t)1234, (int32_t)-2147483648); in main()
135 (void) std::experimental::lcm<int, unsigned long>(INT_MIN, 2); // this used to trigger UBSAN in main()
Dlcm.bool1.fail.cpp24 std::experimental::lcm(false, 4); in main()
Dlcm.bool3.fail.cpp24 std::experimental::lcm<volatile bool, int>(false, 4); in main()
Dlcm.not_integral2.fail.cpp23 std::experimental::lcm(4, 6.0); in main()
Dlcm.not_integral1.fail.cpp23 std::experimental::lcm(2.0, 4); in main()
Dlcm.bool4.fail.cpp24 std::experimental::lcm<int, const bool>(2, true); in main()
Dlcm.bool2.fail.cpp24 std::experimental::lcm(2, true); in main()
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/util/
DMath.java22 public static long lcm(long a, long b) { in lcm() method in Math
26 public static int lcm(int a, int b) { in lcm() method in Math
/external/libcxx/include/
Dnumeric60 constexpr common_type_t<M,N> lcm(M m, N n); // C++17
250 lcm(_Tp __m, _Up __n)
252 …static_assert((is_integral<_Tp>::value && is_integral<_Up>::value), "Arguments to lcm must be inte…
253 …static_assert((!is_same<typename remove_cv<_Tp>::type, bool>::value), "First argument to lcm canno…
254 …static_assert((!is_same<typename remove_cv<_Up>::type, bool>::value), "Second argument to lcm cann…
261 _LIBCPP_ASSERT((numeric_limits<_Rp>::max() / __val1 > __val2), "Overflow in lcm");
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/
DRSAKeyPairGenerator.java58 BigInteger p, q, n, d, e, pSub1, qSub1, gcd, lcm; in generateKeyPair() local
118 lcm = pSub1.divide(gcd).multiply(qSub1); in generateKeyPair()
123 d = e.modInverse(lcm); in generateKeyPair()
/external/boringssl/src/crypto/fipsmodule/rsa/
Drsa.c569 BIGNUM n, pm1, qm1, lcm, gcd, de, dmp1, dmq1, iqmp_times_q; in RSA_check_key() local
603 BN_init(&lcm); in RSA_check_key()
614 !BN_mul(&lcm, &pm1, &qm1, ctx) || in RSA_check_key()
620 if (!BN_div(&lcm, NULL, &lcm, &gcd, ctx) || in RSA_check_key()
623 !BN_mod_mul(&de, key->d, key->e, &lcm, ctx)) { in RSA_check_key()
671 BN_free(&lcm); in RSA_check_key()
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/
DMathUtils.java1161 public static int lcm(int a, int b) {
1165 int lcm = FastMath.abs(mulAndCheck(a / gcd(a, b), b));
1166 if (lcm == Integer.MIN_VALUE) {
1171 return lcm;
1196 public static long lcm(long a, long b) {
1200 long lcm = FastMath.abs(mulAndCheck(a / gcd(a, b), b));
1201 if (lcm == Long.MIN_VALUE){
1206 return lcm;
/external/llvm/lib/CodeGen/
DTargetSchedule.cpp47 static unsigned lcm(unsigned A, unsigned B) { in lcm() function
67 ResourceLCM = lcm(ResourceLCM, NumUnits); in init()
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/builder/
DSyncSampleIntersectFinderImpl.java27 import static com.googlecode.mp4parser.util.Math.lcm;
298 timeScale = lcm(timeScale, track1.getTrackMetaData().getTimescale()); in calculateTracktimesScalingFactor()
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/tracks/
DMultiplyTimeScaleTrack.java30 import static com.googlecode.mp4parser.util.Math.lcm;
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DNFRuleSet.java631 leastCommonMultiple = lcm(leastCommonMultiple, rules[i].getBaseValue()); in findFractionRuleSetRule()
689 private static long lcm(long x, long y) { in lcm() method in NFRuleSet
/external/icu/android_icu4j/src/main/java/android/icu/text/
DNFRuleSet.java632 leastCommonMultiple = lcm(leastCommonMultiple, rules[i].getBaseValue()); in findFractionRuleSetRule()
690 private static long lcm(long x, long y) { in lcm() method in NFRuleSet

12