/external/fio/lib/ |
zipf.c | 16 static void zipf_update(struct zipf_state *zs) 26 to_gen = min(zs->nranges, (uint64_t) ZIPF_MAX_GEN); 29 zs->zetan += pow(1.0 / (double) (i + 1), zs->theta); 32 static void shared_rand_init(struct zipf_state *zs, unsigned long nranges, 35 memset(zs, 0, sizeof(*zs)); 36 zs->nranges = nranges; 38 init_rand_seed(&zs->rand, seed); 39 zs->rand_off = __rand(&zs->rand) [all...] |
zipf.h | 17 void zipf_init(struct zipf_state *zs, unsigned long nranges, double theta, unsigned int seed); 18 unsigned long long zipf_next(struct zipf_state *zs); 20 void pareto_init(struct zipf_state *zs, unsigned long nranges, double h, unsigned int seed); 21 unsigned long long pareto_next(struct zipf_state *zs);
|
/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...] |
/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...] |
zrleoutstream.h | 38 z_stream zs; member in struct:__anon16950
|
/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...] |
/system/bt/btif/src/ |
btif_debug_btsnoop.c | 127 z_stream zs = {.zalloc = Z_NULL, .zfree = Z_NULL, .opaque = Z_NULL}; local 128 if (deflateInit(&zs, Z_DEFAULT_COMPRESSION) != Z_OK) 137 zs.avail_in = ringbuffer_peek(rb_src, i * BLOCK_SIZE, block_src, BLOCK_SIZE); 138 zs.next_in = block_src; 141 zs.avail_out = BLOCK_SIZE; 142 zs.next_out = block_dst; 144 int err = deflate(&zs, (i == num_blocks - 1) ? Z_FINISH : Z_NO_FLUSH); 150 const size_t length = BLOCK_SIZE - zs.avail_out; 152 } while (zs.avail_out == 0); 155 deflateEnd(&zs); [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 | 115 const GLfloat zs = 1.0F / ctx->DrawBuffer->_DepthMaxF; local 117 _mesa_update_hitflag( ctx, v0->attrib[FRAG_ATTRIB_WPOS][2] * zs ); 118 _mesa_update_hitflag( ctx, v1->attrib[FRAG_ATTRIB_WPOS][2] * zs ); 119 _mesa_update_hitflag( ctx, v2->attrib[FRAG_ATTRIB_WPOS][2] * zs ); 127 const GLfloat zs = 1.0F / ctx->DrawBuffer->_DepthMaxF; local 128 _mesa_update_hitflag( ctx, v0->attrib[FRAG_ATTRIB_WPOS][2] * zs ); 129 _mesa_update_hitflag( ctx, v1->attrib[FRAG_ATTRIB_WPOS][2] * zs ); 136 const GLfloat zs = 1.0F / ctx->DrawBuffer->_DepthMaxF; local 137 _mesa_update_hitflag( ctx, v->attrib[FRAG_ATTRIB_WPOS][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 */
|
/bionic/libc/upstream-openbsd/lib/libc/gdtoa/ |
dmisc.c | 123 ULong si, z, zs; local 157 zs = (si >> 16) * q + (ys >> 16); 158 carry = zs >> 16; 161 z = (*bx >> 16) - (zs & 0xffff) - borrow; 198 zs = (si >> 16) + (ys >> 16); 199 carry = zs >> 16; 202 z = (*bx >> 16) - (zs & 0xffff) - borrow;
|
/system/extras/ANRdaemon/ |
ANRdaemon.cpp | 381 z_stream zs; local 385 memset(&zs, 0, sizeof(zs)); 386 result = deflateInit(&zs, Z_DEFAULT_COMPRESSION); 399 zs.next_out = out; 400 zs.avail_out = bufSize; 403 if (zs.avail_in == 0) { 412 zs.next_in = in; 413 zs.avail_in = result; 417 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);
|
SecP256K1Curve.java | 69 protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) 71 return new SecP256K1Point(this, x, y, zs, withCompression);
|
SecP256R1Curve.java | 71 protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) 73 return new SecP256R1Point(this, x, y, zs, withCompression);
|
SecP384R1Curve.java | 71 protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) 73 return new SecP384R1Point(this, x, y, zs, withCompression);
|
SecP521R1Curve.java | 71 protected ECPoint createRawPoint(ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) 73 return new SecP521R1Point(this, x, y, zs, withCompression);
|
SecP192K1Point.java | 55 SecP192K1Point(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, 58 super(curve, x, y, zs); 89 SecP192K1FieldElement Z1 = (SecP192K1FieldElement)this.zs[0]; 189 ECFieldElement[] zs = new ECFieldElement[] { Z3 }; local 191 return new SecP192K1Point(curve, X3, Y3, zs, this.withCompression); 210 SecP192K1FieldElement X1 = (SecP192K1FieldElement)this.x, Z1 = (SecP192K1FieldElement)this.zs[0]; 296 return new SecP192K1Point(curve, this.x, this.y.negate(), this.zs, this.withCompression);
|
SecP192R1Point.java | 55 SecP192R1Point(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, boolean withCompression) 57 super(curve, x, y, zs); 88 SecP192R1FieldElement Z1 = (SecP192R1FieldElement)this.zs[0]; 188 ECFieldElement[] zs = new ECFieldElement[]{ Z3 }; local 190 return new SecP192R1Point(curve, X3, Y3, zs, this.withCompression); 209 SecP192R1FieldElement X1 = (SecP192R1FieldElement)this.x, Z1 = (SecP192R1FieldElement)this.zs[0]; 308 return new SecP192R1Point(curve, this.x, this.y.negate(), this.zs, this.withCompression);
|
SecP224K1Point.java | 55 SecP224K1Point(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs, 58 super(curve, x, y, zs); 89 SecP224K1FieldElement Z1 = (SecP224K1FieldElement)this.zs[0]; 189 ECFieldElement[] zs = new ECFieldElement[] { Z3 }; local 191 return new SecP224K1Point(curve, X3, Y3, zs, this.withCompression); 210 SecP224K1FieldElement X1 = (SecP224K1FieldElement)this.x, Z1 = (SecP224K1FieldElement)this.zs[0]; 296 return new SecP224K1Point(curve, this.x, this.y.negate(), this.zs, this.withCompression);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/ |
ECPoint.java | 47 protected ECFieldElement[] zs; field in class:ECPoint 59 protected ECPoint(ECCurve curve, ECFieldElement x, ECFieldElement y, ECFieldElement[] zs) 64 this.zs = zs; 176 return (index < 0 || index >= zs.length) ? null : zs[index]; 181 int zsLen = zs.length; 187 System.arraycopy(zs, 0, copy, 0, zsLen); 203 return zs; 221 || zs[0].isOne() 858 ECFieldElement[] zs; local [all...] |