Lines Matching refs:size
87 static void php_pack(zval **val, int size, int *map, char *output) in php_pack() argument
95 for (i = 0; i < size; i++) { in php_pack()
488 static long php_unpack(char *data, int size, int issigned, int *map) in php_unpack() argument
496 for (i = 0; i < size; i++) { in php_unpack()
543 int size=0; in PHP_FUNCTION() local
580 size = -1; in PHP_FUNCTION()
584 size = 0; in PHP_FUNCTION()
589 size = arg; in PHP_FUNCTION()
595 size = (arg > 0) ? (arg + (arg % 2)) / 2 : arg; in PHP_FUNCTION()
603 size = 1; in PHP_FUNCTION()
611 size = 2; in PHP_FUNCTION()
617 size = sizeof(int); in PHP_FUNCTION()
625 size = 4; in PHP_FUNCTION()
630 size = sizeof(float); in PHP_FUNCTION()
635 size = sizeof(double); in PHP_FUNCTION()
645 if (size != 0 && size != -1 && size < 0) { in PHP_FUNCTION()
664 if (size != 0 && size != -1 && INT_MAX - size + 1 < inputpos) { in PHP_FUNCTION()
670 if ((inputpos + size) <= inputlen) { in PHP_FUNCTION()
678 if ((size >= 0) && (len > size)) { in PHP_FUNCTION()
679 len = size; in PHP_FUNCTION()
682 size = len; in PHP_FUNCTION()
703 if (size >= 0 && len > (size * 2)) { in PHP_FUNCTION()
704 len = size * 2; in PHP_FUNCTION()
835 if (inputpos < size) { in PHP_FUNCTION()
836 inputpos = -size; in PHP_FUNCTION()
856 inputpos += size; in PHP_FUNCTION()
858 if (size != -1) { /* only print warning if not working with * */ in PHP_FUNCTION()
867 …SRMLS_CC, E_WARNING, "Type %c: not enough input, need %d, have %d", type, size, inputlen - inputpo… in PHP_FUNCTION()
918 int size = sizeof(Z_LVAL(val)); in PHP_MINIT_FUNCTION() local
922 byte_map[0] = size - 1; in PHP_MINIT_FUNCTION()
925 int_map[i] = size - (sizeof(int) - i); in PHP_MINIT_FUNCTION()
928 machine_endian_short_map[0] = size - 2; in PHP_MINIT_FUNCTION()
929 machine_endian_short_map[1] = size - 1; in PHP_MINIT_FUNCTION()
930 big_endian_short_map[0] = size - 2; in PHP_MINIT_FUNCTION()
931 big_endian_short_map[1] = size - 1; in PHP_MINIT_FUNCTION()
932 little_endian_short_map[0] = size - 1; in PHP_MINIT_FUNCTION()
933 little_endian_short_map[1] = size - 2; in PHP_MINIT_FUNCTION()
935 machine_endian_long_map[0] = size - 4; in PHP_MINIT_FUNCTION()
936 machine_endian_long_map[1] = size - 3; in PHP_MINIT_FUNCTION()
937 machine_endian_long_map[2] = size - 2; in PHP_MINIT_FUNCTION()
938 machine_endian_long_map[3] = size - 1; in PHP_MINIT_FUNCTION()
939 big_endian_long_map[0] = size - 4; in PHP_MINIT_FUNCTION()
940 big_endian_long_map[1] = size - 3; in PHP_MINIT_FUNCTION()
941 big_endian_long_map[2] = size - 2; in PHP_MINIT_FUNCTION()
942 big_endian_long_map[3] = size - 1; in PHP_MINIT_FUNCTION()
943 little_endian_long_map[0] = size - 1; in PHP_MINIT_FUNCTION()
944 little_endian_long_map[1] = size - 2; in PHP_MINIT_FUNCTION()
945 little_endian_long_map[2] = size - 3; in PHP_MINIT_FUNCTION()
946 little_endian_long_map[3] = size - 4; in PHP_MINIT_FUNCTION()