/third_party/skia/third_party/externals/abseil-cpp/absl/random/ |
H A D | discrete_distribution_test.cc | 159 absl::discrete_distribution<int> dist(std::begin(weights), std::end(weights)); in TEST() 168 auto x = dist(rng); in TEST() 214 absl::discrete_distribution<int32_t> dist({1.0, 2.0, 3.0, 5.0, 2.0}); in TEST() 215 EXPECT_EQ(0, dist.min()); in TEST() 216 EXPECT_EQ(4, dist.max()); in TEST() 218 v = dist(urbg); in TEST() 240 absl::discrete_distribution<int64_t> dist({1.0, 2.0, 3.0, 5.0, 2.0}); in TEST() 241 EXPECT_EQ(0, dist.min()); in TEST() 242 EXPECT_EQ(4, dist.max()); in TEST() 244 v = dist(urb in TEST() [all...] |
/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/shaders/common/ |
H A D | 3d_dm_lighting_common.h | 374 const float dist = length(pointToLight); in CalculateLighting() local 375 const vec3 L = pointToLight / dist; in CalculateLighting() 402 const float attenuation = max(min(1.0 - pow(dist / range, 4.0), 1.0), 0.0) / (dist * dist); in CalculateLighting() 415 const float dist = length(pointToLight); in CalculateLighting() local 416 const vec3 L = pointToLight / dist; in CalculateLighting() 419 const float attenuation = max(min(1.0 - pow(dist / range, 4.0), 1.0), 0.0) / (dist * dist); in CalculateLighting() 466 const float dist = length(pointToLight); CalculateLighting() local 506 const float dist = length(pointToLight); CalculateLighting() local 611 const float dist = length(pointToLight); CalculateLighting() local 651 const float dist = length(pointToLight); CalculateLighting() local 734 const float dist = length(pointToLight); CalculateLighting() local 774 const float dist = length(pointToLight); CalculateLighting() local [all...] |
/third_party/python/Lib/distutils/tests/ |
H A D | test_check.py | 30 pkg_info, dist = self.create_dist(**metadata) 31 cmd = check(dist) 76 pkg_info, dist = self.create_dist() 77 cmd = check(dist) 93 pkg_info, dist = self.create_dist(long_description=broken_rest) 94 cmd = check(dist) 139 pkg_info, dist = self.create_dist(long_description=rest_with_code) 140 cmd = check(dist)
|
H A D | test_bdist.py | 19 dist = self.create_dist()[1] 20 cmd = bdist(dist) 32 dist = self.create_dist()[1] 33 cmd = bdist(dist) 36 dist.command_obj['bdist'] = cmd
|
H A D | test_config.py | 65 self.dist = Distribution() 68 def __init__(self, dist): 69 PyPIRCCommand.__init__(self, dist) 92 cmd = self._cmd(self.dist) 111 cmd = self._cmd(self.dist) 126 cmd = self._cmd(self.dist)
|
H A D | test_config_cmd.py | 52 pkg_dir, dist = self.create_dist() 53 cmd = config(dist) 69 pkg_dir, dist = self.create_dist() 70 cmd = config(dist) 92 pkg_dir, dist = self.create_dist() 93 cmd = config(dist)
|
/third_party/icu/tools/release/c/os-mapping/ |
H A D | Makefile | 20 distclean distclean-local install-library install-headers dist \ 21 dist-local check check-local 31 dist: dist-local 64 dist-local:
|
/third_party/libwebsockets/win32port/zlib/ |
H A D | inffast.c | 94 unsigned dist; /* match distance */
local 165 dist = (unsigned)(here.val);
175 dist += (unsigned)hold & ((1U << op) - 1);
177 if (dist > dmax) {
185 Tracevv((stderr, "inflate: distance %u\n", dist));
187 if (dist > op) { /* see if copy from window */
188 op = dist - op; /* distance back in window */
208 from = out - dist;
224 from = out - dist; /* rest from output */
242 from = out - dist; /* res [all...] |
/kernel/linux/linux-5.10/lib/zlib_deflate/ |
H A D | deftree.c | 159 #define d_code(dist) \ 160 ((dist) < 256 ? dist_code[dist] : dist_code[256+((dist)>>7)]) 161 /* Mapping from a distance to a distance code. dist is the distance - 1 and 178 int dist; /* distance index */ in tr_static_init() local 199 /* Initialize the mapping dist (0..32K) -> dist code (0..29) */ in tr_static_init() 200 dist = 0; in tr_static_init() 202 base_dist[code] = dist; in tr_static_init() 915 zlib_tr_tally( deflate_state *s, unsigned dist, unsigned lc ) global() argument 970 unsigned dist; /* distance of matched string */ global() local [all...] |
/kernel/linux/linux-6.6/lib/zlib_deflate/ |
H A D | deftree.c | 159 #define d_code(dist) \ 160 ((dist) < 256 ? dist_code[dist] : dist_code[256+((dist)>>7)]) 161 /* Mapping from a distance to a distance code. dist is the distance - 1 and 178 int dist; /* distance index */ in tr_static_init() local 199 /* Initialize the mapping dist (0..32K) -> dist code (0..29) */ in tr_static_init() 200 dist = 0; in tr_static_init() 202 base_dist[code] = dist; in tr_static_init() 915 zlib_tr_tally( deflate_state *s, unsigned dist, unsigned lc ) global() argument 970 unsigned dist; /* distance of matched string */ global() local [all...] |
/third_party/skia/src/pathops/ |
H A D | SkPathOpsLine.cpp | 49 double dist = realPt.distance(xy); // OPTIMIZATION: can we compare against distSq instead ? in nearPoint() local 54 if (!AlmostEqualUlps_Pin(largest, largest + dist)) { // is the dist within ULPS tolerance? in nearPoint() 58 *unequal = (float) largest != (float) (largest + dist); in nearPoint() 73 double dist = realPt.distance(xy); // OPTIMIZATION: can we compare against distSq instead ? in nearRay() local 78 return RoughlyEqualUlps(largest, largest + dist); // is the dist within ULPS tolerance? in nearRay() 106 double dist = sqrt(distSq); // OPTIMIZATION: can we compare against distSq instead ? in NearPointH() local 110 if (!AlmostEqualUlps(largest, largest + dist)) { // is the dist withi in NearPointH() 141 double dist = sqrt(distSq); // OPTIMIZATION: can we compare against distSq instead ? NearPointV() local [all...] |
/third_party/skia/third_party/externals/brotli/research/ |
H A D | read_dist.h | 8 /* API for reading distances from *.dist file. 9 The format of *.dist file is as follows: for each backward reference there is 26 /* Reads backwards reference from .dist file. Sets all missing fields to -1. 28 bool ReadBackwardReference(FILE* fin, int* copy, int* pos, int* dist) { in ReadBackwardReference() argument 35 *pos = *dist = -1; in ReadBackwardReference() 38 CHECK(fread(dist, sizeof(int), 1, fin) == 1); in ReadBackwardReference() 44 CHECK(fread(dist, sizeof(int), 1, fin) == 1); in ReadBackwardReference()
|
/foundation/graphic/graphic_3d/lume/Lume_3D/assets/3d/shaders/common/ |
H A D | inplace_lighting_common.h | 128 const float dist = length(pointToLight); in CalculateLightingInplace() local 129 const vec3 L = pointToLight / dist; in CalculateLightingInplace() 156 const float attenuation = max(min(1.0 - pow(dist / range, 4.0), 1.0), 0.0) / (dist * dist); in CalculateLightingInplace() 172 const float dist = length(pointToLight); in CalculateLightingInplace() local 173 if (dist == 0) { in CalculateLightingInplace() 176 const vec3 L = pointToLight / dist; in CalculateLightingInplace() 179 const float attenuation = max(min(1.0 - pow(dist / range, 4.0), 1.0), 0.0) / (dist * dis in CalculateLightingInplace() [all...] |
/third_party/node/deps/zlib/contrib/optimizations/ |
H A D | inffast_chunk.c | 100 unsigned dist; /* match distance */ in inflate_fast_chunk_() local 210 dist = (unsigned)(here->val); in inflate_fast_chunk_() 226 dist += (unsigned)hold & ((1U << op) - 1); in inflate_fast_chunk_() 228 if (dist > dmax) { in inflate_fast_chunk_() 236 Tracevv((stderr, "inflate: distance %u\n", dist)); in inflate_fast_chunk_() 238 if (dist > op) { /* see if copy from window */ in inflate_fast_chunk_() 239 op = dist - op; /* distance back in window */ in inflate_fast_chunk_() 259 from = out - dist; in inflate_fast_chunk_() 287 /* When dist is small the amount of data that can be in inflate_fast_chunk_() 296 out = chunkunroll_relaxed(out, &dist, in inflate_fast_chunk_() [all...] |
/kernel/linux/linux-6.6/arch/arm64/kvm/vgic/ |
H A D | vgic-v4.c | 189 struct vgic_dist *dist = &kvm->arch.vgic; in vgic_v4_configure_vsgis() local 198 if (dist->nassgireq) in vgic_v4_configure_vsgis() 241 struct vgic_dist *dist = &kvm->arch.vgic; in vgic_v4_init() local 251 if (dist->its_vm.vpes) in vgic_v4_init() 256 dist->its_vm.vpes = kcalloc(nr_vcpus, sizeof(*dist->its_vm.vpes), in vgic_v4_init() 258 if (!dist->its_vm.vpes) in vgic_v4_init() 261 dist->its_vm.nr_vpes = nr_vcpus; in vgic_v4_init() 264 dist->its_vm.vpes[i] = &vcpu->arch.vgic_cpu.vgic_v3.its_vpe; in vgic_v4_init() 266 ret = its_alloc_vcpu_irqs(&dist in vgic_v4_init() [all...] |
/kernel/linux/linux-5.10/arch/hexagon/kernel/ |
H A D | module.c | 102 int dist = (int)(value - (uint32_t)location); in apply_relocate_add() local 103 if ((dist < -0x00800000) || in apply_relocate_add() 104 (dist >= 0x00800000)) { in apply_relocate_add() 109 dist, value, (uint32_t)location, in apply_relocate_add() 116 *location |= 0x00003fff & dist; in apply_relocate_add() 117 *location |= 0x01ff0000 & (dist<<2); in apply_relocate_add()
|
/kernel/linux/linux-6.6/arch/hexagon/kernel/ |
H A D | module.c | 102 int dist = (int)(value - (uint32_t)location); in apply_relocate_add() local 103 if ((dist < -0x00800000) || in apply_relocate_add() 104 (dist >= 0x00800000)) { in apply_relocate_add() 109 dist, value, (uint32_t)location, in apply_relocate_add() 116 *location |= 0x00003fff & dist; in apply_relocate_add() 117 *location |= 0x01ff0000 & (dist<<2); in apply_relocate_add()
|
/third_party/python/Lib/turtledemo/ |
H A D | fractalcurves.py | 66 def fractal(self, dist, depth, dir): 68 self.fd(dist) 70 self.fractal(dist / 3, depth - 1, dir) 72 self.fractal(dist / 3, depth - 1, dir) 74 self.fractal(dist / 3, depth - 1, dir) 76 self.fractal(dist / 3, depth - 1, dir)
|
/third_party/python/Lib/importlib/metadata/ |
H A D | __init__.py | 191 dist: Optional['Distribution'] = None 221 def _for(self, dist): 222 vars(self).update(dist=dist) 401 def _from_text_for(cls, text, dist): 402 return cls(ep._for(dist) for ep in cls._from_text(text)) 520 return self.dist.locate_file(self) 645 (i.e. RECORD for dist-info or SOURCES.txt for egg-info) is 654 result.dist = self 835 if low.endswith((".dist [all...] |
/third_party/skia/src/effects/ |
H A D | Sk1DPathEffect.cpp | 50 virtual SkScalar next(SkPath* dst, SkScalar dist, SkPathMeasure&) const = 0; 136 SkPathMeasure& meas, SkScalar dist) { in morphpoints() 144 if (!meas.getPosTan(dist + sx, &pos, &tangent)) { in morphpoints() 167 SkScalar dist) { in morphpath() 175 if (morphpoints(dstP, srcP, 1, meas, dist)) { in morphpath() 185 if (morphpoints(dstP, &srcP[1], 2, meas, dist)) { in morphpath() 190 if (morphpoints(dstP, &srcP[1], 2, meas, dist)) { in morphpath() 195 if (morphpoints(dstP, &srcP[1], 3, meas, dist)) { in morphpath() 135 morphpoints(SkPoint dst[], const SkPoint src[], int count, SkPathMeasure& meas, SkScalar dist) morphpoints() argument 166 morphpath(SkPath* dst, const SkPath& src, SkPathMeasure& meas, SkScalar dist) morphpath() argument
|
/third_party/typescript/tests/baselines/reference/tsc/declarationEmit/ |
H A D | when-pkg-references-sibling-package-through-indirect-symlink-moduleCaseChange.js | 2 //// [/user/username/projects/myProject/pkg1/dist/index.d.ts]
5 //// [/user/username/projects/myProject/pkg1/dist/types.d.ts]
21 {"name":"@raymondfeng/pkg1","version":"1.0.0","main":"dist/index.js","typings":"dist/index.d.ts"}
23 //// [/user/username/projects/myproject/pkg2/dist/index.d.ts]
26 //// [/user/username/projects/myproject/pkg2/dist/types.d.ts]
30 {"name":"@raymondfeng/pkg2","version":"1.0.0","main":"dist/index.js","typings":"dist/index.d.ts"}
40 {"compilerOptions":{"outDir":"dist","rootDir":"src","target":"es5","module":"commonjs","strict":true,"esModuleInterop":true,"declaration":true}}
60 [96mpkg3/src/keys.ts[0m:[93m2[0m:[93m14[0m - [91merror[0m[90m TS2742: [0mThe inferred type of 'ADMIN' cannot be named without a reference to '../../pkg2/node_modules/@raymondfeng/pkg1/dist' [all...] |
H A D | when-pkg-references-sibling-package-through-indirect-symlink.js | 2 //// [/user/username/projects/myproject/pkg1/dist/index.d.ts]
5 //// [/user/username/projects/myproject/pkg1/dist/types.d.ts]
21 {"name":"@raymondfeng/pkg1","version":"1.0.0","main":"dist/index.js","typings":"dist/index.d.ts"}
23 //// [/user/username/projects/myproject/pkg2/dist/index.d.ts]
26 //// [/user/username/projects/myproject/pkg2/dist/types.d.ts]
30 {"name":"@raymondfeng/pkg2","version":"1.0.0","main":"dist/index.js","typings":"dist/index.d.ts"}
40 {"compilerOptions":{"outDir":"dist","rootDir":"src","target":"es5","module":"commonjs","strict":true,"esModuleInterop":true,"declaration":true}}
60 [96mpkg3/src/keys.ts[0m:[93m2[0m:[93m14[0m - [91merror[0m[90m TS2742: [0mThe inferred type of 'ADMIN' cannot be named without a reference to '../../pkg2/node_modules/@raymondfeng/pkg1/dist' [all...] |
/third_party/python/Lib/test/test_importlib/ |
H A D | test_metadata_api.py | 89 self.assertIn(ep.dist.name, ('distinfo-pkg', 'egginfo-pkg')) 90 self.assertEqual(ep.dist.version, "1.0.0") 100 "DistInfo_pkg-1.1.0.dist-info": { 114 ep.dist.name == 'distinfo-pkg' and ep.dist.version == '1.0.0' 321 assert any(dist.metadata['Name'] == 'distinfo-pkg' for dist in dists) 325 dist_info_path = self.site_dir / 'distinfo_pkg-1.0.0.dist-info' 326 dist = Distribution.at(dist_info_path) 327 assert dist [all...] |
H A D | test_zip.py | 42 path = str(file.dist.locate_file(file)) 57 path = str(file.dist.locate_file(file)) 61 dist = distribution('example') 62 assert dist._normalized_name == 'example'
|
/third_party/mesa3d/src/util/ |
H A D | softfloat.c | 93 * \brief Shifts 'a' right by the number of bits given in 'dist', which must be in 101 uint64_t _mesa_short_shift_right_jam64(uint64_t a, uint8_t dist) in _mesa_short_shift_right_jam64() argument 103 return a >> dist | ((a & (((uint64_t) 1 << dist) - 1)) != 0); in _mesa_short_shift_right_jam64() 107 * \brief Shifts 'a' right by the number of bits given in 'dist', which must not 111 * The value of 'dist' can be arbitrarily large. In particular, if 'dist' is 118 uint64_t _mesa_shift_right_jam64(uint64_t a, uint32_t dist) in _mesa_shift_right_jam64() argument 121 (dist < 63) ? a >> dist | ((uint64_ in _mesa_shift_right_jam64() 136 _mesa_shift_right_jam32(uint32_t a, uint16_t dist) _mesa_shift_right_jam32() argument 240 _mesa_short_shift_left_m(uint8_t size_words, const uint32_t *a, uint8_t dist, uint32_t *m_out) _mesa_short_shift_left_m() argument 272 _mesa_shift_left_m(uint8_t size_words, const uint32_t *a, uint32_t dist, uint32_t *m_out) _mesa_shift_left_m() argument 318 _mesa_short_shift_right_m(uint8_t size_words, const uint32_t *a, uint8_t dist, uint32_t *m_out) _mesa_short_shift_right_m() argument 351 _mesa_short_shift_right_jam_m(uint8_t size_words, const uint32_t *a, uint8_t dist, uint32_t *m_out) _mesa_short_shift_right_jam_m() argument 389 _mesa_shift_right_jam_m(uint8_t size_words, const uint32_t *a, uint32_t dist, uint32_t *m_out) _mesa_shift_right_jam_m() argument [all...] |