Home
last modified time | relevance | path

Searched refs:block_size (Results 1 – 7 of 7) sorted by relevance

/PHP-7.0/ext/gd/libgd/
H A Dgd_pixelate.c3 int gdImagePixelate(gdImagePtr im, int block_size, const unsigned int mode) in gdImagePixelate() argument
7 if (block_size <= 0) { in gdImagePixelate()
9 } else if (block_size == 1) { in gdImagePixelate()
14 for (y = 0; y < im->sy; y += block_size) { in gdImagePixelate()
15 for (x = 0; x < im->sx; x += block_size) { in gdImagePixelate()
18 gdImageFilledRectangle(im, x, y, x + block_size - 1, y + block_size - 1, c); in gdImagePixelate()
24 for (y = 0; y < im->sy; y += block_size) { in gdImagePixelate()
25 for (x = 0; x < im->sx; x += block_size) { in gdImagePixelate()
32 for (cy = 0; cy < block_size; cy++) { in gdImagePixelate()
33 for (cx = 0; cx < block_size; cx++) { in gdImagePixelate()
[all …]
H A Dgd.h717 int gdImagePixelate(gdImagePtr im, int block_size, const unsigned int mode);
/PHP-7.0/ext/hash/
H A Dhash.c216 memset(K, 0, ops->block_size); in php_hash_hmac_prep_key()
217 if (key_len > ops->block_size) { in php_hash_hmac_prep_key()
271 K = emalloc(ops->block_size); in php_hash_do_hash_hmac()
295 ZEND_SECURE_ZERO(K, ops->block_size); in php_hash_do_hash_hmac()
371 char *K = emalloc(ops->block_size); in PHP_FUNCTION()
374 memset(K, 0, ops->block_size); in PHP_FUNCTION()
376 if (key_len > ops->block_size) { in PHP_FUNCTION()
648 K1 = emalloc(ops->block_size); in PHP_FUNCTION()
649 K2 = emalloc(ops->block_size); in PHP_FUNCTION()
967 int times = bytes / block_size; in PHP_FUNCTION()
[all …]
H A Dphp_hash.h51 int block_size; member
/PHP-7.0/ext/opcache/
H A Dzend_shared_alloc.c290 size_t block_size = ZSMMG(shared_segments)[i]->size - ZSMMG(shared_segments)[i]->pos; in zend_shared_alloc_get_largest_free_block() local
292 if (block_size>largest_block_size) { in zend_shared_alloc_get_largest_free_block()
293 largest_block_size = block_size; in zend_shared_alloc_get_largest_free_block()
311 unsigned int block_size = ZEND_ALIGNED_SIZE(size); in zend_shared_alloc() local
318 if (block_size > ZSMMG(shared_free)) { /* No hope to find a big-enough block */ in zend_shared_alloc()
323 …if (ZSMMG(shared_segments)[i]->size - ZSMMG(shared_segments)[i]->pos >= block_size) { /* found a v… in zend_shared_alloc()
326 ZSMMG(shared_segments)[i]->pos += block_size; in zend_shared_alloc()
327 ZSMMG(shared_free) -= block_size; in zend_shared_alloc()
328 memset(retval, 0, block_size); in zend_shared_alloc()
/PHP-7.0/ext/mcrypt/
H A Dmcrypt.c622 int block_size, data_size; in PHP_FUNCTION() local
644 block_size = mcrypt_enc_get_block_size(pm->td); in PHP_FUNCTION()
645 data_size = ((((int)data_len - 1) / block_size) + 1) * block_size; in PHP_FUNCTION()
676 int block_size, data_size; in PHP_FUNCTION() local
698 block_size = mcrypt_enc_get_block_size(pm->td); in PHP_FUNCTION()
699 data_size = ((((int)data_len - 1) / block_size) + 1) * block_size; in PHP_FUNCTION()
1292 int block_size = mcrypt_enc_get_block_size(td); in php_mcrypt_do_crypt() local
1293 data_size = ((((zend_long)data_len - 1) / block_size) + 1) * block_size; in php_mcrypt_do_crypt()
/PHP-7.0/ext/bz2/
H A Dbz2.c516 block_size = 4, /* Block size for compression algorithm */ in PHP_FUNCTION() local
539 block_size = zblock_size; in PHP_FUNCTION()
546 …error = BZ2_bzBuffToBuffCompress(ZSTR_VAL(dest), &dest_len, source, source_len, block_size, 0, wor… in PHP_FUNCTION()

Completed in 27 milliseconds