Lines Matching refs:size

88 static void php_pack(zval **val, int size, int *map, char *output)  in php_pack()  argument
96 for (i = 0; i < size; i++) { in php_pack()
489 static long php_unpack(char *data, int size, int issigned, int *map) in php_unpack() argument
497 for (i = 0; i < size; i++) { in php_unpack()
544 int size=0; in PHP_FUNCTION() local
581 size = -1; in PHP_FUNCTION()
585 size = 0; in PHP_FUNCTION()
590 size = arg; in PHP_FUNCTION()
596 size = (arg > 0) ? (arg + (arg % 2)) / 2 : arg; in PHP_FUNCTION()
604 size = 1; in PHP_FUNCTION()
612 size = 2; in PHP_FUNCTION()
618 size = sizeof(int); in PHP_FUNCTION()
626 size = 4; in PHP_FUNCTION()
631 size = sizeof(float); in PHP_FUNCTION()
636 size = sizeof(double); in PHP_FUNCTION()
659 if (size != 0 && size != -1 && INT_MAX - size + 1 < inputpos) { in PHP_FUNCTION()
664 if ((inputpos + size) <= inputlen) { in PHP_FUNCTION()
672 if ((size >= 0) && (len > size)) { in PHP_FUNCTION()
673 len = size; in PHP_FUNCTION()
676 size = len; in PHP_FUNCTION()
697 if (size >= 0 && len > (size * 2)) { in PHP_FUNCTION()
698 len = size * 2; in PHP_FUNCTION()
829 if (inputpos < size) { in PHP_FUNCTION()
830 inputpos = -size; in PHP_FUNCTION()
850 inputpos += size; in PHP_FUNCTION()
852 if (size != -1) { /* only print warning if not working with * */ in PHP_FUNCTION()
861 …SRMLS_CC, E_WARNING, "Type %c: not enough input, need %d, have %d", type, size, inputlen - inputpo… in PHP_FUNCTION()
912 int size = sizeof(Z_LVAL(val)); in PHP_MINIT_FUNCTION() local
916 byte_map[0] = size - 1; in PHP_MINIT_FUNCTION()
919 int_map[i] = size - (sizeof(int) - i); in PHP_MINIT_FUNCTION()
922 machine_endian_short_map[0] = size - 2; in PHP_MINIT_FUNCTION()
923 machine_endian_short_map[1] = size - 1; in PHP_MINIT_FUNCTION()
924 big_endian_short_map[0] = size - 2; in PHP_MINIT_FUNCTION()
925 big_endian_short_map[1] = size - 1; in PHP_MINIT_FUNCTION()
926 little_endian_short_map[0] = size - 1; in PHP_MINIT_FUNCTION()
927 little_endian_short_map[1] = size - 2; in PHP_MINIT_FUNCTION()
929 machine_endian_long_map[0] = size - 4; in PHP_MINIT_FUNCTION()
930 machine_endian_long_map[1] = size - 3; in PHP_MINIT_FUNCTION()
931 machine_endian_long_map[2] = size - 2; in PHP_MINIT_FUNCTION()
932 machine_endian_long_map[3] = size - 1; in PHP_MINIT_FUNCTION()
933 big_endian_long_map[0] = size - 4; in PHP_MINIT_FUNCTION()
934 big_endian_long_map[1] = size - 3; in PHP_MINIT_FUNCTION()
935 big_endian_long_map[2] = size - 2; in PHP_MINIT_FUNCTION()
936 big_endian_long_map[3] = size - 1; in PHP_MINIT_FUNCTION()
937 little_endian_long_map[0] = size - 1; in PHP_MINIT_FUNCTION()
938 little_endian_long_map[1] = size - 2; in PHP_MINIT_FUNCTION()
939 little_endian_long_map[2] = size - 3; in PHP_MINIT_FUNCTION()
940 little_endian_long_map[3] = size - 4; in PHP_MINIT_FUNCTION()