Home
last modified time | relevance | path

Searched refs:round_to (Results 1 – 25 of 328) sorted by relevance

12345678910>>...14

/dports/finance/beancount/beancount-2.3.3/beancount/core/
H A Dnumber_test.py7 from beancount.core.number import D, ZERO, round_to, same_sign
40 self.assertEqual(D('135.12'), round_to(D('135.12345'), D('0.01')))
41 self.assertEqual(D('135.12'), round_to(D('135.12987'), D('0.01')))
42 self.assertEqual(D('-135.12'), round_to(D('-135.12345'), D('0.01')))
43 self.assertEqual(D('-135.12'), round_to(D('-135.12987'), D('0.01')))
45 self.assertEqual(D('130'), round_to(D('135.12345'), D('10')))
46 self.assertEqual(D('130'), round_to(D('135.12987'), D('10')))
47 self.assertEqual(D('-130'), round_to(D('-135.12345'), D('10')))
48 self.assertEqual(D('-130'), round_to(D('-135.12987'), D('10')))
/dports/games/frogatto/frogatto-1.3.1/MacOSJet/boost/include/boost/interprocess/detail/
H A Dutilities.hpp73 inline std::size_t get_rounded_size(std::size_t orig_size, std::size_t round_to) in get_rounded_size() argument
75 return ((orig_size-1)/round_to+1)*round_to; in get_rounded_size()
85 inline std::size_t get_rounded_size_po2(std::size_t orig_size, std::size_t round_to) in get_rounded_size_po2() argument
87 return ((orig_size-1)&(~(round_to-1))) + round_to; in get_rounded_size_po2()
/dports/databases/percona57-pam-for-mysql/boost_1_59_0/boost/interprocess/detail/
H A Dutilities.hpp53 inline SizeType get_rounded_size(SizeType orig_size, SizeType round_to) in get_rounded_size() argument
55 return ((orig_size-1)/round_to+1)*round_to; in get_rounded_size()
67 inline SizeType get_rounded_size_po2(SizeType orig_size, SizeType round_to) in get_rounded_size_po2() argument
69 return ((orig_size-1)&(~(round_to-1))) + round_to; in get_rounded_size_po2()
/dports/databases/xtrabackup/boost_1_59_0/boost/interprocess/detail/
H A Dutilities.hpp53 inline SizeType get_rounded_size(SizeType orig_size, SizeType round_to) in get_rounded_size() argument
55 return ((orig_size-1)/round_to+1)*round_to; in get_rounded_size()
67 inline SizeType get_rounded_size_po2(SizeType orig_size, SizeType round_to) in get_rounded_size_po2() argument
69 return ((orig_size-1)&(~(round_to-1))) + round_to; in get_rounded_size_po2()
/dports/databases/percona57-server/boost_1_59_0/boost/interprocess/detail/
H A Dutilities.hpp53 inline SizeType get_rounded_size(SizeType orig_size, SizeType round_to) in get_rounded_size() argument
55 return ((orig_size-1)/round_to+1)*round_to; in get_rounded_size()
67 inline SizeType get_rounded_size_po2(SizeType orig_size, SizeType round_to) in get_rounded_size_po2() argument
69 return ((orig_size-1)&(~(round_to-1))) + round_to; in get_rounded_size_po2()
/dports/databases/percona57-client/boost_1_59_0/boost/interprocess/detail/
H A Dutilities.hpp53 inline SizeType get_rounded_size(SizeType orig_size, SizeType round_to) in get_rounded_size() argument
55 return ((orig_size-1)/round_to+1)*round_to; in get_rounded_size()
67 inline SizeType get_rounded_size_po2(SizeType orig_size, SizeType round_to) in get_rounded_size_po2() argument
69 return ((orig_size-1)&(~(round_to-1))) + round_to; in get_rounded_size_po2()
/dports/databases/mysqlwsrep57-server/boost_1_59_0/boost/interprocess/detail/
H A Dutilities.hpp53 inline SizeType get_rounded_size(SizeType orig_size, SizeType round_to) in get_rounded_size() argument
55 return ((orig_size-1)/round_to+1)*round_to; in get_rounded_size()
67 inline SizeType get_rounded_size_po2(SizeType orig_size, SizeType round_to) in get_rounded_size_po2() argument
69 return ((orig_size-1)&(~(round_to-1))) + round_to; in get_rounded_size_po2()
/dports/databases/mysql57-client/mysql-5.7.36/boost/boost_1_59_0/boost/interprocess/detail/
H A Dutilities.hpp53 inline SizeType get_rounded_size(SizeType orig_size, SizeType round_to) in get_rounded_size() argument
55 return ((orig_size-1)/round_to+1)*round_to; in get_rounded_size()
67 inline SizeType get_rounded_size_po2(SizeType orig_size, SizeType round_to) in get_rounded_size_po2() argument
69 return ((orig_size-1)&(~(round_to-1))) + round_to; in get_rounded_size_po2()
/dports/databases/mongodb36/mongodb-src-r3.6.23/src/third_party/boost-1.60.0/boost/interprocess/detail/
H A Dutilities.hpp54 inline SizeType get_rounded_size(SizeType orig_size, SizeType round_to) in get_rounded_size() argument
56 return ((orig_size-1)/round_to+1)*round_to; in get_rounded_size()
68 inline SizeType get_rounded_size_po2(SizeType orig_size, SizeType round_to) in get_rounded_size_po2() argument
70 return ((orig_size-1)&(~(round_to-1))) + round_to; in get_rounded_size_po2()
/dports/math/universal/universal-3.48/education/number/posit/
H A Dvalues.cpp194 internal::value<7> r7 = r8.round_to<7>(); in main()
196 internal::value<6> r6 = r8.round_to<6>(); in main()
198 internal::value<5> r5 = r8.round_to<5>(); in main()
200 internal::value<4> r4 = r8.round_to<4>(); in main()
202 internal::value<3> r3 = r8.round_to<3>(); in main()
204 internal::value<2> r2 = r8.round_to<2>(); in main()
206 internal::value<1> r1 = r8.round_to<1>(); in main()
208 internal::value<0> r0 = r8.round_to<0>(); in main()
/dports/java/openjdk8/jdk8u-jdk8u312-b07.1/hotspot/src/share/vm/code/
H A DcodeBlob.cpp75 size += round_to(cb->total_relocation_size(), oopSize); in allocation_size()
78 size += round_to(cb->total_content_size(), oopSize); in allocation_size()
79 size += round_to(cb->total_oop_size(), oopSize); in allocation_size()
80 size += round_to(cb->total_metadata_size(), oopSize); in allocation_size()
87 assert(size == round_to(size, oopSize), "unaligned size"); in CodeBlob()
88 assert(locs_size == round_to(locs_size, oopSize), "unaligned size"); in CodeBlob()
89 assert(header_size == round_to(header_size, oopSize), "unaligned size"); in CodeBlob()
123 assert(size == round_to(size, oopSize), "unaligned size"); in CodeBlob()
222 size += round_to(buffer_size, oopSize); in create()
311 size += round_to(buffer_size, oopSize); in create()
[all …]
/dports/java/openjdk8-jre/jdk8u-jdk8u312-b07.1/hotspot/src/share/vm/code/
H A DcodeBlob.cpp75 size += round_to(cb->total_relocation_size(), oopSize); in allocation_size()
78 size += round_to(cb->total_content_size(), oopSize); in allocation_size()
79 size += round_to(cb->total_oop_size(), oopSize); in allocation_size()
80 size += round_to(cb->total_metadata_size(), oopSize); in allocation_size()
87 assert(size == round_to(size, oopSize), "unaligned size"); in CodeBlob()
88 assert(locs_size == round_to(locs_size, oopSize), "unaligned size"); in CodeBlob()
89 assert(header_size == round_to(header_size, oopSize), "unaligned size"); in CodeBlob()
123 assert(size == round_to(size, oopSize), "unaligned size"); in CodeBlob()
222 size += round_to(buffer_size, oopSize); in create()
311 size += round_to(buffer_size, oopSize); in create()
[all …]
/dports/devel/boost-docs/boost_1_72_0/boost/interprocess/detail/
H A Dutilities.hpp54 inline SizeType get_rounded_size(SizeType orig_size, SizeType round_to) in get_rounded_size() argument
56 return ((orig_size-1)/round_to+1)*round_to; in get_rounded_size()
68 inline SizeType get_rounded_size_po2(SizeType orig_size, SizeType round_to) in get_rounded_size_po2() argument
70 return ((orig_size-1)&(~(round_to-1))) + round_to; in get_rounded_size_po2()
/dports/devel/boost-python-libs/boost_1_72_0/boost/interprocess/detail/
H A Dutilities.hpp54 inline SizeType get_rounded_size(SizeType orig_size, SizeType round_to) in get_rounded_size() argument
56 return ((orig_size-1)/round_to+1)*round_to; in get_rounded_size()
68 inline SizeType get_rounded_size_po2(SizeType orig_size, SizeType round_to) in get_rounded_size_po2() argument
70 return ((orig_size-1)&(~(round_to-1))) + round_to; in get_rounded_size_po2()
/dports/devel/R-cran-BH/BH/inst/include/boost/interprocess/detail/
H A Dutilities.hpp54 inline SizeType get_rounded_size(SizeType orig_size, SizeType round_to) in get_rounded_size() argument
56 return ((orig_size-1)/round_to+1)*round_to; in get_rounded_size()
68 inline SizeType get_rounded_size_po2(SizeType orig_size, SizeType round_to) in get_rounded_size_po2() argument
70 return ((orig_size-1)&(~(round_to-1))) + round_to; in get_rounded_size_po2()
/dports/science/py-scipy/scipy-1.7.1/scipy/_lib/boost/boost/interprocess/detail/
H A Dutilities.hpp54 inline SizeType get_rounded_size(SizeType orig_size, SizeType round_to) in get_rounded_size() argument
56 return ((orig_size-1)/round_to+1)*round_to; in get_rounded_size()
68 inline SizeType get_rounded_size_po2(SizeType orig_size, SizeType round_to) in get_rounded_size_po2() argument
70 return ((orig_size-1)&(~(round_to-1))) + round_to; in get_rounded_size_po2()
/dports/security/keybase/client-v5.7.1/shared/ios/Pods/boost-for-react-native/boost/interprocess/detail/
H A Dutilities.hpp54 inline SizeType get_rounded_size(SizeType orig_size, SizeType round_to) in get_rounded_size() argument
56 return ((orig_size-1)/round_to+1)*round_to; in get_rounded_size()
68 inline SizeType get_rounded_size_po2(SizeType orig_size, SizeType round_to) in get_rounded_size_po2() argument
70 return ((orig_size-1)&(~(round_to-1))) + round_to; in get_rounded_size_po2()
/dports/devel/boost-libs/boost_1_72_0/boost/interprocess/detail/
H A Dutilities.hpp54 inline SizeType get_rounded_size(SizeType orig_size, SizeType round_to) in get_rounded_size() argument
56 return ((orig_size-1)/round_to+1)*round_to; in get_rounded_size()
68 inline SizeType get_rounded_size_po2(SizeType orig_size, SizeType round_to) in get_rounded_size_po2() argument
70 return ((orig_size-1)&(~(round_to-1))) + round_to; in get_rounded_size_po2()
/dports/math/stanmath/math-4.2.0/lib/boost_1.75.0/boost/interprocess/detail/
H A Dutilities.hpp54 inline SizeType get_rounded_size(SizeType orig_size, SizeType round_to) in get_rounded_size() argument
56 return ((orig_size-1)/round_to+1)*round_to; in get_rounded_size()
68 inline SizeType get_rounded_size_po2(SizeType orig_size, SizeType round_to) in get_rounded_size_po2() argument
70 return ((orig_size-1)&(~(round_to-1))) + round_to; in get_rounded_size_po2()
/dports/math/py-pystan/pystan-2.19.0.0/pystan/stan/lib/stan_math/lib/boost_1.69.0/boost/interprocess/detail/
H A Dutilities.hpp54 inline SizeType get_rounded_size(SizeType orig_size, SizeType round_to) in get_rounded_size() argument
56 return ((orig_size-1)/round_to+1)*round_to; in get_rounded_size()
68 inline SizeType get_rounded_size_po2(SizeType orig_size, SizeType round_to) in get_rounded_size_po2() argument
70 return ((orig_size-1)&(~(round_to-1))) + round_to; in get_rounded_size_po2()
/dports/audio/supercollider/SuperCollider-3.11.0-Source/external_libraries/boost/boost/interprocess/detail/
H A Dutilities.hpp54 inline SizeType get_rounded_size(SizeType orig_size, SizeType round_to)
56 return ((orig_size-1)/round_to+1)*round_to;
68 inline SizeType get_rounded_size_po2(SizeType orig_size, SizeType round_to)
70 return ((orig_size-1)&(~(round_to-1))) + round_to;
/dports/devel/hyperscan/boost_1_75_0/boost/interprocess/detail/
H A Dutilities.hpp54 inline SizeType get_rounded_size(SizeType orig_size, SizeType round_to) in get_rounded_size() argument
56 return ((orig_size-1)/round_to+1)*round_to; in get_rounded_size()
68 inline SizeType get_rounded_size_po2(SizeType orig_size, SizeType round_to) in get_rounded_size_po2() argument
70 return ((orig_size-1)&(~(round_to-1))) + round_to; in get_rounded_size_po2()
/dports/math/py-arviz/arviz-0.11.4/arviz/plots/backends/matplotlib/
H A Dposteriorplot.py32 round_to, argument
87 round_to=round_to,
131 round_to=None, argument
136 def format_as_percent(x, round_to=0): argument
137 return "{0:.{1:d}f}%".format(100 * x, round_to)
249 sig_figs = format_sig_figs(point_value, round_to)
279 round_num(hdi_i[0], round_to) + " ",
286 " " + round_num(hdi_i[1], round_to),
/dports/math/py-arviz/arviz-0.11.4/arviz/plots/backends/bokeh/
H A Dposteriorplot.py34 round_to, argument
86 round_to=round_to,
128 round_to: Optional[int] = None,
133 def format_as_percent(x, round_to=0): argument
134 return "{0:.{1:d}f}%".format(100 * x, round_to)
233 sig_figs = format_sig_figs(point_value, round_to)
258 text=list(map(str, map(lambda x: round_num(x, round_to), hdi_i)))
/dports/misc/py-gluonnlp/gluon-nlp-0.10.0/src/gluonnlp/data/batchify/
H A Dbatchify.py30 def _pad_arrs_to_max_length(arrs, pad_axis, pad_val, use_shared_mem, dtype, round_to=None): argument
55 if round_to is not None:
56 max_size = round_to * math.ceil(max_size / round_to)
222 def __init__(self, axis=0, pad_val=None, ret_length=False, dtype=None, round_to=None): argument
231 self._round_to = round_to
277 round_to=self._round_to)

12345678910>>...14