/PHP-7.4/ext/hash/ |
H A D | hash_sha3.c | 208 #define DECLARE_SHA3_OPS(bits) \ argument 209 void PHP_SHA3##bits##Init(PHP_SHA3_##bits##_CTX* ctx) { \ 210 PHP_SHA3_Init(ctx, bits); \ 212 void PHP_SHA3##bits##Update(PHP_SHA3_##bits##_CTX* ctx, \ 222 bits >> 3); \ 229 bits >> 3, \ 230 (1600 - (2 * bits)) >> 3, \ 254 void PHP_SHA3##bits##Init(PHP_SHA3_##bits##_CTX* ctx) { \ 258 void PHP_SHA3##bits##Update(PHP_SHA3_##bits##_CTX* ctx, \ 274 bits >> 3, \ [all …]
|
H A D | hash_sha.c | 372 unsigned char bits[8]; in PHP_SHA1Final() local 376 bits[7] = context->count[0] & 0xFF; in PHP_SHA1Final() 380 bits[3] = context->count[1] & 0xFF; in PHP_SHA1Final() 392 PHP_SHA1Update(context, bits, 8); in PHP_SHA1Final() 581 unsigned char bits[8]; in PHP_SHA224Final() local 601 PHP_SHA224Update(context, bits, 8); in PHP_SHA224Final() 658 unsigned char bits[8]; in PHP_SHA256Final() local 678 PHP_SHA256Update(context, bits, 8); in PHP_SHA256Final() 870 unsigned char bits[16]; in PHP_SHA384Final() local 898 PHP_SHA384Update(context, bits, 16); in PHP_SHA384Final() [all …]
|
H A D | hash_ripemd.c | 628 unsigned char bits[8]; in PHP_RIPEMD128Final() local 632 bits[0] = (unsigned char) (context->count[0] & 0xFF); in PHP_RIPEMD128Final() 636 bits[4] = (unsigned char) (context->count[1] & 0xFF); in PHP_RIPEMD128Final() 648 PHP_RIPEMD128Update(context, bits, 8); in PHP_RIPEMD128Final() 665 unsigned char bits[8]; in PHP_RIPEMD256Final() local 669 bits[0] = (unsigned char) (context->count[0] & 0xFF); in PHP_RIPEMD256Final() 685 PHP_RIPEMD256Update(context, bits, 8); in PHP_RIPEMD256Final() 702 unsigned char bits[8]; in PHP_RIPEMD160Final() local 722 PHP_RIPEMD160Update(context, bits, 8); in PHP_RIPEMD160Final() 739 unsigned char bits[8]; in PHP_RIPEMD320Final() local [all …]
|
H A D | hash_haval.c | 323 unsigned char bits[10]; in PHP_HAVAL128Final() local 330 bits[1] = (context->output >> 2); in PHP_HAVAL128Final() 342 PHP_HAVALUpdate(context, bits, 10); in PHP_HAVAL128Final() 377 unsigned char bits[10]; in PHP_HAVAL160Final() local 384 bits[1] = (context->output >> 2); in PHP_HAVAL160Final() 431 unsigned char bits[10]; in PHP_HAVAL192Final() local 438 bits[1] = (context->output >> 2); in PHP_HAVAL192Final() 471 unsigned char bits[10]; in PHP_HAVAL224Final() local 478 bits[1] = (context->output >> 2); in PHP_HAVAL224Final() 512 unsigned char bits[10]; in PHP_HAVAL256Final() local [all …]
|
H A D | php_hash_whirlpool.h | 28 int bits; member
|
/PHP-7.4/ext/hash/tests/ |
H A D | haval.phpt | 7 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 D | sha3.phpt | 19 foreach ([224, 256, 384, 512] as $bits) { 20 echo $bits, ': ', hash("sha3-$bits", $subject), "\n";
|
/PHP-7.4/ext/mysqli/tests/ |
H A D | mysqli_stmt_bind_result_bit.phpt | 13 function dec32bin($dec, $bits) { 15 $maxval = pow(2, $bits); 36 for ($bits = 1; $bits <= 46; $bits++) { 38 if (1 == $bits) 41 $max_value = pow(2, $bits) - 1; 44 printf("[003 - %d] [%d] %s\n", $bits, mysqli_errno($link_ins), mysqli_error($link_ins)); 47 …bit_value BIT(%d) NOT NULL, bit_null BIT(%d) DEFAULT NULL) ENGINE = %s", $bits, $bits, $engine))) { 89 $bin = ($bits < 32) ? decbin($value) : dec32bin($value, $bits); 118 $bits, $bits, 129 $bits, $value, $bits, $row['id'], $row['_bin'], $bin, $bin2); [all …]
|
H A D | mysqli_stmt_get_result_bit.phpt | 25 function dec32bin($dec, $bits) { 27 $maxval = pow(2, $bits); 44 for ($bits = 1; $bits <= 46; $bits++) { 45 if (1 == $bits) 48 $max_value = pow(2, $bits) - 1; 51 …, bit_value BIT(%d) NOT NULL, bit_null BIT(%d) DEFAULT NULL) ENGINE="%s"', $bits, $bits, $engine))) 52 printf("[002 - %d] [%d] %s\n",$bits, mysqli_errno($link), mysqli_error($link)); 55 printf("[003 - %d] [%d] %s\n", $bits, mysqli_errno($link), mysqli_error($link)); 78 $bin = ($bits < 32) ? decbin($value) : dec32bin($value, $bits); 103 $bits, $value, $bits, $row['id'], $row['_bin'], $bin, $bin2); [all …]
|
H A D | mysqli_fetch_assoc_bit.phpt | 22 function dec32bin($dec, $bits) { 24 $maxval = pow(2, $bits); 41 for ($bits = 1; $bits <= 46; $bits++) { 42 if (1 == $bits) 45 $max_value = pow(2, $bits) - 1; 48 …, bit_value BIT(%d) NOT NULL, bit_null BIT(%d) DEFAULT NULL) ENGINE="%s"', $bits, $bits, $engine))) 49 printf("[002 - %d] [%d] %s\n",$bits, mysqli_errno($link), mysqli_error($link)); 72 $bin = ($bits < 32) ? decbin($value) : dec32bin($value, $bits); 79 printf("[003 - %d] [%d] %s\n", $bits, mysqli_errno($link), mysqli_error($link)); 91 $bits, $value, $bits, $row['id'], $row['_bin'], $bin, $bin2); [all …]
|
H A D | mysqli_stmt_fetch_bit.phpt | 25 /* NOTE: works only for up to 31 bits! This limitation should be documented. */ 26 for ($bits = 1; $bits < 32; $bits++) { 27 $max_value = pow(2, $bits) - 1; 30 …ery($link, $sql = sprintf('CREATE TABLE test(id INT, label BIT(%d)) ENGINE="%s"', $bits, $engine))) 31 printf("[002 - %d] [%d] %s\n",$bits, mysqli_errno($link), mysqli_error($link)); 34 printf("[003 - %d] [%d] %s\n", $bits, mysqli_errno($link), mysqli_error($link)); 43 … printf("[004 - %d] [%d] %s\n", $bits, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 50 … printf("[005 - %d] [%d] %s\n", $bits, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 53 … printf("[006 - %d] [%d] %s\n", $bits, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 56 … MySQL reports odd values, id = %s, _label0 = %s, label = %s.\n", $bits, $value, $bits, $id, $_lab… [all …]
|
/PHP-7.4/ext/standard/tests/image/ |
H A D | getimagesize.phpt | 37 ["bits"]=> 52 ["bits"]=> 67 ["bits"]=> 82 ["bits"]=> 97 ["bits"]=> 114 ["bits"]=> 131 ["bits"]=> 148 ["bits"]=> 165 ["bits"]=> 180 ["bits"]=> [all …]
|
H A D | getimagesize_basic.phpt | 62 ["bits"]=> 82 ["bits"]=> 104 ["bits"]=> 138 ["bits"]=> 172 ["bits"]=> 192 ["bits"]=> 212 ["bits"]=>
|
H A D | getimagesizefromstring1.phpt | 26 ["bits"]=> 42 ["bits"]=>
|
H A D | bug71848.phpt | 19 ["bits"]=>
|
H A D | getimagesize_256_ico.phpt | 21 ["bits"]=>
|
H A D | bug13213.phpt | 18 ["bits"]=>
|
/PHP-7.4/ext/standard/ |
H A D | image.c | 67 unsigned int bits; member 203 long bits; in php_handle_swc() local 265 result->width = (php_swf_get_bits (b, 5 + bits, bits) - in php_handle_swc() 267 result->height = (php_swf_get_bits (b, 5 + (3 * bits), bits) - in php_handle_swc() 268 php_swf_get_bits (b, 5 + (2 * bits), bits)) / 20; in php_handle_swc() 284 long bits; in php_handle_swf() local 295 result->width = (php_swf_get_bits (a, 5 + bits, bits) - in php_handle_swf() 297 result->height = (php_swf_get_bits (a, 5 + (3 * bits), bits) - in php_handle_swf() 298 php_swf_get_bits (a, 5 + (2 * bits), bits)) / 20; in php_handle_swf() 916 if (width > 0 && height > 0 && bits > 0 && bits < 33) { in php_handle_iff() [all …]
|
H A D | sha1.c | 220 unsigned char bits[8]; in PHP_SHA1Final() local 224 bits[7] = context->count[0] & 0xFF; in PHP_SHA1Final() 225 bits[6] = (context->count[0] >> 8) & 0xFF; in PHP_SHA1Final() 226 bits[5] = (context->count[0] >> 16) & 0xFF; in PHP_SHA1Final() 227 bits[4] = (context->count[0] >> 24) & 0xFF; in PHP_SHA1Final() 228 bits[3] = context->count[1] & 0xFF; in PHP_SHA1Final() 229 bits[2] = (context->count[1] >> 8) & 0xFF; in PHP_SHA1Final() 230 bits[1] = (context->count[1] >> 16) & 0xFF; in PHP_SHA1Final() 231 bits[0] = (context->count[1] >> 24) & 0xFF; in PHP_SHA1Final() 240 PHP_SHA1Update(context, bits, 8); in PHP_SHA1Final()
|
/PHP-7.4/Zend/tests/ |
H A D | array_hash_zero.phpt | 11 foreach ($hashes as $hash => $bits) { 12 var_dump($hashes[$hash], $bits);
|
H A D | dval_to_lval_64.phpt | 2 zend_dval_to_lval preserves low bits (64 bit long)
|
/PHP-7.4/ext/gd/libgd/ |
H A D | gd_tga.c | 115 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-7.4/ext/gmp/tests/ |
H A D | gmp_random_bits.phpt | 40 Warning: gmp_random_bits(): The number of bits must be positive in %s on line %d 43 Warning: gmp_random_bits(): The number of bits must be positive in %s on line %d
|
/PHP-7.4/ext/dba/libcdb/ |
H A D | uint32.h | 31 #error Need type which holds 32 bits
|
/PHP-7.4/ext/bcmath/tests/ |
H A D | bug60377.phpt | 2 bcscale related problem on 64bits platforms
|