Home
last modified time | relevance | path

Searched refs:bigint (Results 1 - 25 of 114) sorted by relevance

12345

/third_party/rust/crates/minimal-lexical/src/
H A Dheapvec.rs6 use crate::bigint;
17 data: Vec<bigint::Limb>,
26 data: Vec::with_capacity(bigint::BIGINT_LIMBS), in new()
32 pub fn try_from(x: &[bigint::Limb]) -> Option<Self> { in try_from()
49 debug_assert!(len <= bigint::BIGINT_LIMBS); in set_len()
73 pub fn try_push(&mut self, value: bigint::Limb) -> Option<()> { in try_push()
80 pub fn pop(&mut self) -> Option<bigint::Limb> { in pop()
86 pub fn try_extend(&mut self, slc: &[bigint::Limb]) -> Option<()> { in try_extend()
96 pub fn try_resize(&mut self, len: usize, value: bigint::Limb) -> Option<()> { in try_resize()
106 bigint in hi64()
[all...]
H A Dstackvec.rs6 use crate::bigint;
13 data: [mem::MaybeUninit<bigint::Limb>; bigint::BIGINT_LIMBS],
25 data: [mem::MaybeUninit::uninit(); bigint::BIGINT_LIMBS],
31 pub fn try_from(x: &[bigint::Limb]) -> Option<Self> { in try_from()
50 debug_assert!(len <= bigint::BIGINT_LIMBS); in set_len()
69 bigint::BIGINT_LIMBS as usize
78 pub unsafe fn push_unchecked(&mut self, value: bigint::Limb) { in push_unchecked()
89 pub fn try_push(&mut self, value: bigint::Limb) -> Option<()> { in try_push()
105 pub unsafe fn pop_unchecked(&mut self) -> bigint
[all...]
/third_party/rust/crates/minimal-lexical/tests/
H A Dvec_tests.rs4 use minimal_lexical::bigint;
21 assert_eq!(x.capacity(), bigint::BIGINT_LIMBS); in simple_test()
40 if bigint::LIMB_BITS == 32 { in simple_test()
45 let rview = bigint::rview(&x); in simple_test()
110 let expected: VecType = if bigint::LIMB_BITS == 32 { in math_test()
132 assert_eq!(bigint::scalar_add(5, 5), (10, false)); in scalar_add_test()
133 assert_eq!(bigint::scalar_add(LIMB_MAX, 1), (0, true)); in scalar_add_test()
138 assert_eq!(bigint::scalar_mul(5, 5, 0), (25, 0)); in scalar_mul_test()
139 assert_eq!(bigint::scalar_mul(5, 5, 1), (26, 0)); in scalar_mul_test()
140 assert_eq!(bigint in scalar_mul_test()
[all...]
H A Dstackvec.rs1 use minimal_lexical::bigint;
12 vec.try_push(xi as bigint::Limb).unwrap(); in vec_from_u32()
20 1 => vec.try_push(xi[0] as bigint::Limb).unwrap(), in vec_from_u32()
22 let xi0 = xi[0] as bigint::Limb; in vec_from_u32()
23 let xi1 = xi[1] as bigint::Limb; in vec_from_u32()
/third_party/node/deps/v8/src/objects/
H A Dbigint.cc20 #include "src/objects/bigint.h"
23 #include "src/bigint/bigint.h"
71 static Handle<MutableBigInt> Cast(Handle<FreshlyAllocatedBigInt> bigint) { in Cast() argument
72 SLOW_DCHECK(bigint->IsBigInt()); in Cast()
73 return Handle<MutableBigInt>::cast(bigint); in Cast()
138 static_assert(std::is_same<bigint::digit_t, BigIntBase::digit_t>::value,
152 bigint::Digits GetDigits(BigIntBase bigint) { in GetDigits() argument
153 return bigint in GetDigits()
158 GetDigits(Handle<BigIntBase> bigint) GetDigits() argument
162 GetRWDigits(MutableBigInt bigint) GetRWDigits() argument
168 GetRWDigits(Handle<MutableBigInt> bigint) GetRWDigits() argument
924 ToString(Isolate* isolate, Handle<BigInt> bigint, int radix, ShouldThrow should_throw) ToString() argument
[all...]
H A Dbigint.h18 namespace bigint { namespace
20 } // namespace bigint
34 #include "torque-generated/src/objects/bigint-tq.inc"
153 // https://tc39.github.io/proposal-bigint/#sec-numeric-types
232 static MaybeHandle<String> ToString(Isolate* isolate, Handle<BigInt> bigint,
261 IsolateT* isolate, bigint::FromStringAccumulator* accumulator,
/third_party/node/test/parallel/
H A Dtest-fs-stat-bigint.js98 const startTime = process.hrtime.bigint();
99 const bigintStats = func(arg, common.mustNotMutateObjectDeep({ bigint: true }));
101 const endTime = process.hrtime.bigint();
153 const startTime = process.hrtime.bigint();
154 func(arg, common.mustNotMutateObjectDeep({ bigint: true }), common.mustCall((err, bigintStats) => {
156 const endTime = process.hrtime.bigint();
185 const startTime = process.hrtime.bigint();
186 const bigintStats = await func(arg, common.mustNotMutateObjectDeep({ bigint: true }));
188 const endTime = process.hrtime.bigint();
208 const startTime = process.hrtime.bigint();
[all...]
H A Dtest-fs-statfs.js7 const valueType = isBigint ? 'bigint' : 'number';
23 fs.statfs(__filename, { bigint: true }, function(err, stats) {
37 const statFsBigIntObj = fs.statfsSync(__filename, { bigint: true });
/third_party/node/deps/v8/src/builtins/
H A Dbuiltins-bigint.cc51 Handle<BigInt> bigint; in BUILTIN() local
52 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, bigint, in BUILTIN()
56 BigInt::AsUintN(isolate, bits->Number(), bigint)); in BUILTIN()
69 Handle<BigInt> bigint; in BUILTIN() local
70 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, bigint, in BUILTIN()
73 return *BigInt::AsIntN(isolate, bits->Number(), bigint); in BUILTIN()
H A Dbuiltins-bigint-gen.cc5 #include "src/builtins/builtins-bigint-gen.h"
13 // https://tc39.github.io/proposal-bigint/#sec-to-big-int64
31 // https://tc39.github.io/proposal-bigint/#sec-to-big-int64
40 TNode<BigInt> bigint = ToBigInt(context, value); in TF_BUILTIN() local
45 BigIntToRawBytes(bigint, &var_low, &var_high); in TF_BUILTIN()
49 // https://tc39.github.io/proposal-bigint/#sec-bigint-constructor-number-value
61 // https://tc39.github.io/proposal-bigint/#sec-bigint-constructor-number-value
H A Dbuiltins-bigint-gen.h9 #include "src/objects/bigint.h"
30 void WriteBigIntSignAndLength(TNode<BigInt> bigint, TNode<Uint32T> sign, in WriteBigIntSignAndLength() argument
37 StoreBigIntBitfield(bigint, bitfield); in WriteBigIntSignAndLength()
/third_party/node/benchmark/diagnostics_channel/
H A Dhttp.js47 start: process.hrtime.bigint(),
54 end: process.hrtime.bigint(),
77 start: process.hrtime.bigint(),
85 end: process.hrtime.bigint(),
/third_party/node/deps/v8/src/runtime/
H A Druntime-atomics.cc250 inline uint64_t FromObject<uint64_t>(Handle<Object> bigint) { in FromObject() argument
251 return Handle<BigInt>::cast(bigint)->AsUint64(); in FromObject()
255 inline int64_t FromObject<int64_t>(Handle<Object> bigint) { in FromObject() argument
256 return Handle<BigInt>::cast(bigint)->AsInt64(); in FromObject()
408 Handle<BigInt> bigint; in GetModifySetValueInBuffer() local
409 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, bigint, in GetModifySetValueInBuffer()
416 return Op<int64_t>::Do(isolate, source, index, bigint); in GetModifySetValueInBuffer()
419 return Op<uint64_t>::Do(isolate, source, index, bigint); in GetModifySetValueInBuffer()
475 Handle<BigInt> bigint; in RUNTIME_FUNCTION() local
476 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, bigint, in RUNTIME_FUNCTION()
[all...]
/third_party/node/benchmark/process/
H A Dbench-hrtime.js8 type: ['raw', 'diff', 'bigint'],
13 let noDead = type === 'bigint' ? hrtime.bigint() : hrtime();
30 case 'bigint':
33 noDead = hrtime.bigint();
39 assert.ok(Array.isArray(noDead) || typeof noDead === 'bigint');
/third_party/node/deps/v8/src/execution/
H A Dlocal-isolate.h20 namespace bigint { namespace
118 bigint::Processor* bigint_processor() { in bigint_processor()
162 bigint::Processor* bigint_processor_{nullptr};
H A Dlocal-isolate.cc7 #include "src/bigint/bigint.h"
68 bigint_processor_ = bigint::Processor::New(new bigint::Platform()); in InitializeBigIntProcessor()
/third_party/node/lib/internal/crypto/
H A Drandom.js422 bigint = false,
430 validateBoolean(bigint, 'options.bigint');
433 if (typeof add === 'bigint') {
443 'bigint',
450 if (typeof rem === 'bigint') {
460 'bigint',
467 job.result = bigint ? arrayBufferToUnsignedBigInt : (p) => p;
513 * @return {bigint}
529 function unsignedBigIntToBuffer(bigint, nam
[all...]
/third_party/typescript/tests/baselines/reference/
H A DbigintIndex.js5 [index: bigint]: E; // should error
19 // Show correct usage of bigint index: explicitly convert to string
20 const bigNum: bigint = 0n;
45 // Show correct usage of bigint index: explicitly convert to string
H A DnullPropertyName.js82 foo.bigint = 1;
166 foo.bigint = 1;
249 export var bigint: number;
H A DjsDeclarationsFunctionKeywordPropExhaustive.js82 foo.bigint = 1;
165 foo.bigint = 1;
293 export const bigint: number;
H A DnumericStringLiteralTypes.js4 type T2 = string & `${bigint}`; // `${bigint}
60 type T2 = string & `${bigint}`;
/third_party/node/benchmark/
H A Dcommon.js242 this._time = process.hrtime.bigint();
247 const time = process.hrtime.bigint();
288 function nanoSecondsToString(bigint) {
289 const str = bigint.toString();
/third_party/node/deps/v8/src/interpreter/
H A Dconstant-array-builder.h74 size_t Insert(AstBigInt bigint);
124 explicit Entry(AstBigInt bigint) : bigint_(bigint), tag_(Tag::kBigInt) {} in Entry() argument
/third_party/node/lib/
H A Dfs.js213 if (typeof mode === 'bigint')
606 * @param {number | bigint | null} position
697 * position?: number | bigint | null;
1533 * @param {{ bigint?: boolean; }} [options]
1540 function fstat(fd, options = { bigint: false }, callback) {
1548 const req = new FSReqCallback(options.bigint);
1550 binding.fstat(fd, options.bigint, req);
1557 * @param {{ bigint?: boolean; }} [options]
1564 function lstat(path, options = { bigint: false }, callback) {
1572 const req = new FSReqCallback(options.bigint);
[all...]
/third_party/node/lib/internal/fs/
H A Dpromises.js863 async function fstat(handle, options = { bigint: false }) {
864 const result = await binding.fstat(handle.fd, options.bigint, kUsePromises);
868 async function lstat(path, options = { bigint: false }) {
871 options.bigint, kUsePromises);
875 async function stat(path, options = { bigint: false }) {
878 options.bigint, kUsePromises);
882 async function statfs(path, options = { bigint: false }) {
885 options.bigint, kUsePromises);

Completed in 12 milliseconds

12345