/dports/devel/py-numba/numba-0.51.2/numba/core/typeconv/ |
H A D | typeconv.py | 43 def check_compatible(self, fromty, toty): argument 44 if not isinstance(toty, types.Type): 46 (toty, type(toty))) 52 def set_compatible(self, fromty, toty, by): argument 58 self._types.add(toty) 60 def set_promote(self, fromty, toty): argument 61 self.set_compatible(fromty, toty, Conversion.promote) 63 def set_unsafe_convert(self, fromty, toty): argument 64 self.set_compatible(fromty, toty, Conversion.unsafe) 66 def set_safe_convert(self, fromty, toty): argument [all …]
|
/dports/devel/py-numba/numba-0.51.2/numba/tests/ |
H A D | test_typedobjectutils.py | 32 for fromty, toty in warn_cases: 33 with self.subTest(fromty=fromty, toty=toty): 35 _sentry_safe_cast(fromty, toty) 39 "unsafe cast from {} to {}".format(fromty, toty), 63 for fromty, toty in ok_cases: 64 with self.subTest(fromty=fromty, toty=toty): 66 _sentry_safe_cast(fromty, toty)
|
H A D | test_numconv.py | 7 def template(fromty, toty): argument 13 cres = compile_isolated(cast, args=[fromty], return_type=toty) 29 for fromty, toty in itertools.permutations(tys, r=2): 31 toty=toty) 32 setattr(cls, test_name, template(fromty, toty))
|
/dports/devel/py-numba/numba-0.51.2/numba/typed/ |
H A D | typedobjectutils.py | 38 def _sentry_safe_cast(fromty, toty): argument 42 fromty, toty = map(types.unliteral, (fromty, toty)) 43 by = tyctxt.can_convert(fromty, toty) 47 warnings.warn(m.format(fromty, toty), 56 if isint(fromty) and isint(toty): 59 elif isint(fromty) and isflt(toty): 62 elif isflt(fromty) and isflt(toty): 65 elif iscmplx(fromty) and iscmplx(toty): 68 elif isdict(fromty) and isdict(toty): 70 elif not isinstance(toty, types.Number): [all …]
|
H A D | dictobject.py | 1283 def cast_LiteralStrKeyDict_LiteralStrKeyDict(context, builder, fromty, toty, argument 1287 toty.literal_value.items()): 1299 toty = types.Tuple(toty.types) 1302 for v, f, t in zip(olditems, fromty, toty)] 1303 return context.make_tuple(builder, toty, items) 1307 def cast_DictType_DictType(context, builder, fromty, toty, val): argument
|
/dports/devel/py-numba/numba-0.51.2/numba/core/ |
H A D | optional.py | 73 def optional_to_optional(context, builder, fromty, toty, val): argument 85 outoptval = context.make_helper(builder, toty) 92 fromty.type, toty.type) 104 def any_to_optional(context, builder, fromty, toty, val): argument 106 return context.make_optional_none(builder, toty.type) 108 val = context.cast(builder, val, fromty, toty.type) 109 return context.make_optional_value(builder, toty.type, val) 114 def optional_to_any(context, builder, fromty, toty, val): argument 121 return context.cast(builder, optval.data, fromty.type, toty)
|
H A D | base.py | 703 def cast(self, builder, val, fromty, toty): argument 709 if fromty == toty or toty == types.Any: 712 impl = self._casts.find((fromty, toty)) 713 return impl(self, builder, fromty, toty, val) 716 "Cannot cast %s to %s: %s" % (fromty, toty, val))
|
/dports/devel/py-numba/numba-0.51.2/numba/experimental/ |
H A D | function_type.py | 244 context, builder, fromty, toty, val): argument 249 def lower_cast_dispatcher_to_function_type(context, builder, fromty, toty, val): argument 250 toty = toty.get_precise() 253 sfunc = cgutils.create_struct_proxy(toty)(context, builder) 257 context, builder, val, toty.signature,
|
/dports/devel/py-numba/numba-0.51.2/numba/cpython/ |
H A D | numbers.py | 1240 if toty.bitwidth == fromty.bitwidth: 1243 elif toty.bitwidth < fromty.bitwidth: 1258 def float_to_float(context, builder, fromty, toty, val): argument 1259 lty = context.get_value_type(toty) 1260 if fromty.bitwidth < toty.bitwidth: 1267 lty = context.get_value_type(toty) 1275 lty = context.get_value_type(toty) 1276 if toty.signed: 1287 cmplx = context.make_complex(builder, toty) 1295 dstty = toty.underlying_float [all …]
|
H A D | charseq.py | 169 def bytes_to_charseq(context, builder, fromty, toty, val): argument 174 lty = context.get_value_type(toty) 179 dst_length = ir.Constant(src_length.type, toty.count) 186 toty.count), 0) 214 def charseq_to_bytes(context, builder, fromty, toty, val): argument 223 def unicode_to_bytes_cast(context, builder, fromty, toty, val): argument 253 def unicode_to_unicode_charseq(context, builder, fromty, toty, val): argument 266 lty = context.get_value_type(toty) 271 dst_length = ir.Constant(src_length.type, toty.count) 296 % (unicode_byte_width * 8, toty))) [all …]
|
H A D | enumimpl.py | 48 def int_enum_to_int(context, builder, fromty, toty, val): argument 52 return context.cast(builder, val, fromty.dtype, toty)
|
H A D | tupleobj.py | 380 def tuple_to_tuple(context, builder, fromty, toty, val): argument 382 or isinstance(toty, types.BaseNamedTuple)): 386 if len(fromty) != len(toty): 392 for v, f, t in zip(olditems, fromty, toty)] 393 return context.make_tuple(builder, toty, items)
|
H A D | builtins.py | 129 def any_to_deferred(context, builder, fromty, toty, val): argument 130 actual = context.cast(builder, val, fromty, toty.get()) 131 model = context.data_model_manager[toty] 137 def deferred_to_any(context, builder, fromty, toty, val): argument 140 return context.cast(builder, val, fromty.get(), toty)
|
/dports/devel/py-numba/numba-0.51.2/numba/core/typing/ |
H A D | context.py | 503 def can_convert(self, fromty, toty): argument 509 if fromty == toty: 514 conv = self.tm.check_compatible(fromty, toty) 519 forward = fromty.can_convert_to(self, toty) 520 backward = toty.can_convert_from(self, fromty) 664 conv = self.can_convert(fromty=first, toty=second) 669 conv = self.can_convert(fromty=second, toty=first)
|
/dports/devel/notcurses/notcurses-3.0.1/src/lib/ |
H A D | direct.c | 430 const unsigned toty = ncdirect_dim_y(n); in ncdirect_dump_sprixel() local 439 if(toty - dimy < *y){ in ncdirect_dump_sprixel() 441 if(toty <= dimy){ in ncdirect_dump_sprixel() 444 *y = toty - dimy; in ncdirect_dump_sprixel() 517 const unsigned toty = ncdirect_dim_y(n); in ncdirect_dump_cellplane() local 558 if(y == toty){ in ncdirect_dump_cellplane() 605 const int toty = ncdirect_dim_y(n); in ncdirect_dump_plane() local 606 if(targy > toty){ in ncdirect_dump_plane() 607 targy = toty; in ncdirect_dump_plane()
|
/dports/net/zebra-server/idzebra-2.0.55/rset/ |
H A D | rsmultiandor.c | 244 double cur, totx, toty; in compare_ands() local 246 rset_pos(hy->fd, &cur, &toty); in compare_ands() 247 if (totx > toty + 0.5) in compare_ands() 249 if (totx < toty - 0.5) in compare_ands()
|
/dports/lang/nwcc/nwcc_0.8.3/ |
H A D | expr.c | 792 conv_init(struct tyval *tv, struct type *toty, struct token *t) { argument 797 if (toty->tlist == NULL) { 803 if (toty->code != fromty->code) { 804 cross_do_conv(tv, toty->code, 1); 810 (toty->code != fromty->code 811 && (toty->code != TY_VOID && fromty->code != TY_VOID))) { 817 /* XXX */ && (!IS_CHAR(toty->code) || !IS_CHAR(fromty->code)))) { 838 if (toty->code == TY_VOID 839 && toty->tlist->type == TN_POINTER_TO 840 && toty->tlist->next == NULL) { [all …]
|
/dports/lang/nwcc/nwcc_0.8.3/cpp/ |
H A D | expr.c | 785 conv_init(struct tyval *tv, struct type *toty, struct token *t) { argument 790 if (toty->tlist == NULL) { 796 if (toty->code != fromty->code) { 797 cross_do_conv(tv, toty->code, 1); 803 (toty->code != fromty->code 804 && (toty->code != TY_VOID && fromty->code != TY_VOID))) { 810 /* XXX */ && (!IS_CHAR(toty->code) || !IS_CHAR(fromty->code)))) { 831 if (toty->code == TY_VOID 832 && toty->tlist->type == TN_POINTER_TO 833 && toty->tlist->next == NULL) { [all …]
|
/dports/multimedia/gstreamer1-libav/gst-libav-1.16.2/gst-libs/ext/libav/libavfilter/ |
H A D | vf_signalstats.c | 574 int toty = 0, totu = 0, totv = 0, totsat=0; in filter_frame8() local 676 toty += histy[fil] * fil; in filter_frame8() 720 SET_META("YAVG", "%g", 1.0 * toty / s->fs); in filter_frame8() 792 int64_t toty = 0, totu = 0, totv = 0, totsat=0; in filter_frame16() local 898 toty += histy[fil] * fil; in filter_frame16() 937 SET_META("YAVG", "%g", 1.0 * toty / s->fs); in filter_frame16()
|
/dports/emulators/vice/vice-3.5/src/lib/libffmpeg/libavfilter/ |
H A D | vf_signalstats.c | 282 int toty = 0, totu = 0, totv = 0, totsat=0; in filter_frame() local 363 toty += histy[fil] * fil; in filter_frame() 407 SET_META("YAVG", "%g", 1.0 * toty / s->fs); in filter_frame()
|
/dports/emulators/libretro-vice/vice-libretro-5725415/vice/src/lib/libffmpeg/libavfilter/ |
H A D | vf_signalstats.c | 282 int toty = 0, totu = 0, totv = 0, totsat=0; in filter_frame() local 363 toty += histy[fil] * fil; in filter_frame() 407 SET_META("YAVG", "%g", 1.0 * toty / s->fs); in filter_frame()
|
/dports/devel/py-numba/numba-0.51.2/docs/source/extending/ |
H A D | low-level.rst | 131 is called with five arguments ``(context, builder, fromty, toty, value)``. 132 *fromty* and *toty* are the concrete types being converted from and to, 134 must return a value compatible with the type ``toty``.
|
/dports/multimedia/ffmpeg/ffmpeg-4.4.1/libavfilter/ |
H A D | vf_signalstats.c | 572 int toty = 0, totu = 0, totv = 0, totsat=0; in filter_frame8() local 678 toty += histy[fil] * fil; in filter_frame8() 722 SET_META("YAVG", "%g", 1.0 * toty / s->fs); in filter_frame8() 794 int64_t toty = 0, totu = 0, totv = 0, totsat=0; in filter_frame16() local 900 toty += histy[fil] * fil; in filter_frame16() 939 SET_META("YAVG", "%g", 1.0 * toty / s->fs); in filter_frame16()
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/ffmpeg/libavfilter/ |
H A D | vf_signalstats.c | 574 int toty = 0, totu = 0, totv = 0, totsat=0; in filter_frame8() local 676 toty += histy[fil] * fil; in filter_frame8() 720 SET_META("YAVG", "%g", 1.0 * toty / s->fs); in filter_frame8() 792 int64_t toty = 0, totu = 0, totv = 0, totsat=0; in filter_frame16() local 898 toty += histy[fil] * fil; in filter_frame16() 937 SET_META("YAVG", "%g", 1.0 * toty / s->fs); in filter_frame16()
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/ffmpeg/libavfilter/ |
H A D | vf_signalstats.c | 572 int toty = 0, totu = 0, totv = 0, totsat=0; in filter_frame8() local 678 toty += histy[fil] * fil; in filter_frame8() 722 SET_META("YAVG", "%g", 1.0 * toty / s->fs); in filter_frame8() 794 int64_t toty = 0, totu = 0, totv = 0, totsat=0; in filter_frame16() local 900 toty += histy[fil] * fil; in filter_frame16() 939 SET_META("YAVG", "%g", 1.0 * toty / s->fs); in filter_frame16()
|