Lines Matching refs:size

93 static void php_pack(zval *val, size_t size, int *map, char *output)  in php_pack()  argument
101 for (i = 0; i < size; i++) { in php_pack()
690 static zend_long php_unpack(char *data, size_t size, int issigned, int *map) in php_unpack() argument
698 for (i = 0; i < size; i++) { in php_unpack()
747 int size=0; in PHP_FUNCTION() local
784 size = -1; in PHP_FUNCTION()
792 size = 0; in PHP_FUNCTION()
798 size = arg; in PHP_FUNCTION()
804 size = (arg > 0) ? (arg + (arg % 2)) / 2 : arg; in PHP_FUNCTION()
812 size = 1; in PHP_FUNCTION()
820 size = 2; in PHP_FUNCTION()
826 size = sizeof(int); in PHP_FUNCTION()
834 size = 4; in PHP_FUNCTION()
843 size = 8; in PHP_FUNCTION()
855 size = sizeof(float); in PHP_FUNCTION()
862 size = sizeof(double); in PHP_FUNCTION()
872 if (size != 0 && size != -1 && size < 0) { in PHP_FUNCTION()
891 if (size != 0 && size != -1 && INT_MAX - size + 1 < inputpos) { in PHP_FUNCTION()
897 if ((inputpos + size) <= inputlen) { in PHP_FUNCTION()
904 if ((size >= 0) && (len > size)) { in PHP_FUNCTION()
905 len = size; in PHP_FUNCTION()
908 size = len; in PHP_FUNCTION()
919 if ((size >= 0) && (len > size)) { in PHP_FUNCTION()
920 len = size; in PHP_FUNCTION()
923 size = len; in PHP_FUNCTION()
947 if ((size >= 0) && (len > size)) { in PHP_FUNCTION()
948 len = size; in PHP_FUNCTION()
951 size = len; in PHP_FUNCTION()
974 if (size >= 0 && len > (size * 2)) { in PHP_FUNCTION()
975 len = size * 2; in PHP_FUNCTION()
1157 if (inputpos < size) { in PHP_FUNCTION()
1158 inputpos = -size; in PHP_FUNCTION()
1178 inputpos += size; in PHP_FUNCTION()
1180 if (size != -1) { /* only print warning if not working with * */ in PHP_FUNCTION()
1189 …WARNING, "Type %c: not enough input, need %d, have " ZEND_LONG_FMT, type, size, inputlen - inputpo… in PHP_FUNCTION()
1269 int size = sizeof(Z_LVAL(val)); in PHP_MINIT_FUNCTION() local
1273 byte_map[0] = size - 1; in PHP_MINIT_FUNCTION()
1276 int_map[i] = size - (sizeof(int) - i); in PHP_MINIT_FUNCTION()
1279 machine_endian_short_map[0] = size - 2; in PHP_MINIT_FUNCTION()
1280 machine_endian_short_map[1] = size - 1; in PHP_MINIT_FUNCTION()
1281 big_endian_short_map[0] = size - 2; in PHP_MINIT_FUNCTION()
1282 big_endian_short_map[1] = size - 1; in PHP_MINIT_FUNCTION()
1283 little_endian_short_map[0] = size - 1; in PHP_MINIT_FUNCTION()
1284 little_endian_short_map[1] = size - 2; in PHP_MINIT_FUNCTION()
1286 machine_endian_long_map[0] = size - 4; in PHP_MINIT_FUNCTION()
1287 machine_endian_long_map[1] = size - 3; in PHP_MINIT_FUNCTION()
1288 machine_endian_long_map[2] = size - 2; in PHP_MINIT_FUNCTION()
1289 machine_endian_long_map[3] = size - 1; in PHP_MINIT_FUNCTION()
1290 big_endian_long_map[0] = size - 4; in PHP_MINIT_FUNCTION()
1291 big_endian_long_map[1] = size - 3; in PHP_MINIT_FUNCTION()
1292 big_endian_long_map[2] = size - 2; in PHP_MINIT_FUNCTION()
1293 big_endian_long_map[3] = size - 1; in PHP_MINIT_FUNCTION()
1294 little_endian_long_map[0] = size - 1; in PHP_MINIT_FUNCTION()
1295 little_endian_long_map[1] = size - 2; in PHP_MINIT_FUNCTION()
1296 little_endian_long_map[2] = size - 3; in PHP_MINIT_FUNCTION()
1297 little_endian_long_map[3] = size - 4; in PHP_MINIT_FUNCTION()
1300 machine_endian_longlong_map[0] = size - 8; in PHP_MINIT_FUNCTION()
1301 machine_endian_longlong_map[1] = size - 7; in PHP_MINIT_FUNCTION()
1302 machine_endian_longlong_map[2] = size - 6; in PHP_MINIT_FUNCTION()
1303 machine_endian_longlong_map[3] = size - 5; in PHP_MINIT_FUNCTION()
1304 machine_endian_longlong_map[4] = size - 4; in PHP_MINIT_FUNCTION()
1305 machine_endian_longlong_map[5] = size - 3; in PHP_MINIT_FUNCTION()
1306 machine_endian_longlong_map[6] = size - 2; in PHP_MINIT_FUNCTION()
1307 machine_endian_longlong_map[7] = size - 1; in PHP_MINIT_FUNCTION()
1308 big_endian_longlong_map[0] = size - 8; in PHP_MINIT_FUNCTION()
1309 big_endian_longlong_map[1] = size - 7; in PHP_MINIT_FUNCTION()
1310 big_endian_longlong_map[2] = size - 6; in PHP_MINIT_FUNCTION()
1311 big_endian_longlong_map[3] = size - 5; in PHP_MINIT_FUNCTION()
1312 big_endian_longlong_map[4] = size - 4; in PHP_MINIT_FUNCTION()
1313 big_endian_longlong_map[5] = size - 3; in PHP_MINIT_FUNCTION()
1314 big_endian_longlong_map[6] = size - 2; in PHP_MINIT_FUNCTION()
1315 big_endian_longlong_map[7] = size - 1; in PHP_MINIT_FUNCTION()
1316 little_endian_longlong_map[0] = size - 1; in PHP_MINIT_FUNCTION()
1317 little_endian_longlong_map[1] = size - 2; in PHP_MINIT_FUNCTION()
1318 little_endian_longlong_map[2] = size - 3; in PHP_MINIT_FUNCTION()
1319 little_endian_longlong_map[3] = size - 4; in PHP_MINIT_FUNCTION()
1320 little_endian_longlong_map[4] = size - 5; in PHP_MINIT_FUNCTION()
1321 little_endian_longlong_map[5] = size - 6; in PHP_MINIT_FUNCTION()
1322 little_endian_longlong_map[6] = size - 7; in PHP_MINIT_FUNCTION()
1323 little_endian_longlong_map[7] = size - 8; in PHP_MINIT_FUNCTION()