/third_party/decimal.js/test/modules/ |
H A D | config.js | 23 modulo {number} [0, 9] 45 modulo: 1 55 t(Decimal.modulo === 1); 65 modulo: 4 75 t(Decimal.modulo === 4); 302 // modulo 306 T.assertEqual(expected, Decimal.modulo); 309 t(4, {modulo: void 0}); 310 t(0, {modulo: 0}); 311 t(1, {modulo [all...] |
H A D | mod.js | 3 T('modulo', function () { 16 modulo: 1 821 modulo mode. 836 Decimal.modulo = 1; 852 Decimal.modulo = 3; 868 Decimal.modulo = 9; 884 Decimal.modulo = 6; 905 Decimal.modulo = 1;
|
H A D | Decimal.js | 13 modulo: 1
|
/third_party/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
H A D | BOCSU.java | 55 * number of byte values available, the modulo is used for one trail 232 * Integer division and modulo with negative numerators 233 * yields negative modulo results and quotients that are one more than 237 * @return (result of division) << 32 | modulo 241 int modulo = number % factor; in getNegDivMod() 243 if (modulo < 0) { in getNegDivMod() 245 modulo += factor; in getNegDivMod() 247 return (result << 32) | modulo; in getNegDivMod() 295 int modulo = (int)division; in writeDiff() 299 buffer[offset ++] = (byte)(SLOPE_MIN_ + modulo); in writeDiff() [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/coll/ |
H A D | BOCSU.java | 56 * number of byte values available, the modulo is used for one trail 233 * Integer division and modulo with negative numerators 234 * yields negative modulo results and quotients that are one more than 238 * @return (result of division) << 32 | modulo 242 int modulo = number % factor; in getNegDivMod() 244 if (modulo < 0) { in getNegDivMod() 246 modulo += factor; in getNegDivMod() 248 return (result << 32) | modulo; in getNegDivMod() 296 int modulo = (int)division; in writeDiff() 300 buffer[offset ++] = (byte)(SLOPE_MIN_ + modulo); in writeDiff() [all...] |
/third_party/libwebsockets/lib/core/ |
H A D | lws_map.c | 35 /* array of info.modulo x lws_map_hashtable_t overallocated */ 111 size_t modulo = info->modulo; in lws_map_create() local 118 if (!modulo) in lws_map_create() 119 modulo = 8; in lws_map_create() 121 size = sizeof(*map) + (modulo * sizeof(lws_map_hashtable_t)); in lws_map_create() 131 map->info.modulo = modulo; in lws_map_create() 140 while (modulo--) in lws_map_create() 141 ht[modulo] in lws_map_create() [all...] |
/third_party/node/deps/openssl/openssl/crypto/sha/asm/ |
H A D | sha256-c64xplus.pl | 167 || LDW *${Xib}[1],$Xn ; modulo-scheduled 172 || LDW *${Xib}[2],$X1 ; modulo-scheduled 193 || MV $Xn,$X0 ; modulo-scheduled 194 || LDW *$Xia,$X9 ; modulo-scheduled 195 || ROTL $X1,25,$t0e ; modulo-scheduled 196 || ROTL $X14,15,$t0a ; modulo-scheduled 197 SHRU $X1,3,$s0 ; modulo-scheduled 198 || SHRU $X14,10,$s1 ; modulo-scheduled 205 || ROTL $X1,14,$t1e ; modulo-scheduled 206 || ROTL $X14,13,$t1a ; modulo [all...] |
/third_party/openssl/crypto/sha/asm/ |
H A D | sha256-c64xplus.pl | 167 || LDW *${Xib}[1],$Xn ; modulo-scheduled 172 || LDW *${Xib}[2],$X1 ; modulo-scheduled 193 || MV $Xn,$X0 ; modulo-scheduled 194 || LDW *$Xia,$X9 ; modulo-scheduled 195 || ROTL $X1,25,$t0e ; modulo-scheduled 196 || ROTL $X14,15,$t0a ; modulo-scheduled 197 SHRU $X1,3,$s0 ; modulo-scheduled 198 || SHRU $X14,10,$s1 ; modulo-scheduled 205 || ROTL $X1,14,$t1e ; modulo-scheduled 206 || ROTL $X14,13,$t1a ; modulo [all...] |
/third_party/skia/third_party/externals/tint/src/transform/ |
H A D | zero_init_workgroup_memory.cc | 52 /// the form: `array_index = (local_invocation_index % modulo) / division` 55 uint32_t modulo = 1; member 63 return modulo == i.modulo && division == i.division; in operator ==() 71 return utils::Hash(i.modulo, i.division); in operator ()() 313 // `(idx % modulo) / division` in BuildZeroingStatements() 314 auto modulo = num_values * arr->Count(); in BuildZeroingStatements() 316 auto a = get_expr(modulo); in BuildZeroingStatements() 318 array_indices.add(ArrayIndex{modulo, division}); in BuildZeroingStatements() 320 utils::GetOrCreate(array_index_names, ArrayIndex{modulo, divisio in BuildZeroingStatements() [all...] |
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/ |
H A D | ComputeProgram.cpp | 124 idx -= localInvocationID[Z] * SIMD::Int(workgroupSizeX * workgroupSizeY); // modulo in setSubgroupBuiltins() 126 idx -= localInvocationID[Y] * SIMD::Int(workgroupSizeX); // modulo in setSubgroupBuiltins() 256 auto modulo = groupIndex; in run() 257 auto groupOffsetZ = modulo / (groupCountX * groupCountY); in run() 258 modulo -= groupOffsetZ * (groupCountX * groupCountY); in run() 259 auto groupOffsetY = modulo / groupCountX; in run() 260 modulo -= groupOffsetY * groupCountX; in run() 261 auto groupOffsetX = modulo; in run()
|
/third_party/node/lib/internal/ |
H A D | webidl.js | 64 // https://tc39.es/ecma262/#eqn-modulo 65 // The notation “x modulo y” computes a value k of the same sign as y. 66 function modulo(x, y) { function 150 // 10. Set x to x modulo 2^bitLength. 151 x = modulo(x, pow2(bitLength));
|
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_lower_idiv.c | 124 emit_udiv(nir_builder *bld, nir_ssa_def *numer, nir_ssa_def *denom, bool modulo) in emit_udiv() argument 141 if (!modulo) { in emit_udiv() 150 if (modulo) { in emit_udiv()
|
/third_party/jerryscript/jerry-core/ecma/builtin-objects/ |
H A D | ecma-builtin-helpers-date.c | 75 ecma_number_t modulo = fmod (time, ECMA_DATE_MS_PER_DAY); in ecma_date_time_within_day() local 76 if (modulo < 0) in ecma_date_time_within_day() 78 modulo += ECMA_DATE_MS_PER_DAY; in ecma_date_time_within_day() 81 return modulo; in ecma_date_time_within_day()
|
/third_party/node/deps/npm/node_modules/ip-address/node_modules/sprintf-js/dist/ |
H A D | sprintf.min.js | 2 !function(){"use strict";var g={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function y(e){return function(e,t){var r,n,i,s,a,o,p,c,l,u=1,f=e.length,d="";for(n=0;n<f;n++)if("string"==typeof e[n])d+=e[n];else if("object"==typeof e[n]){if((s=e[n]).keys)for(r=t[u],i=0;i<s.keys.length;i++){if(null==r)throw new Error(y('[sprintf] Cannot access property "%s" of undefined value "%s"',s.keys[i],s.keys[i-1]));r=r[s.keys[i]]}else r=s.param_no?t[s.param_no]:t[u++];if(g.not_type.test(s.type)&&g.not_primitive.test(s.type)&&r instanceof Function&&(r=r()),g.numeric_arg.test(s.type)&&"number"!=typeof r&&isNaN(r))throw new TypeError(y("[sprintf] expecting number but found %T",r));switch(g.number.test(s.type)&&(c=0<=r),s.type){case"b":r=parseInt(r,10).toString(2);break;case"c":r=String.fromCharCode(parseInt(r,10));break;case"d":case"i":r=parseInt(r,10);break;case"j":r=JSON.stringify(r,null,s.width?parseInt(s.width):0);break;case"e":r=s.precision?parseFloat(r).toExponential(s.precision):parseFloat(r).toExponential();break;case"f":r=s.precision?parseFloat(r).toFixed(s.precision):parseFloat(r);break;case"g":r=s.precision?String(Number(r.toPrecision(s.precision))):parseFloat(r);break;case"o":r=(parseInt(r,10)>>>0).toString(8);break;case"s":r=String(r),r=s.precision?r.substring(0,s.precision):r;break;case"t":r=String(!!r),r=s.precision?r.substring(0,s.precision):r;break;case"T":r=Object.prototype.toString.call(r).slice(8,-1).toLowerCase(),r=s.precision?r.substring(0,s.precision):r;break;case"u":r=parseInt(r,10)>>>0;break;case"v":r=r.valueOf(),r=s.precision?r.substring(0,s.precision):r;break;case"x":r=(parseInt(r,10)>>>0).toString(16);break;case"X":r=(parseInt(r,10)>>>0).toString(16).toUpperCase()}g.json.test(s.type)?d+=r:(!g.number.test(s.type)||c&&!s.sign?l="":(l=c?"+":"-",r=r.toString().replace(g.sign,"")),o=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",p=s.width-(l+r).length,a=s.width&&0<p?o.repeat(p):"",d+=s.align?l+r+a:"0"===o?l+a+r:a+l+r)}return d}(function(e){if(p[e])return p[e];var t,r=e,n=[],i=0;for(;r;){if(null!==(t=g.text.exec(r)))n.push(t[0]);else if(null!==(t=g.modulo.exec(r)))n.push("%");else{if(null===(t=g.placeholder.exec(r)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){i|=1;var s=[],a=t[2],o=[];if(null===(o=g.key.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(s.push(o[1]);""!==(a=a.substring(o[0].length));)if(null!==(o=g.key_access.exec(a)))s.push(o[1]);else{if(null===(o=g.index_access.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");s.push(o[1])}t[2]=s}else i|=2;if(3===i)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");n.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}r=r.substring(t[0].length)}return p[e]=n}(e),arguments)}function e(e,t){return y.apply(null,[e].concat(t||[]))}var p=Object.create(null);"undefined"!=typeof exports&&(exports.sprintf=y,exports.vsprintf=e),"undefined"!=typeof window&&(window.sprintf=y,window.vsprintf=e,"function"==typeof define&&define.amd&&define(function(){return{sprintf:y,vsprintf:e}}))}();
|
/third_party/ffmpeg/libavfilter/ |
H A D | af_headphone.c | 160 const uint32_t modulo = (uint32_t)buffer_length - 1; in headphone_convolute() local 187 read = (wr - (ir_len - 1)) & modulo; in headphone_convolute() 206 wr = (wr + 1) & modulo; in headphone_convolute() 229 const uint32_t modulo = (uint32_t)buffer_length - 1; in headphone_fast_convolute() local 250 wr = (wr + 1) & modulo; in headphone_fast_convolute() 297 int write_pos = (wr + j) & modulo; in headphone_fast_convolute()
|
H A D | af_sofalizer.c | 354 const uint32_t modulo = (uint32_t)buffer_length - 1; in sofalizer_convolute() local 401 read = (wr - delay[l] - (ir_samples - 1) + buffer_length) & modulo; in sofalizer_convolute() 424 wr = (wr + 1) & modulo; /* update ringbuffer write position */ in sofalizer_convolute() 450 const uint32_t modulo = (uint32_t)buffer_length - 1; in sofalizer_fast_convolute() local 477 wr = (wr + 1) & modulo; in sofalizer_fast_convolute() 553 int write_pos = (wr + j) & modulo; in sofalizer_fast_convolute()
|
/third_party/node/deps/npm/node_modules/ip-address/node_modules/sprintf-js/src/ |
H A D | sprintf.js | 16 modulo: /^\x25{2}/, 154 else if ((match = re.modulo.exec(_fmt)) !== null) {
|
/third_party/python/Lib/ |
H A D | _pydecimal.py | 1976 def _power_modulo(self, other, modulo, context=None): 1982 modulo = _convert_other(modulo) 1983 if modulo is NotImplemented: 1984 return modulo 1993 modulo_is_nan = modulo._isnan() 2003 modulo) 2008 return modulo._fix_nan(context) 2013 modulo._isinteger()): 2021 if not modulo [all...] |
/third_party/libwebsockets/include/libwebsockets/ |
H A D | lws-map.h | 33 * of hash tables whose size / modulo it set at creation time. 74 size_t modulo; member 105 * \p info may be all zeros inside, if so, modulo defaults to 8, and the
|
/third_party/node/deps/v8/src/objects/ |
H A D | js-temporal-objects.cc | 330 inline int64_t modulo(int64_t a, int64_t b) { in modulo() function 1002 // 1. Let remainderNs be epochNanoseconds modulo 10^6. in GetISOPartsFromEpoch() 1063 // 10. Let microsecond be floor(remainderNs / 1000) modulo 1000. in GetISOPartsFromEpoch() 1068 // 11. Let nanosecond be remainderNs modulo 1000. in GetISOPartsFromEpoch() 2215 // 3. Let nanoseconds be offsetNanoseconds modulo 10^9. in FormatTimeZoneOffsetString() 2217 // 4. Let seconds be floor(offsetNanoseconds / 10^9) modulo 60. in FormatTimeZoneOffsetString() 2219 // 5. Let minutes be floor(offsetNanoseconds / (6 × 10^10)) modulo 60. in FormatTimeZoneOffsetString() 3685 // b. Set nanoseconds to nanoseconds modulo 1000. in BalanceDuration() 3686 *nanoseconds = modulo(*nanoseconds, 1000); in BalanceDuration() 3689 // d. Set microseconds to microseconds modulo 100 in BalanceDuration() [all...] |
/third_party/openssl/test/ |
H A D | bntest.c | 1124 * congruent to $a^{(b-1)/2}$, modulo $b$ (Legendre symbol). So we in test_kronecker() 2819 BIGNUM *base = NULL, *exponent = NULL, *modulo = NULL; in test_mod_exp() local 2825 || !TEST_true(BN_dec2bn(&modulo, test->mod))) in test_mod_exp() 2828 if (!TEST_int_eq(BN_mod_exp(result, base, exponent, modulo, ctx), 1)) in test_mod_exp() 2844 BN_free(modulo); in test_mod_exp() 2853 BIGNUM *base = NULL, *exponent = NULL, *modulo = NULL; in test_mod_exp_consttime() local 2859 || !TEST_true(BN_dec2bn(&modulo, test->mod))) in test_mod_exp_consttime() 2864 BN_set_flags(modulo, BN_FLG_CONSTTIME); in test_mod_exp_consttime() 2866 if (!TEST_int_eq(BN_mod_exp(result, base, exponent, modulo, ctx), 1)) in test_mod_exp_consttime() 2882 BN_free(modulo); in test_mod_exp_consttime() [all...] |
/third_party/node/deps/openssl/openssl/crypto/aes/asm/ |
H A D | aes-c64xplus.pl | 149 || XOR $s[2],$Te0[2],$s[2] ; modulo-scheduled 150 || XOR $s[3],$Te0[3],$s[3] ; modulo-scheduled 217 || XOR $s[2],$Te0[2],$s[2] ; modulo-scheduled 218 || XOR $s[3],$Te0[3],$s[3] ; modulo-scheduled 361 || XOR $s[2],$Td0[2],$s[2] ; modulo-scheduled 362 || XOR $s[3],$Td0[3],$s[3] ; modulo-scheduled 429 || XOR $s[2],$Td0[2],$s[2] ; modulo-scheduled 430 || XOR $s[3],$Td0[3],$s[3] ; modulo-scheduled
|
/third_party/openssl/crypto/aes/asm/ |
H A D | aes-c64xplus.pl | 149 || XOR $s[2],$Te0[2],$s[2] ; modulo-scheduled 150 || XOR $s[3],$Te0[3],$s[3] ; modulo-scheduled 217 || XOR $s[2],$Te0[2],$s[2] ; modulo-scheduled 218 || XOR $s[3],$Te0[3],$s[3] ; modulo-scheduled 361 || XOR $s[2],$Td0[2],$s[2] ; modulo-scheduled 362 || XOR $s[3],$Td0[3],$s[3] ; modulo-scheduled 429 || XOR $s[2],$Td0[2],$s[2] ; modulo-scheduled 430 || XOR $s[3],$Td0[3],$s[3] ; modulo-scheduled
|
/third_party/ffmpeg/libavcodec/arm/ |
H A D | synth_filter_vfp.S | 132 str lr, [P_SB_OFF] @ rotate offset, modulo buffer size, ready for next call
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
H A D | MutableCodePointTrie.java | 860 int initialEntryIndex = modulo(hashCode, length - 1) + 1; // 1..length-1 in findEntry() 882 int initialEntryIndex = modulo(hashCode, length - 1) + 1; // 1..length-1 in findEntry() 904 private int modulo(int n, int m) { in modulo() method in MutableCodePointTrie.MixedBlocks
|