/external/fio/lib/ |
zipf.c | 15 static void zipf_update(struct zipf_state *zs) 25 to_gen = min(zs->nranges, (uint64_t) ZIPF_MAX_GEN); 28 zs->zetan += pow(1.0 / (double) (i + 1), zs->theta); 31 static void shared_rand_init(struct zipf_state *zs, unsigned long nranges, 34 memset(zs, 0, sizeof(*zs)); 35 zs->nranges = nranges; 37 init_rand_seed(&zs->rand, seed, 0); 38 zs->rand_off = __rand(&zs->rand) [all...] |
zipf.h | 18 void zipf_init(struct zipf_state *zs, unsigned long nranges, double theta, unsigned int seed); 19 unsigned long long zipf_next(struct zipf_state *zs); 21 void pareto_init(struct zipf_state *zs, unsigned long nranges, double h, unsigned int seed); 22 unsigned long long pareto_next(struct zipf_state *zs); 23 void zipf_disable_hash(struct zipf_state *zs);
|
/external/syslinux/com32/lib/sys/ |
zfile.c | 62 z_streamp zs = calloc(1, sizeof(z_stream)); local 64 if (!zs) 67 fp->i.pvt = zs; 69 zs->next_in = (void *)fp->i.datap; 70 zs->avail_in = fp->i.nbytes; 72 if (inflateInit2(zs, 15 + 32) != Z_OK) { 85 z_streamp zs = fp->i.pvt; local 92 zs->next_out = p; 93 zs->avail_out = n; 95 if (!zs->avail_in && fp->i.fd.handle) 133 z_streamp zs = fp->i.pvt; local [all...] |
/external/mesa3d/src/gallium/drivers/ilo/core/ |
ilo_state_zs.c | 34 zs_set_gen6_null_3DSTATE_DEPTH_BUFFER(struct ilo_state_zs *zs, 51 STATIC_ASSERT(ARRAY_SIZE(zs->depth) >= 5); 52 zs->depth[0] = dw1; 53 zs->depth[1] = 0; 54 zs->depth[2] = 0; 55 zs->depth[3] = 0; 56 zs->depth[4] = 0; 384 zs_set_gen6_3DSTATE_DEPTH_BUFFER(struct ilo_state_zs *zs, 421 STATIC_ASSERT(ARRAY_SIZE(zs->depth) >= 5); 422 zs->depth[0] = dw1 [all...] |
ilo_state_zs.h | 73 ilo_state_zs_init(struct ilo_state_zs *zs, 78 ilo_state_zs_init_for_null(struct ilo_state_zs *zs, 82 ilo_state_zs_disable_hiz(struct ilo_state_zs *zs,
|
ilo_builder_3d_bottom.h | 669 const struct ilo_state_zs *zs) 689 dw[1] = zs->depth[0]; 692 dw[4] = zs->depth[2]; 693 dw[5] = zs->depth[3]; 695 dw[7] = zs->depth[4]; 699 if (zs->z_vma) { 700 ilo_builder_batch_reloc64(builder, pos + 2, zs->z_vma->bo, 701 zs->z_vma->bo_offset + zs->depth[1], 702 (zs->z_readonly) ? 0 : INTEL_RELOC_WRITE) [all...] |
/prebuilts/go/darwin-x86/test/ |
sliceopt.go | 30 zs := (**xs)[0:i] // since i=i+1 is proven, i+1 is "in bounds", ha-ha 31 zs = zs[i : i+1] // ERROR "Proved boolean IsSliceInBounds$" 32 println(zs) 59 var zs string 60 zs = (**xs)[2:] 61 zs = (**xs)[2:len(**xs)] // ERROR "Proved IsSliceInBounds$" "Proved boolean IsSliceInBounds$" 62 zs = (**xs)[i:i] // -ERROR "Proved boolean IsSliceInBounds" 63 zs = (**xs)[0:] // ERROR "slice: omit slice operation$" 64 zs = (**xs)[2:8 [all...] |
/prebuilts/go/linux-x86/test/ |
sliceopt.go | 30 zs := (**xs)[0:i] // since i=i+1 is proven, i+1 is "in bounds", ha-ha 31 zs = zs[i : i+1] // ERROR "Proved boolean IsSliceInBounds$" 32 println(zs) 59 var zs string 60 zs = (**xs)[2:] 61 zs = (**xs)[2:len(**xs)] // ERROR "Proved IsSliceInBounds$" "Proved boolean IsSliceInBounds$" 62 zs = (**xs)[i:i] // -ERROR "Proved boolean IsSliceInBounds" 63 zs = (**xs)[0:] // ERROR "slice: omit slice operation$" 64 zs = (**xs)[2:8 [all...] |
/external/zlib/src/contrib/iostream2/ |
zstream.h | 115 inline int read(izstream& zs, T* x, Items items) { 116 return ::gzread(zs.fp(), x, items*sizeof(T)); 123 inline izstream& operator>(izstream& zs, T& x) { 124 ::gzread(zs.fp(), &x, sizeof(T)); 125 return zs; 129 inline zstringlen::zstringlen(izstream& zs) { 130 zs > val.byte; 131 if (val.byte == 255) zs > val.word; 138 inline izstream& operator>(izstream& zs, char* x) { 139 zstringlen len(zs); [all...] |
/toolchain/binutils/binutils-2.27/zlib/contrib/iostream2/ |
zstream.h | 115 inline int read(izstream& zs, T* x, Items items) { 116 return ::gzread(zs.fp(), x, items*sizeof(T)); 123 inline izstream& operator>(izstream& zs, T& x) { 124 ::gzread(zs.fp(), &x, sizeof(T)); 125 return zs; 129 inline zstringlen::zstringlen(izstream& zs) { 130 zs > val.byte; 131 if (val.byte == 255) zs > val.word; 138 inline izstream& operator>(izstream& zs, char* x) { 139 zstringlen len(zs); [all...] |
/external/libvncserver/libvncserver/ |
zrleoutstream.c | 85 os->zs.zalloc = Z_NULL; 86 os->zs.zfree = Z_NULL; 87 os->zs.opaque = Z_NULL; 88 if (deflateInit(&os->zs, Z_DEFAULT_COMPRESSION) != Z_OK) { 99 deflateEnd(&os->zs); 107 os->zs.next_in = os->in.start; 108 os->zs.avail_in = ZRLE_BUFFER_LENGTH (&os->in); 111 rfbLog("zrleOutStreamFlush: avail_in %d\n", os->zs.avail_in); 114 while (os->zs.avail_in != 0) { 124 os->zs.next_out = os->out.ptr [all...] |
/system/bt/btif/src/ |
btif_debug_btsnoop.cc | 138 z_stream zs; local 139 zs.zalloc = Z_NULL; 140 zs.zfree = Z_NULL; 141 zs.opaque = Z_NULL; 143 if (deflateInit(&zs, Z_DEFAULT_COMPRESSION) != Z_OK) return false; 152 zs.avail_in = 154 zs.next_in = block_src; 157 zs.avail_out = BLOCK_SIZE; 158 zs.next_out = block_dst; 160 int err = deflate(&zs, (i == num_blocks - 1) ? Z_FINISH : Z_NO_FLUSH) [all...] |
/system/nfc/src/adaptation/ |
debug_nfcsnoop.cc | 80 z_stream zs; local 81 zs.zalloc = Z_NULL; 82 zs.zfree = Z_NULL; 83 zs.opaque = Z_NULL; 85 if (deflateInit(&zs, Z_DEFAULT_COMPRESSION) != Z_OK) return false; 94 zs.avail_in = 96 zs.next_in = block_src; 99 zs.avail_out = BLOCK_SIZE; 100 zs.next_out = block_dst; 102 int err = deflate(&zs, (i == num_blocks - 1) ? Z_FINISH : Z_NO_FLUSH) [all...] |
/external/okhttp/okio/okio/src/test/java/okio/ |
SegmentSharingTest.java | 31 private static final String zs = TestUtil.repeat('z', Segment.SIZE / 2 + 3); field in class:SegmentSharingTest 39 ByteString byteString = concatenateBuffers(xs, ys, zs).snapshot(); 40 assertEquivalent(byteString, concatenateBuffers(xs, ys + zs).snapshot()); 41 assertEquivalent(byteString, concatenateBuffers(xs + ys + zs).snapshot()); 42 assertEquivalent(byteString, ByteString.encodeUtf8(xs + ys + zs)); 46 ByteString byteString = concatenateBuffers(xs, ys, zs).snapshot(); 52 assertEquals('z', byteString.getByte(xs.length() + ys.length() + zs.length() - 1)); 59 byteString.getByte(xs.length() + ys.length() + zs.length()); 66 ByteString byteString = concatenateBuffers(xs, ys, zs).snapshot(); 69 assertEquals(xs + ys + zs, out.readUtf8()) [all...] |
/cts/apps/CameraITS/tests/scene0/ |
test_gyro_bias.py | 55 zs = numpy.array([e["z"] for e in gyro_events]) 62 zs = zs.reshape(nevents/N, N).mean(1) 66 pylab.plot(times, zs, 'b', label="z") 72 for samples in [xs,ys,zs]:
|
/external/mesa3d/src/mesa/swrast/ |
s_feedback.c | 114 const GLfloat zs = 1.0F / ctx->DrawBuffer->_DepthMaxF; local 116 _mesa_update_hitflag( ctx, v0->attrib[VARYING_SLOT_POS][2] * zs ); 117 _mesa_update_hitflag( ctx, v1->attrib[VARYING_SLOT_POS][2] * zs ); 118 _mesa_update_hitflag( ctx, v2->attrib[VARYING_SLOT_POS][2] * zs ); 126 const GLfloat zs = 1.0F / ctx->DrawBuffer->_DepthMaxF; local 127 _mesa_update_hitflag( ctx, v0->attrib[VARYING_SLOT_POS][2] * zs ); 128 _mesa_update_hitflag( ctx, v1->attrib[VARYING_SLOT_POS][2] * zs ); 135 const GLfloat zs = 1.0F / ctx->DrawBuffer->_DepthMaxF; local 136 _mesa_update_hitflag( ctx, v->attrib[VARYING_SLOT_POS][2] * zs );
|
/bionic/libm/upstream-freebsd/lib/msun/src/ |
s_fmal.c | 168 long double xs, ys, zs, adj; local 190 zs = frexpl(z, &ez); 224 zs = ldexpl(zs, -spread); 226 zs = copysignl(LDBL_MIN, zs); 241 r = dd_add(xy.hi, zs); 251 volatile long double vzs = zs; /* XXX gcc CSE bug workaround */
|
s_fma.c | 180 double xs, ys, zs, adj; local 202 zs = frexp(z, &ez); 236 zs = ldexp(zs, -spread); 238 zs = copysign(DBL_MIN, zs); 253 r = dd_add(xy.hi, zs); 263 volatile double vzs = zs; /* XXX gcc CSE bug workaround */
|
/prebuilts/go/darwin-x86/src/time/ |
genzabbrs.go | 84 zs := make([]*zone, 0) 95 zs = append(zs, &zone{ 102 return zs, nil 107 zs, err := readWindowsZones() 111 sort.Slice(zs, func(i, j int) bool { 112 return zs[i].UnixName < zs[j].UnixName 116 Zs []*zone 119 zs, [all...] |
/prebuilts/go/linux-x86/src/time/ |
genzabbrs.go | 84 zs := make([]*zone, 0) 95 zs = append(zs, &zone{ 102 return zs, nil 107 zs, err := readWindowsZones() 111 sort.Slice(zs, func(i, j int) bool { 112 return zs[i].UnixName < zs[j].UnixName 116 Zs []*zone 119 zs, [all...] |
/system/extras/ANRdaemon/ |
ANRdaemon.cpp | 286 z_stream zs; local 290 memset(&zs, 0, sizeof(zs)); 291 result = deflateInit(&zs, Z_DEFAULT_COMPRESSION); 304 zs.next_out = out; 305 zs.avail_out = bufSize; 308 if (zs.avail_in == 0) { 317 zs.next_in = in; 318 zs.avail_in = result; 322 if (zs.avail_out == 0) [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/custom/sec/ |
SecP192K1Curve.java | 70 protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) 72 return new SecP192K1Point(this, x, y, zs, withCompression);
|
SecP192R1Curve.java | 71 protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) 73 return new SecP192R1Point(this, x, y, zs, withCompression);
|
SecP224K1Curve.java | 69 protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) 71 return new SecP224K1Point(this, x, y, zs, withCompression);
|
SecP224R1Curve.java | 71 protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) 73 return new SecP224R1Point(this, x, y, zs, withCompression);
|