Home
last modified time | relevance | path

Searched refs:bits (Results 1 – 25 of 83) sorted by relevance

1234

/PHP-8.0/ext/hash/
H A Dhash_sha3.c223 void PHP_SHA3##bits##Init(PHP_SHA3_##bits##_CTX* ctx) { \
224 PHP_SHA3_Init(ctx, bits); \
226 void PHP_SHA3##bits##Update(PHP_SHA3_##bits##_CTX* ctx, \
244 "sha3-" #bits, \
252 bits >> 3, \
253 (1600 - (2 * bits)) >> 3, \
318 void PHP_SHA3##bits##Init(PHP_SHA3_##bits##_CTX* ctx) { \
322 void PHP_SHA3##bits##Update(PHP_SHA3_##bits##_CTX* ctx, \
332 "sha3-" #bits, \
340 bits >> 3, \
[all …]
H A Dhash_sha.c264 unsigned char bits[8]; in PHP_SHA224Final() local
268 bits[7] = (unsigned char) (context->count[0] & 0xFF); in PHP_SHA224Final()
272 bits[3] = (unsigned char) (context->count[1] & 0xFF); in PHP_SHA224Final()
284 PHP_SHA224Update(context, bits, 8); in PHP_SHA224Final()
341 unsigned char bits[8]; in PHP_SHA256Final() local
345 bits[7] = (unsigned char) (context->count[0] & 0xFF); in PHP_SHA256Final()
361 PHP_SHA256Update(context, bits, 8); in PHP_SHA256Final()
553 unsigned char bits[16]; in PHP_SHA384Final() local
581 PHP_SHA384Update(context, bits, 16); in PHP_SHA384Final()
708 unsigned char bits[16]; in PHP_SHA512Final() local
[all …]
H A Dhash_ripemd.c642 unsigned char bits[8]; in PHP_RIPEMD128Final() local
646 bits[0] = (unsigned char) (context->count[0] & 0xFF); in PHP_RIPEMD128Final()
650 bits[4] = (unsigned char) (context->count[1] & 0xFF); in PHP_RIPEMD128Final()
662 PHP_RIPEMD128Update(context, bits, 8); in PHP_RIPEMD128Final()
679 unsigned char bits[8]; in PHP_RIPEMD256Final() local
683 bits[0] = (unsigned char) (context->count[0] & 0xFF); in PHP_RIPEMD256Final()
699 PHP_RIPEMD256Update(context, bits, 8); in PHP_RIPEMD256Final()
716 unsigned char bits[8]; in PHP_RIPEMD160Final() local
736 PHP_RIPEMD160Update(context, bits, 8); in PHP_RIPEMD160Final()
753 unsigned char bits[8]; in PHP_RIPEMD320Final() local
[all …]
H A Dhash_haval.c320 unsigned char bits[10]; in PHP_HAVAL128Final() local
327 bits[1] = (context->output >> 2); in PHP_HAVAL128Final()
339 PHP_HAVALUpdate(context, bits, 10); in PHP_HAVAL128Final()
373 unsigned char bits[10]; in PHP_HAVAL160Final() local
380 bits[1] = (context->output >> 2); in PHP_HAVAL160Final()
426 unsigned char bits[10]; in PHP_HAVAL192Final() local
433 bits[1] = (context->output >> 2); in PHP_HAVAL192Final()
465 unsigned char bits[10]; in PHP_HAVAL224Final() local
472 bits[1] = (context->output >> 2); in PHP_HAVAL224Final()
505 unsigned char bits[10]; in PHP_HAVAL256Final() local
[all …]
H A Dphp_hash_whirlpool.h26 int bits; member
/PHP-8.0/ext/hash/tests/
H A Dhaval.phpt7 for($bits=128; $bits <= 256; $bits += 32) {
8 $algo = sprintf('haval%d,%d',$bits,$pass);
14 for($bits=128; $bits <= 256; $bits += 32) {
15 $algo = sprintf('haval%d,%d',$bits,$pass);
21 for($bits=128; $bits <= 256; $bits += 32) {
22 $algo = sprintf('haval%d,%d',$bits,$pass);
H A Dsha3.phpt19 foreach ([224, 256, 384, 512] as $bits) {
20 echo $bits, ': ', hash("sha3-$bits", $subject), "\n";
/PHP-8.0/ext/mysqli/tests/
H A Dmysqli_stmt_bind_result_bit.phpt12 function dec32bin($dec, $bits) {
14 $maxval = pow(2, $bits);
35 for ($bits = 1; $bits <= 46; $bits++) {
37 if (1 == $bits)
40 $max_value = pow(2, $bits) - 1;
43 printf("[003 - %d] [%d] %s\n", $bits, mysqli_errno($link_ins), mysqli_error($link_ins));
46 …bit_value BIT(%d) NOT NULL, bit_null BIT(%d) DEFAULT NULL) ENGINE = %s", $bits, $bits, $engine))) {
88 $bin = ($bits < 32) ? decbin($value) : dec32bin($value, $bits);
117 $bits, $bits,
128 $bits, $value, $bits, $row['id'], $row['_bin'], $bin, $bin2);
[all …]
H A Dmysqli_stmt_get_result_bit.phpt21 function dec32bin($dec, $bits) {
23 $maxval = pow(2, $bits);
40 for ($bits = 1; $bits <= 46; $bits++) {
41 if (1 == $bits)
44 $max_value = pow(2, $bits) - 1;
47 …, bit_value BIT(%d) NOT NULL, bit_null BIT(%d) DEFAULT NULL) ENGINE="%s"', $bits, $bits, $engine)))
48 printf("[002 - %d] [%d] %s\n",$bits, mysqli_errno($link), mysqli_error($link));
51 printf("[003 - %d] [%d] %s\n", $bits, mysqli_errno($link), mysqli_error($link));
74 $bin = ($bits < 32) ? decbin($value) : dec32bin($value, $bits);
99 $bits, $value, $bits, $row['id'], $row['_bin'], $bin, $bin2);
[all …]
H A Dmysqli_fetch_assoc_bit.phpt18 function dec32bin($dec, $bits) {
20 $maxval = pow(2, $bits);
37 for ($bits = 1; $bits <= 46; $bits++) {
38 if (1 == $bits)
41 $max_value = pow(2, $bits) - 1;
44 …, bit_value BIT(%d) NOT NULL, bit_null BIT(%d) DEFAULT NULL) ENGINE="%s"', $bits, $bits, $engine)))
45 printf("[002 - %d] [%d] %s\n",$bits, mysqli_errno($link), mysqli_error($link));
68 $bin = ($bits < 32) ? decbin($value) : dec32bin($value, $bits);
75 printf("[003 - %d] [%d] %s\n", $bits, mysqli_errno($link), mysqli_error($link));
87 $bits, $value, $bits, $row['id'], $row['_bin'], $bin, $bin2);
[all …]
H A Dmysqli_stmt_fetch_bit.phpt21 /* NOTE: works only for up to 31 bits! This limitation should be documented. */
22 for ($bits = 1; $bits < 32; $bits++) {
23 $max_value = pow(2, $bits) - 1;
26 …ery($link, $sql = sprintf('CREATE TABLE test(id INT, label BIT(%d)) ENGINE="%s"', $bits, $engine)))
27 printf("[002 - %d] [%d] %s\n",$bits, mysqli_errno($link), mysqli_error($link));
30 printf("[003 - %d] [%d] %s\n", $bits, mysqli_errno($link), mysqli_error($link));
39 … printf("[004 - %d] [%d] %s\n", $bits, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
46 … printf("[005 - %d] [%d] %s\n", $bits, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
49 … printf("[006 - %d] [%d] %s\n", $bits, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
52 … MySQL reports odd values, id = %s, _label0 = %s, label = %s.\n", $bits, $value, $bits, $id, $_lab…
[all …]
/PHP-8.0/ext/standard/tests/image/
H A Dgetimagesize.phpt37 ["bits"]=>
52 ["bits"]=>
67 ["bits"]=>
82 ["bits"]=>
97 ["bits"]=>
114 ["bits"]=>
131 ["bits"]=>
148 ["bits"]=>
165 ["bits"]=>
180 ["bits"]=>
[all …]
H A Dgetimagesize_basic.phpt56 ["bits"]=>
76 ["bits"]=>
98 ["bits"]=>
132 ["bits"]=>
166 ["bits"]=>
186 ["bits"]=>
206 ["bits"]=>
H A Dgetimagesizefromstring1.phpt26 ["bits"]=>
42 ["bits"]=>
H A Dbug71848.phpt18 ["bits"]=>
H A Dgetimagesize_256_ico.phpt21 ["bits"]=>
H A Dbug13213.phpt18 ["bits"]=>
/PHP-8.0/ext/standard/
H A Dimage.c62 unsigned int bits; member
195 long bits; in php_handle_swc() local
257 result->width = (php_swf_get_bits (b, 5 + bits, bits) - in php_handle_swc()
259 result->height = (php_swf_get_bits (b, 5 + (3 * bits), bits) - in php_handle_swc()
260 php_swf_get_bits (b, 5 + (2 * bits), bits)) / 20; in php_handle_swc()
275 long bits; in php_handle_swf() local
286 result->width = (php_swf_get_bits (a, 5 + bits, bits) - in php_handle_swf()
288 result->height = (php_swf_get_bits (a, 5 + (3 * bits), bits) - in php_handle_swf()
289 php_swf_get_bits (a, 5 + (2 * bits), bits)) / 20; in php_handle_swf()
902 if (width > 0 && height > 0 && bits > 0 && bits < 33) { in php_handle_iff()
[all …]
H A Dsha1.c216 unsigned char bits[8]; in PHP_SHA1Final() local
220 bits[7] = context->count[0] & 0xFF; in PHP_SHA1Final()
221 bits[6] = (context->count[0] >> 8) & 0xFF; in PHP_SHA1Final()
222 bits[5] = (context->count[0] >> 16) & 0xFF; in PHP_SHA1Final()
223 bits[4] = (context->count[0] >> 24) & 0xFF; in PHP_SHA1Final()
224 bits[3] = context->count[1] & 0xFF; in PHP_SHA1Final()
225 bits[2] = (context->count[1] >> 8) & 0xFF; in PHP_SHA1Final()
226 bits[1] = (context->count[1] >> 16) & 0xFF; in PHP_SHA1Final()
227 bits[0] = (context->count[1] >> 24) & 0xFF; in PHP_SHA1Final()
236 PHP_SHA1Update(context, bits, 8); in PHP_SHA1Final()
/PHP-8.0/Zend/tests/
H A Darray_hash_zero.phpt11 foreach ($hashes as $hash => $bits) {
12 var_dump($hashes[$hash], $bits);
H A Ddval_to_lval_64.phpt2 zend_dval_to_lval preserves low bits (64 bit long)
/PHP-8.0/ext/gd/libgd/
H A Dgd_tga.c115 if (tga->bits == TGA_BPP_24) { in gdImageCreateFromTgaCtx()
118 } else if (tga->bits == TGA_BPP_32 && tga->alphabits) { in gdImageCreateFromTgaCtx()
166 tga->bits = header[16]; in read_header_tga()
172 printf("format bps: %i\n", tga->bits); in read_header_tga()
178 if (!((tga->bits == TGA_BPP_24 && tga->alphabits == 0) in read_header_tga()
179 || (tga->bits == TGA_BPP_32 && tga->alphabits == 8))) in read_header_tga()
182 tga->bits, tga->alphabits); in read_header_tga()
208 int pixel_block_size = (tga->bits / 8); in read_image_tga()
/PHP-8.0/ext/gmp/tests/
H A Dgmp_random_bits.phpt44 gmp_random_bits(): Argument #1 ($bits) must be greater than or equal to 1
45 gmp_random_bits(): Argument #1 ($bits) must be greater than or equal to 1
/PHP-8.0/ext/dba/libcdb/
H A Duint32.h29 #error Need type which holds 32 bits
/PHP-8.0/ext/bcmath/tests/
H A Dbug60377.phpt2 bcscale related problem on 64bits platforms

Completed in 42 milliseconds

1234