/third_party/python/Modules/_decimal/libmpdec/ |
D | context.c | 93 ctx->traps=MPD_Traps; in mpd_maxcontext() 107 ctx->traps=MPD_Traps; in mpd_defaultcontext() 121 ctx->traps=MPD_Traps|MPD_Clamped; in mpd_basiccontext() 139 ctx->traps=0; in mpd_ieee_context() 175 return ctx->traps; in mpd_gettraps() 243 ctx->traps = flags; in mpd_qsettraps() 282 if (flags&ctx->traps) { in mpd_addstatus_raise() 283 ctx->newtrap = (flags&ctx->traps); in mpd_addstatus_raise()
|
/third_party/python/Lib/test/ |
D | test_decimal.py | 120 prec=9, rounding=ROUND_HALF_EVEN, traps=dict.fromkeys(Signals[m], 0) 389 self.context.traps[exception] = 1 #Catch these bugs... 391 self.context.traps[exception] = 0 405 self.context.traps[error] = 1 415 self.context.traps[error] = 0 425 self.context.traps[error] = 1 435 self.context.traps[error] = 0 440 self.context.traps[error] = 1 452 self.context.traps[error] = 0 582 c.traps[InvalidOperation] = True [all …]
|
/third_party/node/deps/icu-small/source/i18n/ |
D | decContext.cpp | 71 context->traps=DEC_Errors; /* all but informational */ in uprv_decContextDefault() 86 context->traps=0; /* no traps set */ in uprv_decContextDefault() 97 context->traps=0; /* no traps set */ in uprv_decContextDefault() 108 context->traps=0; /* no traps set */ in uprv_decContextDefault() 207 if (status & context->traps) raise(SIGFPE); in uprv_decContextSetStatus()
|
D | decContext.h | 95 uint32_t traps; /* trap-enabler flags */ member
|
/third_party/icu/icu4c/source/i18n/ |
D | decContext.cpp | 71 context->traps=DEC_Errors; /* all but informational */ in uprv_decContextDefault() 86 context->traps=0; /* no traps set */ in uprv_decContextDefault() 97 context->traps=0; /* no traps set */ in uprv_decContextDefault() 108 context->traps=0; /* no traps set */ in uprv_decContextDefault() 207 if (status & context->traps) raise(SIGFPE); in uprv_decContextSetStatus()
|
D | decContext.h | 95 uint32_t traps; /* trap-enabler flags */ member
|
D | number_utils.cpp | 98 fContext.traps = 0; // no traps, thank you (what does this even mean?) in DecNum()
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | decContext.cpp | 71 context->traps=DEC_Errors; /* all but informational */ in uprv_decContextDefault() 86 context->traps=0; /* no traps set */ in uprv_decContextDefault() 97 context->traps=0; /* no traps set */ in uprv_decContextDefault() 108 context->traps=0; /* no traps set */ in uprv_decContextDefault() 207 if (status & context->traps) raise(SIGFPE); in uprv_decContextSetStatus()
|
D | decContext.h | 95 uint32_t traps; /* trap-enabler flags */ member
|
D | number_utils.cpp | 98 fContext.traps = 0; // no traps, thank you (what does this even mean?) in DecNum()
|
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/ |
D | SpirvShaderDebugger.cpp | 1036 } traps; member 1288 uint8_t *traps = nullptr; member in sw::SpirvShader::Impl::Debugger::State 1400 ASSERT(traps.byIndex.size() == traps.byLocationAndScope.size()); in finalize() 1401 traps.memory = std::make_unique<uint8_t[]>(traps.byIndex.size()); in finalize() 1434 int index = getOrCreate(traps.byLocationAndScope, locationAndScope, [&] { in setLocation() 1435 traps.byIndex.emplace_back(locationAndScope); in setLocation() 1436 return traps.byIndex.size() - 1; in setLocation() 1445 getOrCreate(traps.byFunctionName, func->name, [&] { return index; }); in setLocation() 1454 auto traps = *Pointer<Pointer<Byte>>(dbgState + OFFSET(Impl::Debugger::State, traps)); in setLocation() local 1455 auto trap = Pointer<Byte>(traps)[index]; in setLocation() [all …]
|
/third_party/python/Modules/_decimal/ |
D | _decimal.c | 83 PyObject *traps; member 485 if (status & (ctx->traps|MPD_Malloc_error)) { in dec_addstatus() 493 ex = flags_as_exception(ctx->traps&status); in dec_addstatus() 497 siglist = flags_as_list(ctx->traps&status); in dec_addstatus() 745 Dec_CONTEXT_GET_ULONG(traps) in Dec_CONTEXT_GET_SSIZE() 1121 retval = ((PyDecContextObject *)self)->traps; in context_getattr() 1159 CTX(self)->traps = 0; in context_clear_traps() 1196 self->traps = PyObject_CallObject((PyObject *)PyDecSignalDict_Type, NULL); in context_new() 1197 if (self->traps == NULL) { in context_new() 1217 SdFlagAddr(self->traps) = &ctx->traps; in context_new() [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/numeric/ |
D | int128.h | 283 static constexpr bool traps = numeric_limits<unsigned __int128>::traps; variable 285 static constexpr bool traps = numeric_limits<uint64_t>::traps; variable 518 static constexpr bool traps = numeric_limits<__int128>::traps; variable 520 static constexpr bool traps = numeric_limits<uint64_t>::traps; variable
|
D | int128.cc | 357 constexpr bool numeric_limits<absl::uint128>::traps; member in std::numeric_limits<absl::uint128> 381 constexpr bool numeric_limits<absl::int128>::traps; member in std::numeric_limits<absl::int128>
|
/third_party/python/Lib/ |
D | _pydecimal.py | 2478 newcontext.traps[exception] = 0 3889 capitals=None, clamp=None, flags=None, traps=None, argument 3910 if traps is None: 3911 self.traps = dc.traps.copy() 3912 elif not isinstance(traps, dict): 3913 self.traps = dict((s, int(s in traps)) for s in _signals + traps) 3915 self.traps = traps 3980 traps = [sig for sig, v in self.traps.items() if v] 3983 self.capitals, self.clamp, flags, traps)) 3994 names = [t.__name__ for t, v in self.traps.items() if v] [all …]
|
/third_party/python/Modules/_decimal/tests/ |
D | deccheck.py | 200 self.settraps([sig for sig in self.c.traps if self.c.traps[sig]]) 264 for trap in self.p.traps: 265 self.p.traps[trap] = False 275 self.c.traps[signal] = True 276 self.p.traps[CondMap[signal]] = True 311 maxcontext.traps = copy(context.p.traps)
|
/third_party/python/Doc/library/ |
D | decimal.rst | 129 precision, rounding, or enabled traps:: 134 capitals=1, clamp=0, flags=[], traps=[Overflow, DivisionByZero, 168 >>> c.traps[FloatOperation] = True 272 former is especially useful for debugging because many of the traps are 285 capitals=1, clamp=0, flags=[], traps=[]) 310 capitals=1, clamp=0, flags=[Inexact, Rounded], traps=[]) 316 Individual traps are set using the dictionary in the :attr:`traps` field of a 324 >>> getcontext().traps[DivisionByZero] = 1 388 malformed string. If the context traps :const:`InvalidOperation`, an exception 953 :const:`ROUND_HALF_UP`. All flags are cleared. All traps are enabled (treated [all …]
|
/third_party/python/Modules/_decimal/libmpdec/examples/ |
D | sqrt.c | 51 ctx.traps = 0; in main()
|
D | shift.c | 51 ctx.traps = 0; in main()
|
D | multiply.c | 51 ctx.traps = 0; in main()
|
D | compare.c | 51 ctx.traps = 0; in main()
|
D | div.c | 51 ctx.traps = 0; in main()
|
D | pow.c | 51 ctx.traps = 0; in main()
|
D | powmod.c | 51 ctx.traps = 0; in main()
|
D | divmod.c | 51 ctx.traps = 0; in main()
|