Home
last modified time | relevance | path

Searched refs:arith (Results 1 – 25 of 4416) sorted by relevance

12345678910>>...177

/dports/multimedia/schroedinger/schroedinger-1.0.11/testsuite/coder/
H A Darith_dirac_byte.c83 memset (arith, 0, sizeof(*arith)); in arith_dirac_byte_init()
104 arith->data[arith->offset-1]++; in arith_dirac_byte_flush()
106 arith->data[arith->offset] = 0x00; in arith_dirac_byte_flush()
112 arith->data[arith->offset] = 0xff; in arith_dirac_byte_flush()
117 arith->data[arith->offset] = arith->range0 >> 16; in arith_dirac_byte_flush()
120 arith->data[arith->offset] = arith->range0 >> 8; in arith_dirac_byte_flush()
123 arith->data[arith->offset] = arith->range0 >> 0; in arith_dirac_byte_flush()
171 arith->data[arith->offset-1]++; in arith_dirac_byte_encode()
184 arith->data[arith->offset] = arith->range0 >> 16; in arith_dirac_byte_encode()
235 arith->code |= (arith->data[arith->offset] >> (7-arith->cntr))&1; in arith_dirac_byte_decode()
[all …]
H A Darith_dirac_both.c83 memset (arith, 0, sizeof(*arith)); in arith_dirac_both_init()
106 arith->data[arith->offset-1]++; in arith_dirac_both_flush()
108 arith->data[arith->offset] = 0x00; in arith_dirac_both_flush()
114 arith->data[arith->offset] = 0xff; in arith_dirac_both_flush()
119 arith->data[arith->offset] = arith->range0 >> 16; in arith_dirac_both_flush()
122 arith->data[arith->offset] = arith->range0 >> 8; in arith_dirac_both_flush()
125 arith->data[arith->offset] = arith->range0 >> 0; in arith_dirac_both_flush()
176 arith->data[arith->offset-1]++; in arith_dirac_both_encode()
189 arith->data[arith->offset] = arith->range0 >> 16; in arith_dirac_both_encode()
244 arith->code |= (arith->data[arith->offset] >> (7-arith->cntr))&1; in arith_dirac_both_decode()
[all …]
H A Darith_exp.c126 memset (arith, 0, sizeof(*arith)); in arith_exp_init()
149 arith->data[arith->offset-1]++; in arith_exp_flush()
151 arith->data[arith->offset] = 0x00; in arith_exp_flush()
157 arith->data[arith->offset] = 0xff; in arith_exp_flush()
162 arith->data[arith->offset] = arith->range0 >> 16; in arith_exp_flush()
165 arith->data[arith->offset] = arith->range0 >> 8; in arith_exp_flush()
168 arith->data[arith->offset] = arith->range0 >> 0; in arith_exp_flush()
226 arith->data[arith->offset-1]++; in arith_exp_encode()
239 arith->data[arith->offset] = arith->range0 >> 16; in arith_exp_encode()
301 arith->code |= (arith->data[arith->offset] >> (7-arith->cntr))&1; in arith_exp_decode()
[all …]
H A Darith_dirac_stats.c84 memset (arith, 0, sizeof(*arith)); in arith_dirac_stats_init()
86 arith->code = 0; in arith_dirac_stats_init()
87 arith->range0 = 0; in arith_dirac_stats_init()
89 arith->cntr = 0; in arith_dirac_stats_init()
90 arith->offset = 0; in arith_dirac_stats_init()
105 arith->data[arith->offset] = arith->output_byte; in push_bit()
120 arith->offset++; in arith_dirac_stats_flush()
135 range = arith->range1 - arith->range0 + 1; in arith_dirac_stats_encode()
139 arith->range0 = arith->range0 + range_x_prob; in arith_dirac_stats_encode()
141 arith->range1 = arith->range0 + range_x_prob - 1; in arith_dirac_stats_encode()
[all …]
H A Darith_dirac.c86 memset (arith, 0, sizeof(*arith)); in arith_dirac_init()
88 arith->code = 0; in arith_dirac_init()
89 arith->range0 = 0; in arith_dirac_init()
91 arith->cntr = 0; in arith_dirac_init()
92 arith->offset = 0; in arith_dirac_init()
105 arith->data[arith->offset] = arith->output_byte; in push_bit()
120 arith->offset++; in arith_dirac_flush()
135 range = arith->range1 - arith->range0 + 1; in arith_dirac_encode()
139 arith->range0 = arith->range0 + range_x_prob; in arith_dirac_encode()
141 arith->range1 = arith->range0 + range_x_prob - 1; in arith_dirac_encode()
[all …]
H A Darith_bit.c13 arith_bit_init (Arith *arith) in arith_bit_init() argument
15 memset (arith, 0, sizeof(*arith)); in arith_bit_init()
17 arith->code = 0; in arith_bit_init()
18 arith->range0 = 0; in arith_bit_init()
19 arith->range1 = 0xffff; in arith_bit_init()
20 arith->cntr = 0; in arith_bit_init()
21 arith->offset = 0; in arith_bit_init()
37 arith->output_bits++; in push_bit()
39 arith->data[arith->offset] = arith->output_byte; in push_bit()
40 arith->offset++; in push_bit()
[all …]
/dports/multimedia/schroedinger/schroedinger-1.0.11/schroedinger/
H A Dschroarith.c219 arith->range_size = arith->range[1] - arith->range[0]; in schro_arith_decode_init()
226 arith->dataptr = arith->buffer->data; in schro_arith_decode_init()
249 arith->range_size = arith->range[1] - arith->range[0]; in schro_arith_encode_init()
254 arith->dataptr = arith->buffer->data; in schro_arith_encode_init()
330 arith->dataptr[arith->offset] = arith->range[0] >> 16; in schro_arith_flush()
332 arith->dataptr[arith->offset] = arith->range[0] >> 8; in schro_arith_flush()
335 arith->dataptr[arith->offset] = arith->range[0] >> 0; in schro_arith_flush()
371 arith->code |= arith->shift >> (7 - arith->cntr) & 1; in __schro_arith_decode_bit()
376 arith->shift = arith->dataptr[arith->offset]; in __schro_arith_decode_bit()
422 arith->code |= (arith->dataptr[arith->offset] >> (7 - arith->cntr)) & 1; in __schro_arith_decode_bit()
[all …]
H A Dschroarith.h162 if (arith->offset < arith->buffer->length) { in _schro_arith_decode_bit()
169 if (arith->offset < arith->buffer->length) { in _schro_arith_decode_bit()
170 code_minus_low |= arith->dataptr[arith->offset]; in _schro_arith_decode_bit()
183 arith->probabilities[i] += arith->lut[lut_index | value]; in _schro_arith_decode_bit()
224 arith->range[0] = arith->range[0] + range_x_prob; in _schro_arith_encode_bit()
226 arith->probabilities[i] -= arith->lut[arith->probabilities[i]>>8]; in _schro_arith_encode_bit()
229 arith->probabilities[i] += arith->lut[255-(arith->probabilities[i]>>8)]; in _schro_arith_encode_bit()
243 arith->dataptr[arith->offset-1]++; in _schro_arith_encode_bit()
245 arith->dataptr[arith->offset] = 0x00; in _schro_arith_encode_bit()
251 arith->dataptr[arith->offset] = 0xff; in _schro_arith_encode_bit()
[all …]
/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/mlir/lib/Dialect/Arithmetic/IR/
H A DArithmeticOps.cpp18 using namespace mlir::arith;
39 static arith::CmpIPredicate invertPredicate(arith::CmpIPredicate pred) { in invertPredicate()
41 case arith::CmpIPredicate::eq: in invertPredicate()
43 case arith::CmpIPredicate::ne: in invertPredicate()
45 case arith::CmpIPredicate::slt: in invertPredicate()
47 case arith::CmpIPredicate::sle: in invertPredicate()
49 case arith::CmpIPredicate::sgt: in invertPredicate()
51 case arith::CmpIPredicate::sge: in invertPredicate()
65 static arith::CmpIPredicateAttr invertPredicate(arith::CmpIPredicateAttr pred) { in invertPredicate()
646 bool mlir::arith::applyCmpPredicate(arith::CmpIPredicate predicate, in applyCmpPredicate()
[all …]
/dports/math/cvc4/CVC4-1.7/src/theory/arith/
H A Dkinds7 theory THEORY_ARITH ::CVC4::theory::arith::TheoryArith "theory/arith/theory_arith.h"
8 typechecker "theory/arith/theory_arith_type_rules.h"
13 rewriter ::CVC4::theory::arith::ArithRewriter "theory/arith/arith_rewriter.h"
72 "::CVC4::theory::arith::RationalEnumerator" \
73 "theory/arith/type_enumerator.h"
75 "::CVC4::theory::arith::IntegerEnumerator" \
76 "theory/arith/type_enumerator.h"
93 typerule POW ::CVC4::theory::arith::ArithOperatorTypeRule
97 typerule LT ::CVC4::theory::arith::ArithPredicateTypeRule
99 typerule GT ::CVC4::theory::arith::ArithPredicateTypeRule
[all …]
/dports/misc/py-tvm/incubator-tvm-0.6.1/tests/python/unittest/
H A Dtest_arith_const_int_bound.py20 analyzer = tvm.arith.Analyzer()
39 analyzer = tvm.arith.Analyzer()
53 analyzer = tvm.arith.Analyzer()
80 analyzer = tvm.arith.Analyzer()
103 analyzer = tvm.arith.Analyzer()
126 analyzer = tvm.arith.Analyzer()
151 analyzer = tvm.arith.Analyzer()
173 analyzer = tvm.arith.Analyzer()
197 analyzer = tvm.arith.Analyzer()
224 analyzer = tvm.arith.Analyzer()
[all …]
H A Dtest_arith_intset.py22 self.analyzer = tvm.arith.Analyzer()
35 s = tvm.arith.IntervalSet(2, 3)
44 s = tvm.arith.intset_vector(tvm.make.Ramp(base, stride, lanes))
52 ck.verify(x + y, {x : tvm.arith.IntervalSet(0, 10)}, (y, 10 + y))
54 {x : tvm.arith.IntervalSet(0, 10), y : tvm.arith.IntervalSet(1, 11)},
57 {x : tvm.arith.IntervalSet(0, 10), y : tvm.arith.IntervalSet(1, 11)},
65 ck.verify(x * y, {x : tvm.arith.IntervalSet(0, 10)}, (0, 10 * y))
66 ck.verify(x * 2, {x : tvm.arith.IntervalSet(1, 10)}, (2, 20))
67 ck.verify(x * -2, {x : tvm.arith.IntervalSet(1, 10)}, (-20, -2))
70 ck.verify(tdiv(x, 2), {x : tvm.arith.IntervalSet(1, 10)}, (0, 5))
[all …]
H A Dtest_arith_deduce_bound.py33 b_s = tvm.arith.IntervalSet(2, 3)
34 c_s = tvm.arith.IntervalSet(10, 15)
35 d_s = tvm.arith.IntervalSet(-3, -1)
91 res4 = tvm.arith.DeduceBound(a, a == b, {}, {})
101 res6 = tvm.arith.DeduceBound(a, 10 == a, {}, {})
119 res9 = tvm.arith.DeduceBound(a, e5, {b: b_s}, {})
135 b_s = tvm.arith.IntervalSet(2, 3)
136 c_s = tvm.arith.IntervalSet(5, 7)
137 d_s = tvm.arith.IntervalSet(-3, -1)
155 b_s = tvm.arith.IntervalSet(a1, a2)
[all …]
/dports/misc/tvm/incubator-tvm-0.6.1/tests/python/unittest/
H A Dtest_arith_const_int_bound.py20 analyzer = tvm.arith.Analyzer()
39 analyzer = tvm.arith.Analyzer()
53 analyzer = tvm.arith.Analyzer()
80 analyzer = tvm.arith.Analyzer()
103 analyzer = tvm.arith.Analyzer()
126 analyzer = tvm.arith.Analyzer()
151 analyzer = tvm.arith.Analyzer()
173 analyzer = tvm.arith.Analyzer()
197 analyzer = tvm.arith.Analyzer()
224 analyzer = tvm.arith.Analyzer()
[all …]
H A Dtest_arith_intset.py22 self.analyzer = tvm.arith.Analyzer()
35 s = tvm.arith.IntervalSet(2, 3)
44 s = tvm.arith.intset_vector(tvm.make.Ramp(base, stride, lanes))
52 ck.verify(x + y, {x : tvm.arith.IntervalSet(0, 10)}, (y, 10 + y))
54 {x : tvm.arith.IntervalSet(0, 10), y : tvm.arith.IntervalSet(1, 11)},
57 {x : tvm.arith.IntervalSet(0, 10), y : tvm.arith.IntervalSet(1, 11)},
65 ck.verify(x * y, {x : tvm.arith.IntervalSet(0, 10)}, (0, 10 * y))
66 ck.verify(x * 2, {x : tvm.arith.IntervalSet(1, 10)}, (2, 20))
67 ck.verify(x * -2, {x : tvm.arith.IntervalSet(1, 10)}, (-20, -2))
70 ck.verify(tdiv(x, 2), {x : tvm.arith.IntervalSet(1, 10)}, (0, 5))
[all …]
H A Dtest_arith_deduce_bound.py33 b_s = tvm.arith.IntervalSet(2, 3)
34 c_s = tvm.arith.IntervalSet(10, 15)
35 d_s = tvm.arith.IntervalSet(-3, -1)
91 res4 = tvm.arith.DeduceBound(a, a == b, {}, {})
101 res6 = tvm.arith.DeduceBound(a, 10 == a, {}, {})
119 res9 = tvm.arith.DeduceBound(a, e5, {b: b_s}, {})
135 b_s = tvm.arith.IntervalSet(2, 3)
136 c_s = tvm.arith.IntervalSet(5, 7)
137 d_s = tvm.arith.IntervalSet(-3, -1)
155 b_s = tvm.arith.IntervalSet(a1, a2)
[all …]
/dports/misc/mxnet/incubator-mxnet-1.9.0/3rdparty/tvm/tests/python/unittest/
H A Dtest_arith_const_int_bound.py22 analyzer = tvm.arith.Analyzer()
41 analyzer = tvm.arith.Analyzer()
54 analyzer = tvm.arith.Analyzer()
81 analyzer = tvm.arith.Analyzer()
104 analyzer = tvm.arith.Analyzer()
133 analyzer = tvm.arith.Analyzer()
158 analyzer = tvm.arith.Analyzer()
186 analyzer = tvm.arith.Analyzer()
210 analyzer = tvm.arith.Analyzer()
237 analyzer = tvm.arith.Analyzer()
[all …]
H A Dtest_arith_intset.py23 self.analyzer = tvm.arith.Analyzer()
40 s = tvm.arith.IntervalSet(2, 3)
44 s = tvm.arith.IntSet.single_point(2)
53 s = tvm.arith.IntSet.vector(tvm.tir.Ramp(base, stride, lanes))
61 ck.verify(x + y, {x: tvm.arith.IntervalSet(0, 10)}, (y, 10 + y))
62 ck.verify(x + y, {x: tvm.arith.IntervalSet(0, 10), y: tvm.arith.IntervalSet(1, 11)}, (1, 21))
63 ck.verify(x - y, {x: tvm.arith.IntervalSet(0, 10), y: tvm.arith.IntervalSet(1, 11)}, (-11, 9))
72 ck.verify(x * y, {x: tvm.arith.IntervalSet(0, 10)}, (0, 10 * y))
73 ck.verify(x * 2, {x: tvm.arith.IntervalSet(1, 10)}, (2, 20))
74 ck.verify(x * -2, {x: tvm.arith.IntervalSet(1, 10)}, (-20, -2))
[all …]
H A Dtest_arith_deduce_bound.py28 b_s = tvm.arith.IntervalSet(2, 3)
29 c_s = tvm.arith.IntervalSet(10, 15)
30 d_s = tvm.arith.IntervalSet(-3, -1)
83 res4 = tvm.arith.deduce_bound(a, a == b, {}, {})
93 res6 = tvm.arith.deduce_bound(a, 10 == a, {}, {})
116 res10 = tvm.arith.deduce_bound(
129 b_s = tvm.arith.IntervalSet(2, 3)
130 c_s = tvm.arith.IntervalSet(5, 7)
131 d_s = tvm.arith.IntervalSet(-3, -1)
150 b_s = tvm.arith.IntervalSet(a1, a2)
[all …]
/dports/biology/htslib/htslib-1.14/htscodecs/tests/
H A Darith.test10 comp=${f%/*/*}/dat/arith/${f##*/}
11 cut -f 1 < $f | tr -d '\012' > $out/arith-nl
21 ./arith_dynamic -r -o$o $out/arith-nl $out/arith.comp 2>>$out/arith.stderr || exit 1
22 wc -c < $out/arith.comp
23 ./arith_dynamic -r -d $out/arith.comp $out/arith.uncomp 2>>$out/arith.stderr || exit 1
24 cmp $out/arith-nl $out/arith.uncomp || exit 1
27 ./arith_dynamic -r -d $comp.$o $out/arith.uncomp 2>>$out/arith.stderr || exit 1
28 cmp $out/arith-nl $out/arith.uncomp || exit 1
/dports/sysutils/busybox/busybox-1.26.2/shell/ash_test/ash-arith/
H A Darith.right58 ./arith.tests: line 117: arithmetic syntax error
64 ./arith.tests: line 163: arithmetic syntax error
65 ./arith.tests: line 165: divide by zero
67 ./arith.tests: line 167: arithmetic syntax error
72 ./arith.tests: line 191: arithmetic syntax error
74 ./arith.tests: line 196: arithmetic syntax error
75 ./arith.tests: line 197: malformed ?: operator
76 ./arith.tests: line 198: arithmetic syntax error
78 ./arith.tests: line 205: arithmetic syntax error
79 ./arith.tests: line 208: arithmetic syntax error
[all …]
/dports/shells/bash/bash-5.1/tests/
H A Darith.right83 ./arith.tests: line 162: 3425#56: invalid arithmetic base (error token is "3425#56")
84 ./arith.tests: line 165: 2#: invalid integer constant (error token is "2#")
86 ./arith.tests: line 169: 2#44: value too great for base (error token is "2#44")
87 ./arith.tests: line 170: 44 / 0 : division by 0 (error token is "0 ")
90 ./arith.tests: line 173: let: rv = 7 + (43 * 6: missing `)' (error token is "6")
91 ./arith.tests: line 177: 0#4: invalid number (error token is "0#4")
92 ./arith.tests: line 178: 2#110#11: invalid number (error token is "2#110#11")
100 ./arith.tests: line 196: 4 + : syntax error: operand expected (error token is "+ ")
104 ./arith.tests: line 203: 4 ? 20 : : expression expected (error token is ": ")
254 ./arith.tests: line 314: a b: syntax error in expression (error token is "b")
[all …]
/dports/lang/racket/racket-8.3/src/bc/src/
H A Djitarith.c419 if ((arith == ARITH_SH) || (arith == ARITH_LSH) || (arith == ARITH_LSH_WRAP)) { in generate_arith_slow_path()
711 if (arith) { in generate_float_point_arith()
1406 : (((arith == ARITH_LSH) || (arith == ARITH_LSH_WRAP) || (arith == ARITH_RSH)) in scheme_generate_arith_for()
1420 …&& (arith != ARITH_SH) && (arith != ARITH_LSH) && (arith != ARITH_LSH_WRAP) && (arith != ARITH_RSH) in scheme_generate_arith_for()
1618 …if (((arith == ARITH_DIV) || (arith == ARITH_QUOT) || (arith == ARITH_REM) || (arith == ARITH_MOD)… in scheme_generate_arith_for()
1657 …} else if ((arith == ARITH_DIV) || (arith == ARITH_QUOT) || (arith == ARITH_REM) || (arith == ARIT… in scheme_generate_arith_for()
1745 …} else if ((arith == ARITH_SH) || (arith == ARITH_LSH) || (arith == ARITH_LSH_WRAP) || (arith == A… in scheme_generate_arith_for()
1796 if ((arith == ARITH_SH) || (arith == ARITH_LSH) || (arith == ARITH_LSH_WRAP)) { in scheme_generate_arith_for()
1898 …} else if ((arith == ARITH_SH) || (arith == ARITH_LSH) || (arith == ARITH_LSH_WRAP) || (arith == A… in scheme_generate_arith_for()
2106 if (!arith) { in scheme_generate_arith_for()
[all …]
/dports/lang/racket-minimal/racket-8.3/src/bc/src/
H A Djitarith.c419 if ((arith == ARITH_SH) || (arith == ARITH_LSH) || (arith == ARITH_LSH_WRAP)) { in generate_arith_slow_path()
711 if (arith) { in generate_float_point_arith()
1406 : (((arith == ARITH_LSH) || (arith == ARITH_LSH_WRAP) || (arith == ARITH_RSH)) in scheme_generate_arith_for()
1420 …&& (arith != ARITH_SH) && (arith != ARITH_LSH) && (arith != ARITH_LSH_WRAP) && (arith != ARITH_RSH) in scheme_generate_arith_for()
1618 …if (((arith == ARITH_DIV) || (arith == ARITH_QUOT) || (arith == ARITH_REM) || (arith == ARITH_MOD)… in scheme_generate_arith_for()
1657 …} else if ((arith == ARITH_DIV) || (arith == ARITH_QUOT) || (arith == ARITH_REM) || (arith == ARIT… in scheme_generate_arith_for()
1745 …} else if ((arith == ARITH_SH) || (arith == ARITH_LSH) || (arith == ARITH_LSH_WRAP) || (arith == A… in scheme_generate_arith_for()
1796 if ((arith == ARITH_SH) || (arith == ARITH_LSH) || (arith == ARITH_LSH_WRAP)) { in scheme_generate_arith_for()
1898 …} else if ((arith == ARITH_SH) || (arith == ARITH_LSH) || (arith == ARITH_LSH_WRAP) || (arith == A… in scheme_generate_arith_for()
2106 if (!arith) { in scheme_generate_arith_for()
[all …]
/dports/graphics/netpbm/netpbm-10.91.01/converter/other/fiasco/lib/
H A Darith.c47 arith->low = LOW; in alloc_encoder()
49 arith->underflow = 0; in alloc_encoder()
52 return arith; in alloc_encoder()
70 assert (arith); in free_encoder()
83 Free (arith); in free_encoder()
323 arith->low = LOW; in alloc_decoder()
324 arith->high = HIGH; in alloc_decoder()
328 return arith; in alloc_decoder()
344 assert (arith); in free_decoder()
348 Free (arith); in free_decoder()
[all …]

12345678910>>...177