/dports/textproc/p5-SVG/SVG-2.86/examples/ |
H A D | inlinesvg.pl | 55 foreach (1..&round_up(rand(20))) { 72 dur=>&round_up(rand(20),2).'s', 73 repeatCount=>&round_up(rand(30)), 95 foreach (1..&round_up(rand(5))) { 185 sub round_up { subroutine 212 … 'stroke'=>'rgb('.255*round_up(rand()).','.255*round_up(rand()).','.255*round_up(rand()).')', 214 'fill'=>'rgb('.255*round_up(rand()).','.255*round_up(rand()).','.255*round_up(rand()).')', 227 … 'stroke'=>'rgb('.255*round_up(rand()).','.255*round_up(rand()).','.255*round_up(rand()).')', 229 'fill'=>'rgb('.255*round_up(rand()).','.255*round_up(rand()).','.255*round_up(rand()).')',
|
H A D | svgtest2.pl | 54 foreach (1..&round_up(rand(20))) { 71 dur=>&round_up(rand(20),2).'s', 72 repeatCount=>&round_up(rand(30)), 95 foreach (1..&round_up(rand(5))) { 186 sub round_up { subroutine 213 … 'stroke'=>'rgb('.255*round_up(rand()).','.255*round_up(rand()).','.255*round_up(rand()).')', 215 'fill'=>'rgb('.255*round_up(rand()).','.255*round_up(rand()).','.255*round_up(rand()).')', 228 … 'stroke'=>'rgb('.255*round_up(rand()).','.255*round_up(rand()).','.255*round_up(rand()).')', 230 'fill'=>'rgb('.255*round_up(rand()).','.255*round_up(rand()).','.255*round_up(rand()).')',
|
/dports/www/trafficserver/trafficserver-9.1.1/src/tscore/unit_tests/ |
H A D | test_Scalar.cc | 58 sz = ts::round_up(sz_b); 63 sz = ts::round_up(sz_c); 68 sz = ts::round_up(sz_d); 108 Size_1 sz = round_up(sz_a); 113 sz = ts::round_up(sz_b); 125 m_4 = ts::round_up(m_9); 131 m_9 = ts::round_up(m_4); 182 z2 = ts::round_up(262150); 188 z2 += ts::round_up(97384); 202 k = ts::round_up(262150); [all …]
|
/dports/ftp/vsftpd/vsftpd-3.0.5/ |
H A D | secbuf.c | 21 unsigned int round_up; in vsf_secbuf_alloc() local 34 round_up = num_pages * page_size; in vsf_secbuf_alloc() 39 round_up = size; in vsf_secbuf_alloc() 42 round_up += page_size * 2; in vsf_secbuf_alloc() 44 p_mmap = vsf_sysutil_map_anon_pages(round_up); in vsf_secbuf_alloc() 46 p_no_access_page = p_mmap + round_up - page_size; in vsf_secbuf_alloc() 52 *((unsigned int*)p_mmap) = round_up; in vsf_secbuf_alloc()
|
/dports/ftp/vsftpd-ext/vsFTPd-3.0.3-ext.1/ |
H A D | secbuf.c | 21 unsigned int round_up; in vsf_secbuf_alloc() local 34 round_up = num_pages * page_size; in vsf_secbuf_alloc() 39 round_up = size; in vsf_secbuf_alloc() 42 round_up += page_size * 2; in vsf_secbuf_alloc() 44 p_mmap = vsf_sysutil_map_anon_pages(round_up); in vsf_secbuf_alloc() 46 p_no_access_page = p_mmap + round_up - page_size; in vsf_secbuf_alloc() 52 *((unsigned int*)p_mmap) = round_up; in vsf_secbuf_alloc()
|
/dports/math/py-mpmath/mpmath-1.2.1/mpmath/tests/ |
H A D | test_bitwise.py | 35 assert from_man_exp(0, -4, 4, round_up)[:3] == (0, 0, 0) 36 assert from_man_exp(0xf0, -4, 4, round_up)[:3] == (0, 15, 0) 37 assert from_man_exp(0xf1, -4, 4, round_up)[:3] == (0, 1, 4) 38 assert from_man_exp(0xff, -4, 4, round_up)[:3] == (0, 1, 4) 40 assert from_man_exp(-0xf1, -4, 4, round_up)[:3] == (1, 1, 4) 80 assert from_man_exp(31, 0, 4, round_up) == (0, 1, 5, 1) 82 assert from_man_exp(255, 0, 7, round_up) == (0, 1, 8, 1) 101 assert mpf_perturb(a, 0, 53, round_up) == c 105 assert mpf_perturb(a, 1, 53, round_up) == a 114 assert mpf_perturb(a, 0, 53, round_up) == a [all …]
|
H A D | test_division.py | 6 all_modes = [round_floor, round_ceiling, round_down, round_up, round_nearest] 22 assert mpf_div(a, b, 7, round_up) == fb('0.01010110') 29 assert mpf_div(c, b, 7, round_up) == fb('-0.01010110') 39 assert mpf_rdiv_int(a, b, 7, round_up) == fb('0.01010110') 44 assert mpf_rdiv_int(c, b, 7, round_up) == fb('-0.01010110') 60 assert mpf_div(a, q, 9, round_up) == fi(301) 61 assert mpf_div(b, q, 9, round_up) == fi(301) 62 assert mpf_div(c, q, 9, round_up) == fi(301) 103 assert mpf_div(c, b, 2, round_up) == fb('0.11') 104 assert mpf_div(c, b, 3, round_up) == fb('0.110') [all …]
|
/dports/devel/grpc/grpc-1.42.0/src/core/lib/transport/ |
H A D | timeout_encoding.cc | 28 static int64_t round_up(int64_t x, int64_t divisor) { in round_up() function 35 if (x < 10000) return round_up(x, 10); in round_up_to_three_sig_figs() 36 if (x < 100000) return round_up(x, 100); in round_up_to_three_sig_figs() 37 if (x < 1000000) return round_up(x, 1000); in round_up_to_three_sig_figs() 38 if (x < 10000000) return round_up(x, 10000); in round_up_to_three_sig_figs() 39 if (x < 100000000) return round_up(x, 100000); in round_up_to_three_sig_figs() 40 if (x < 1000000000) return round_up(x, 1000000); in round_up_to_three_sig_figs() 41 return round_up(x, 10000000); in round_up_to_three_sig_figs()
|
/dports/devel/grpc130/grpc-1.30.2/src/core/lib/transport/ |
H A D | timeout_encoding.cc | 28 static int64_t round_up(int64_t x, int64_t divisor) { in round_up() function 35 if (x < 10000) return round_up(x, 10); in round_up_to_three_sig_figs() 36 if (x < 100000) return round_up(x, 100); in round_up_to_three_sig_figs() 37 if (x < 1000000) return round_up(x, 1000); in round_up_to_three_sig_figs() 38 if (x < 10000000) return round_up(x, 10000); in round_up_to_three_sig_figs() 39 if (x < 100000000) return round_up(x, 100000); in round_up_to_three_sig_figs() 40 if (x < 1000000000) return round_up(x, 1000000); in round_up_to_three_sig_figs() 41 return round_up(x, 10000000); in round_up_to_three_sig_figs()
|
/dports/devel/grpc134/grpc-1.34.1/src/core/lib/transport/ |
H A D | timeout_encoding.cc | 28 static int64_t round_up(int64_t x, int64_t divisor) { in round_up() function 35 if (x < 10000) return round_up(x, 10); in round_up_to_three_sig_figs() 36 if (x < 100000) return round_up(x, 100); in round_up_to_three_sig_figs() 37 if (x < 1000000) return round_up(x, 1000); in round_up_to_three_sig_figs() 38 if (x < 10000000) return round_up(x, 10000); in round_up_to_three_sig_figs() 39 if (x < 100000000) return round_up(x, 100000); in round_up_to_three_sig_figs() 40 if (x < 1000000000) return round_up(x, 1000000); in round_up_to_three_sig_figs() 41 return round_up(x, 10000000); in round_up_to_three_sig_figs()
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/grpc/src/src/core/lib/transport/ |
H A D | timeout_encoding.cc | 28 static int64_t round_up(int64_t x, int64_t divisor) { in round_up() function 35 if (x < 10000) return round_up(x, 10); in round_up_to_three_sig_figs() 36 if (x < 100000) return round_up(x, 100); in round_up_to_three_sig_figs() 37 if (x < 1000000) return round_up(x, 1000); in round_up_to_three_sig_figs() 38 if (x < 10000000) return round_up(x, 10000); in round_up_to_three_sig_figs() 39 if (x < 100000000) return round_up(x, 100000); in round_up_to_three_sig_figs() 40 if (x < 1000000000) return round_up(x, 1000000); in round_up_to_three_sig_figs() 41 return round_up(x, 10000000); in round_up_to_three_sig_figs()
|
/dports/devel/pecl-grpc/grpc-1.42.0/src/core/lib/transport/ |
H A D | timeout_encoding.cc | 28 static int64_t round_up(int64_t x, int64_t divisor) { 35 if (x < 10000) return round_up(x, 10); 36 if (x < 100000) return round_up(x, 100); in grpc_get_reffed_status_elem() 37 if (x < 1000000) return round_up(x, 1000); 38 if (x < 10000000) return round_up(x, 10000); 39 if (x < 100000000) return round_up(x, 100000); 40 if (x < 1000000000) return round_up(x, 1000000); 41 return round_up(x, 10000000);
|
/dports/devel/py-grpcio/grpcio-1.43.0/src/core/lib/transport/ |
H A D | timeout_encoding.cc | 28 static int64_t round_up(int64_t x, int64_t divisor) { in round_up() function 35 if (x < 10000) return round_up(x, 10); in round_up_to_three_sig_figs() 36 if (x < 100000) return round_up(x, 100); in round_up_to_three_sig_figs() 37 if (x < 1000000) return round_up(x, 1000); in round_up_to_three_sig_figs() 38 if (x < 10000000) return round_up(x, 10000); in round_up_to_three_sig_figs() 39 if (x < 100000000) return round_up(x, 100000); in round_up_to_three_sig_figs() 40 if (x < 1000000000) return round_up(x, 1000000); in round_up_to_three_sig_figs() 41 return round_up(x, 10000000); in round_up_to_three_sig_figs()
|
/dports/emulators/yuzu/yuzu-0b47f7a46/externals/dynarmic/src/common/fp/op/ |
H A D | FPToFixed.cpp | 49 bool round_up = false; in FPToFixed() local 52 …round_up = error > ResidualError::Half || (error == ResidualError::Half && Common::Bit<0>(int_resu… in FPToFixed() 55 round_up = error != ResidualError::Zero; in FPToFixed() 58 round_up = false; in FPToFixed() 61 round_up = error != ResidualError::Zero && Common::MostSignificantBit(int_result); in FPToFixed() 64 …round_up = error > ResidualError::Half || (error == ResidualError::Half && !Common::MostSignifican… in FPToFixed() 70 if (round_up) { in FPToFixed() 75 …<int>(ibits) - static_cast<int>(Common::HighestSetBit(value.mantissa + (round_up ? 1 : 0))) - (uns… in FPToFixed()
|
H A D | FPRoundInt.cpp | 52 bool round_up = false; in FPRoundInt() local 55 …round_up = error > ResidualError::Half || (error == ResidualError::Half && Common::Bit<0>(int_resu… in FPRoundInt() 58 round_up = error != ResidualError::Zero; in FPRoundInt() 61 round_up = false; in FPRoundInt() 64 round_up = error != ResidualError::Zero && Common::MostSignificantBit(int_result); in FPRoundInt() 67 …round_up = error > ResidualError::Half || (error == ResidualError::Half && !Common::MostSignifican… in FPRoundInt() 73 if (round_up) { in FPRoundInt()
|
/dports/emulators/citra-qt5/citra-ac98458e0/externals/dynarmic/src/common/fp/op/ |
H A D | FPToFixed.cpp | 49 bool round_up = false; in FPToFixed() local 52 …round_up = error > ResidualError::Half || (error == ResidualError::Half && Common::Bit<0>(int_resu… in FPToFixed() 55 round_up = error != ResidualError::Zero; in FPToFixed() 58 round_up = false; in FPToFixed() 61 round_up = error != ResidualError::Zero && Common::MostSignificantBit(int_result); in FPToFixed() 64 …round_up = error > ResidualError::Half || (error == ResidualError::Half && !Common::MostSignifican… in FPToFixed() 70 if (round_up) { in FPToFixed() 75 …<int>(ibits) - static_cast<int>(Common::HighestSetBit(value.mantissa + (round_up ? 1 : 0))) - (uns… in FPToFixed()
|
H A D | FPRoundInt.cpp | 52 bool round_up = false; in FPRoundInt() local 55 …round_up = error > ResidualError::Half || (error == ResidualError::Half && Common::Bit<0>(int_resu… in FPRoundInt() 58 round_up = error != ResidualError::Zero; in FPRoundInt() 61 round_up = false; in FPRoundInt() 64 round_up = error != ResidualError::Zero && Common::MostSignificantBit(int_result); in FPRoundInt() 67 …round_up = error > ResidualError::Half || (error == ResidualError::Half && !Common::MostSignifican… in FPRoundInt() 73 if (round_up) { in FPRoundInt()
|
/dports/emulators/citra/citra-ac98458e0/externals/dynarmic/src/common/fp/op/ |
H A D | FPToFixed.cpp | 49 bool round_up = false; in FPToFixed() local 52 …round_up = error > ResidualError::Half || (error == ResidualError::Half && Common::Bit<0>(int_resu… in FPToFixed() 55 round_up = error != ResidualError::Zero; in FPToFixed() 58 round_up = false; in FPToFixed() 61 round_up = error != ResidualError::Zero && Common::MostSignificantBit(int_result); in FPToFixed() 64 …round_up = error > ResidualError::Half || (error == ResidualError::Half && !Common::MostSignifican… in FPToFixed() 70 if (round_up) { in FPToFixed() 75 …<int>(ibits) - static_cast<int>(Common::HighestSetBit(value.mantissa + (round_up ? 1 : 0))) - (uns… in FPToFixed()
|
H A D | FPRoundInt.cpp | 52 bool round_up = false; in FPRoundInt() local 55 …round_up = error > ResidualError::Half || (error == ResidualError::Half && Common::Bit<0>(int_resu… in FPRoundInt() 58 round_up = error != ResidualError::Zero; in FPRoundInt() 61 round_up = false; in FPRoundInt() 64 round_up = error != ResidualError::Zero && Common::MostSignificantBit(int_result); in FPRoundInt() 67 …round_up = error > ResidualError::Half || (error == ResidualError::Half && !Common::MostSignifican… in FPRoundInt() 73 if (round_up) { in FPRoundInt()
|
/dports/games/0ad/0ad-0.0.23b-alpha/source/lib/tests/ |
H A D | test_bits.h | 149 EQUALS(round_up( 0u, 16u), 0u); in test_round_up() 150 EQUALS(round_up( 4u, 16u), 16u); in test_round_up() 151 EQUALS(round_up(15u, 16u), 16u); in test_round_up() 152 EQUALS(round_up(20u, 32u), 32u); in test_round_up() 153 EQUALS(round_up(29u, 32u), 32u); in test_round_up() 154 EQUALS(round_up(0x1000u, 0x1000u), 0x1000u); in test_round_up() 155 EQUALS(round_up(0x1001u, 0x1000u), 0x2000u); in test_round_up() 156 EQUALS(round_up(0x1900u, 0x1000u), 0x2000u); in test_round_up()
|
/dports/www/firefox/firefox-99.0/third_party/intgemm/test/ |
H A D | utils_test.cc | 38 CHECK(round_up(0, 5) == 0); 39 CHECK(round_up(1, 5) == 5); 40 CHECK(round_up(4, 5) == 5); 41 CHECK(round_up(6, 5) == 10);
|
/dports/devel/sccache/sccache-0.2.15/cargo-crates/ring-0.16.19/src/ |
H A D | bits.rs | 37 let round_up = self.0 & 1; in half_rounded_up() localVariable 38 Self((self.0 / 2) + round_up) in half_rounded_up() 53 let round_up = ((self.0 >> 2) | (self.0 >> 1) | self.0) & 1; in as_usize_bytes_rounded_up() localVariable 55 (self.0 / 8) + round_up in as_usize_bytes_rounded_up()
|
/dports/security/vaultwarden/vaultwarden-1.23.1/cargo-crates/ring-0.16.20/src/ |
H A D | bits.rs | 37 let round_up = self.0 & 1; in half_rounded_up() localVariable 38 Self((self.0 / 2) + round_up) in half_rounded_up() 53 let round_up = ((self.0 >> 2) | (self.0 >> 1) | self.0) & 1; in as_usize_bytes_rounded_up() localVariable 55 (self.0 / 8) + round_up in as_usize_bytes_rounded_up()
|
/dports/lang/gleam/gleam-0.18.2/cargo-crates/ring-0.16.20/src/ |
H A D | bits.rs | 37 let round_up = self.0 & 1; in half_rounded_up() localVariable 38 Self((self.0 / 2) + round_up) in half_rounded_up() 53 let round_up = ((self.0 >> 2) | (self.0 >> 1) | self.0) & 1; in as_usize_bytes_rounded_up() localVariable 55 (self.0 / 8) + round_up in as_usize_bytes_rounded_up()
|
/dports/net/routinator/routinator-0.10.2/cargo-crates/ring-0.16.20/src/ |
H A D | bits.rs | 37 let round_up = self.0 & 1; in half_rounded_up() localVariable 38 Self((self.0 / 2) + round_up) in half_rounded_up() 53 let round_up = ((self.0 >> 2) | (self.0 >> 1) | self.0) & 1; in as_usize_bytes_rounded_up() localVariable 55 (self.0 / 8) + round_up in as_usize_bytes_rounded_up()
|