/dports/devel/z88dk/z88dk/test/suites/stdlib/ |
H A D | isqrt.c | 7 Assert(isqrt(0) == 0, "Integer square root of 0 should be 0"); 12 Assert(isqrt(1) == 1, "Integer square root of 1 should be 1"); 17 Assert(isqrt(2) == 1, "Integer square root of 2 should be 1"); 22 Assert(isqrt(3) == 1, "Integer square root of 3 should be 1"); 27 Assert(isqrt(4) == 2, "Integer square root of 4 should be 2"); 32 Assert(isqrt(5) == 2, "Integer square root of 5 should be 2"); 37 Assert(isqrt(6) == 2, "Integer square root of 6 should be 2"); 42 Assert(isqrt(7) == 2, "Integer square root of 7 should be 2"); 47 Assert(isqrt(8) == 2, "Integer square root of 8 should be 2"); 52 Assert(isqrt(9) == 3, "Integer square root of 9 should be 3"); [all …]
|
/dports/math/primecount/primecount-7.2/test/ |
H A D | isqrt.cpp | 39 res1 = isqrt(n); in main() 46 res1 = isqrt(n); in main() 52 res1 = isqrt(n); in main() 58 res1 = isqrt(n); in main() 63 res1 = isqrt(n); in main() 68 res1 = isqrt(n); in main() 73 res1 = isqrt(n); in main() 78 res1 = isqrt(n); in main() 83 res1 = isqrt(n); in main() 88 res1 = isqrt(n); in main() [all …]
|
/dports/math/primecount/primecount-7.2/lib/primesieve/test/ |
H A D | isqrt.cpp | 35 res1 = isqrt(n); 42 res1 = isqrt(n); 48 res1 = isqrt(n); 54 res1 = isqrt(n); 59 res1 = isqrt(n); 64 res1 = isqrt(n);
|
/dports/math/primesieve/primesieve-7.7/test/ |
H A D | isqrt.cpp | 35 res1 = isqrt(n); in main() 42 res1 = isqrt(n); in main() 48 res1 = isqrt(n); in main() 54 res1 = isqrt(n); in main() 59 res1 = isqrt(n); in main() 64 res1 = isqrt(n); in main()
|
/dports/devel/elixir-math/math-0.3.0/test/ |
H A D | math_test.exs | 163 test "isqrt" do test 164 assert isqrt(0) == 0 165 assert isqrt(1) == 1 166 assert isqrt(9) == 3 167 assert isqrt(10) == 3 168 assert isqrt(100) == 10 169 assert isqrt(65535) == 255 170 assert isqrt(65536) == 256 171 … assert isqrt(15241578780673678546105778281054720515622620750190521) == 123456789123456789123456789 172 assert_raise ArithmeticError, fn -> isqrt(-2) end
|
/dports/math/calc/calc-2.14.0.14/help/ |
H A D | isqrt | 2 isqrt - integer part of square root 5 isqrt(x) 16 ; print isqrt(8.5), isqrt(200), isqrt(2e6), isqrt(2e56)
|
/dports/emulators/qemu42/qemu-4.2.1/roms/ipxe/src/tests/ |
H A D | math_test.c | 390 ok ( isqrt ( 0 ) == 0 ); in math_test_exec() 391 ok ( isqrt ( 1 ) == 1 ); in math_test_exec() 392 ok ( isqrt ( 255 ) == 15 ); in math_test_exec() 393 ok ( isqrt ( 256 ) == 16 ); in math_test_exec() 394 ok ( isqrt ( 257 ) == 16 ); in math_test_exec() 395 ok ( isqrt ( 0xa53df2adUL ) == 52652 ); in math_test_exec() 396 ok ( isqrt ( 0x123793c6UL ) == 17482 ); in math_test_exec() 397 ok ( isqrt ( -1UL ) == ( -1UL >> ( 8 * sizeof ( unsigned long ) / 2 ))); in math_test_exec()
|
/dports/emulators/qemu5/qemu-5.2.0/roms/ipxe/src/tests/ |
H A D | math_test.c | 390 ok ( isqrt ( 0 ) == 0 ); in math_test_exec() 391 ok ( isqrt ( 1 ) == 1 ); in math_test_exec() 392 ok ( isqrt ( 255 ) == 15 ); in math_test_exec() 393 ok ( isqrt ( 256 ) == 16 ); in math_test_exec() 394 ok ( isqrt ( 257 ) == 16 ); in math_test_exec() 395 ok ( isqrt ( 0xa53df2adUL ) == 52652 ); in math_test_exec() 396 ok ( isqrt ( 0x123793c6UL ) == 17482 ); in math_test_exec() 397 ok ( isqrt ( -1UL ) == ( -1UL >> ( 8 * sizeof ( unsigned long ) / 2 ))); in math_test_exec()
|
/dports/emulators/qemu-powernv/qemu-powernv-3.0.50/roms/ipxe/src/tests/ |
H A D | math_test.c | 390 ok ( isqrt ( 0 ) == 0 ); in math_test_exec() 391 ok ( isqrt ( 1 ) == 1 ); in math_test_exec() 392 ok ( isqrt ( 255 ) == 15 ); in math_test_exec() 393 ok ( isqrt ( 256 ) == 16 ); in math_test_exec() 394 ok ( isqrt ( 257 ) == 16 ); in math_test_exec() 395 ok ( isqrt ( 0xa53df2adUL ) == 52652 ); in math_test_exec() 396 ok ( isqrt ( 0x123793c6UL ) == 17482 ); in math_test_exec() 397 ok ( isqrt ( -1UL ) == ( -1UL >> ( 8 * sizeof ( unsigned long ) / 2 ))); in math_test_exec()
|
/dports/net/ipxe/ipxe-2265a65/src/tests/ |
H A D | math_test.c | 390 ok ( isqrt ( 0 ) == 0 ); in math_test_exec() 391 ok ( isqrt ( 1 ) == 1 ); in math_test_exec() 392 ok ( isqrt ( 255 ) == 15 ); in math_test_exec() 393 ok ( isqrt ( 256 ) == 16 ); in math_test_exec() 394 ok ( isqrt ( 257 ) == 16 ); in math_test_exec() 395 ok ( isqrt ( 0xa53df2adUL ) == 52652 ); in math_test_exec() 396 ok ( isqrt ( 0x123793c6UL ) == 17482 ); in math_test_exec() 397 ok ( isqrt ( -1UL ) == ( -1UL >> ( 8 * sizeof ( unsigned long ) / 2 ))); in math_test_exec()
|
/dports/emulators/qemu-utils/qemu-4.2.1/roms/ipxe/src/tests/ |
H A D | math_test.c | 390 ok ( isqrt ( 0 ) == 0 ); in math_test_exec() 391 ok ( isqrt ( 1 ) == 1 ); in math_test_exec() 392 ok ( isqrt ( 255 ) == 15 ); in math_test_exec() 393 ok ( isqrt ( 256 ) == 16 ); in math_test_exec() 394 ok ( isqrt ( 257 ) == 16 ); in math_test_exec() 395 ok ( isqrt ( 0xa53df2adUL ) == 52652 ); in math_test_exec() 396 ok ( isqrt ( 0x123793c6UL ) == 17482 ); in math_test_exec() 397 ok ( isqrt ( -1UL ) == ( -1UL >> ( 8 * sizeof ( unsigned long ) / 2 ))); in math_test_exec()
|
/dports/emulators/qemu-guest-agent/qemu-5.0.1/roms/ipxe/src/tests/ |
H A D | math_test.c | 390 ok ( isqrt ( 0 ) == 0 ); in math_test_exec() 391 ok ( isqrt ( 1 ) == 1 ); in math_test_exec() 392 ok ( isqrt ( 255 ) == 15 ); in math_test_exec() 393 ok ( isqrt ( 256 ) == 16 ); in math_test_exec() 394 ok ( isqrt ( 257 ) == 16 ); in math_test_exec() 395 ok ( isqrt ( 0xa53df2adUL ) == 52652 ); in math_test_exec() 396 ok ( isqrt ( 0x123793c6UL ) == 17482 ); in math_test_exec() 397 ok ( isqrt ( -1UL ) == ( -1UL >> ( 8 * sizeof ( unsigned long ) / 2 ))); in math_test_exec()
|
/dports/emulators/qemu/qemu-6.2.0/roms/ipxe/src/tests/ |
H A D | math_test.c | 390 ok ( isqrt ( 0 ) == 0 ); in math_test_exec() 391 ok ( isqrt ( 1 ) == 1 ); in math_test_exec() 392 ok ( isqrt ( 255 ) == 15 ); in math_test_exec() 393 ok ( isqrt ( 256 ) == 16 ); in math_test_exec() 394 ok ( isqrt ( 257 ) == 16 ); in math_test_exec() 395 ok ( isqrt ( 0xa53df2adUL ) == 52652 ); in math_test_exec() 396 ok ( isqrt ( 0x123793c6UL ) == 17482 ); in math_test_exec() 397 ok ( isqrt ( -1UL ) == ( -1UL >> ( 8 * sizeof ( unsigned long ) / 2 ))); in math_test_exec()
|
/dports/emulators/qemu60/qemu-6.0.0/roms/ipxe/src/tests/ |
H A D | math_test.c | 390 ok ( isqrt ( 0 ) == 0 ); in math_test_exec() 391 ok ( isqrt ( 1 ) == 1 ); in math_test_exec() 392 ok ( isqrt ( 255 ) == 15 ); in math_test_exec() 393 ok ( isqrt ( 256 ) == 16 ); in math_test_exec() 394 ok ( isqrt ( 257 ) == 16 ); in math_test_exec() 395 ok ( isqrt ( 0xa53df2adUL ) == 52652 ); in math_test_exec() 396 ok ( isqrt ( 0x123793c6UL ) == 17482 ); in math_test_exec() 397 ok ( isqrt ( -1UL ) == ( -1UL >> ( 8 * sizeof ( unsigned long ) / 2 ))); in math_test_exec()
|
/dports/math/cln/cln-1.3.6/tests/ |
H A D | test_I_isqrt.cc | 12 bool squarep = isqrt(a,&w); in test_I_isqrt() 22 ASSERT1(isqrt(a*a,&w) && w == a, a); in test_I_isqrt() 24 ASSERT1((a==0) || (!isqrt(a*a+1,&w) && w == a), a); in test_I_isqrt() 26 ASSERT1(isqrt(a*(a+2),&w)==(a==0) && w == a, a); in test_I_isqrt()
|
H A D | test_I_sqrtp.cc | 15 bool correct_squarep = isqrt(a,&correct_w); in test_I_sqrtp() 28 if (a > 0) ASSERT1(!isqrt(a*a+1,&w) && w == a, a); in test_I_sqrtp() 30 ASSERT1(isqrt(a*(a+2),&w)==(a==0) && w == a, a); in test_I_sqrtp()
|
/dports/math/primecount/primecount-7.2/src/gourdon/ |
H A D | Sigma.cpp | 33 T pi_sqrtx = pi_noprint(isqrt(x), threads); in Sigma0() 68 int64_t sqrt_xy = isqrt(x / y); in Sigma456() 87 int64_t sqrt_xp = isqrt(x / prime); in Sigma456() 118 int64_t max_pix_sigma6 = isqrt(x / x_star); in Sigma() 124 int64_t c = pi[isqrt(x / y)]; in Sigma() 156 int64_t max_pix_sigma6 = isqrt(x / x_star); in Sigma() 162 int128_t c = pi[isqrt(x / y)]; in Sigma()
|
H A D | AC_libdivide.cpp | 75 uint64_t sqrt_xp = isqrt(xp); 119 uint64_t sqrt_xp = (uint64_t) isqrt(xp); 216 uint64_t min_clustered = isqrt(xp); 274 uint64_t min_clustered = (uint64_t) isqrt(xp); 323 int64_t sqrtx = isqrt(x); 339 int64_t pi_sqrtz = pi[isqrt(z)]; 383 min_c2 = max(min_c2, pi[isqrt(low)]); 394 T sqrt_xlow = isqrt(xlow); 448 int64_t max_a_prime = (int64_t) isqrt(x / x_star); 479 int64_t max_a_prime = (int64_t) isqrt(x / x_star);
|
H A D | AC.cpp | 67 uint64_t sqrt_xp = (uint64_t) isqrt(xp); in generate_moebius() 164 uint64_t min_clustered = (uint64_t) isqrt(xp); 213 int64_t sqrtx = isqrt(x); 225 int64_t pi_sqrtz = pi[isqrt(z)]; 269 min_c2 = max(min_c2, pi[isqrt(low)]); 280 T sqrt_xlow = isqrt(xlow); 318 int64_t max_a_prime = (int64_t) isqrt(x / x_star); 349 int64_t max_a_prime = (int64_t) isqrt(x / x_star);
|
/dports/math/fxt/fxt/src/mod/ |
H A D | factormake.cc | 123 umod_t maxv = isqrt(n) + 1; in make_factorization() 152 maxv = isqrt(n) + 1; in make_factorization() 157 umod_t w = isqrt(n); in make_factorization() 162 maxv = isqrt(n) + 1; in make_factorization() 183 maxv = isqrt(n) + 1; in make_factorization()
|
/dports/math/primecount/primecount-7.2/src/deleglise-rivat/ |
H A D | S2_hard.cpp | 77 int64_t pi_sqrty = pi[isqrt(y)]; 79 : pi[min3(isqrt(x / low1), isqrt(z), y)]; 203 int64_t max_prime = min(y, z / isqrt(y)); in S2_easy() 249 int64_t max_prime = min(y, z / isqrt(y)); 283 int64_t max_prime = min(y, z / isqrt(y)); 290 int64_t max_prime = min(y, z / isqrt(y));
|
/dports/math/symengine/symengine-0.8.1/symengine/tests/basic/ |
H A D | test_integer.cpp | 9 using SymEngine::isqrt; 20 REQUIRE(eq(*isqrt(*i10), *integer(3))); 21 REQUIRE(eq(*isqrt(*i19), *integer(4))); 22 REQUIRE(eq(*isqrt(*i25), *integer(5)));
|
/dports/science/cp2k/cp2k-2e995eec7fd208c8a72d9544807bd8b8ba8cd1cc/tools/plan_mpi_omp/ |
H A D | plan.sh | 60 function isqrt { function 154 NSQRT_MIN=$(isqrt ${NRANKSMIN}) 155 NSQRT_MAX=$(isqrt ${NCORESTOTAL}) 190 SQRTNRANKS=$(isqrt $((NRANKS_CUR))) 232 SQRT=$(isqrt $((TOTALNUMNODES*NRANKSPERNODE)))
|
/dports/science/cp2k-data/cp2k-7.1.0/tools/plan_mpi_omp/ |
H A D | plan.sh | 60 function isqrt { function 154 NSQRT_MIN=$(isqrt ${NRANKSMIN}) 155 NSQRT_MAX=$(isqrt ${NCORESTOTAL}) 190 SQRTNRANKS=$(isqrt $((NRANKS_CUR))) 232 SQRT=$(isqrt $((TOTALNUMNODES*NRANKSPERNODE)))
|
/dports/devel/z88dk/z88dk/libsrc/stdlib/ |
H A D | isqrt.asm | 10 PUBLIC isqrt 13 ; ----- uint __FASTCALL__ isqrt(uint val) 15 .isqrt
|