Lines Matching refs:size
94 static void php_pack(zval **val, int size, int *map, char *output) in php_pack() argument
102 for (i = 0; i < size; i++) { in php_pack()
547 static long php_unpack(char *data, int size, int issigned, int *map) in php_unpack() argument
555 for (i = 0; i < size; i++) { in php_unpack()
602 int size=0; in PHP_FUNCTION() local
639 size = -1; in PHP_FUNCTION()
643 size = 0; in PHP_FUNCTION()
649 size = arg; in PHP_FUNCTION()
655 size = (arg > 0) ? (arg + (arg % 2)) / 2 : arg; in PHP_FUNCTION()
663 size = 1; in PHP_FUNCTION()
671 size = 2; in PHP_FUNCTION()
677 size = sizeof(int); in PHP_FUNCTION()
685 size = 4; in PHP_FUNCTION()
694 size = 8; in PHP_FUNCTION()
704 size = sizeof(float); in PHP_FUNCTION()
709 size = sizeof(double); in PHP_FUNCTION()
719 if (size != 0 && size != -1 && size < 0) { in PHP_FUNCTION()
738 if (size != 0 && size != -1 && INT_MAX - size + 1 < inputpos) { in PHP_FUNCTION()
744 if ((inputpos + size) <= inputlen) { in PHP_FUNCTION()
751 if ((size >= 0) && (len > size)) { in PHP_FUNCTION()
752 len = size; in PHP_FUNCTION()
755 size = len; in PHP_FUNCTION()
766 if ((size >= 0) && (len > size)) { in PHP_FUNCTION()
767 len = size; in PHP_FUNCTION()
770 size = len; in PHP_FUNCTION()
794 if ((size >= 0) && (len > size)) { in PHP_FUNCTION()
795 len = size; in PHP_FUNCTION()
798 size = len; in PHP_FUNCTION()
821 if (size >= 0 && len > (size * 2)) { in PHP_FUNCTION()
822 len = size * 2; in PHP_FUNCTION()
985 if (inputpos < size) { in PHP_FUNCTION()
986 inputpos = -size; in PHP_FUNCTION()
1006 inputpos += size; in PHP_FUNCTION()
1008 if (size != -1) { /* only print warning if not working with * */ in PHP_FUNCTION()
1017 …SRMLS_CC, E_WARNING, "Type %c: not enough input, need %d, have %d", type, size, inputlen - inputpo… in PHP_FUNCTION()
1095 int size = sizeof(Z_LVAL(val)); in PHP_MINIT_FUNCTION() local
1099 byte_map[0] = size - 1; in PHP_MINIT_FUNCTION()
1102 int_map[i] = size - (sizeof(int) - i); in PHP_MINIT_FUNCTION()
1105 machine_endian_short_map[0] = size - 2; in PHP_MINIT_FUNCTION()
1106 machine_endian_short_map[1] = size - 1; in PHP_MINIT_FUNCTION()
1107 big_endian_short_map[0] = size - 2; in PHP_MINIT_FUNCTION()
1108 big_endian_short_map[1] = size - 1; in PHP_MINIT_FUNCTION()
1109 little_endian_short_map[0] = size - 1; in PHP_MINIT_FUNCTION()
1110 little_endian_short_map[1] = size - 2; in PHP_MINIT_FUNCTION()
1112 machine_endian_long_map[0] = size - 4; in PHP_MINIT_FUNCTION()
1113 machine_endian_long_map[1] = size - 3; in PHP_MINIT_FUNCTION()
1114 machine_endian_long_map[2] = size - 2; in PHP_MINIT_FUNCTION()
1115 machine_endian_long_map[3] = size - 1; in PHP_MINIT_FUNCTION()
1116 big_endian_long_map[0] = size - 4; in PHP_MINIT_FUNCTION()
1117 big_endian_long_map[1] = size - 3; in PHP_MINIT_FUNCTION()
1118 big_endian_long_map[2] = size - 2; in PHP_MINIT_FUNCTION()
1119 big_endian_long_map[3] = size - 1; in PHP_MINIT_FUNCTION()
1120 little_endian_long_map[0] = size - 1; in PHP_MINIT_FUNCTION()
1121 little_endian_long_map[1] = size - 2; in PHP_MINIT_FUNCTION()
1122 little_endian_long_map[2] = size - 3; in PHP_MINIT_FUNCTION()
1123 little_endian_long_map[3] = size - 4; in PHP_MINIT_FUNCTION()
1126 machine_endian_longlong_map[0] = size - 8; in PHP_MINIT_FUNCTION()
1127 machine_endian_longlong_map[1] = size - 7; in PHP_MINIT_FUNCTION()
1128 machine_endian_longlong_map[2] = size - 6; in PHP_MINIT_FUNCTION()
1129 machine_endian_longlong_map[3] = size - 5; in PHP_MINIT_FUNCTION()
1130 machine_endian_longlong_map[4] = size - 4; in PHP_MINIT_FUNCTION()
1131 machine_endian_longlong_map[5] = size - 3; in PHP_MINIT_FUNCTION()
1132 machine_endian_longlong_map[6] = size - 2; in PHP_MINIT_FUNCTION()
1133 machine_endian_longlong_map[7] = size - 1; in PHP_MINIT_FUNCTION()
1134 big_endian_longlong_map[0] = size - 8; in PHP_MINIT_FUNCTION()
1135 big_endian_longlong_map[1] = size - 7; in PHP_MINIT_FUNCTION()
1136 big_endian_longlong_map[2] = size - 6; in PHP_MINIT_FUNCTION()
1137 big_endian_longlong_map[3] = size - 5; in PHP_MINIT_FUNCTION()
1138 big_endian_longlong_map[4] = size - 4; in PHP_MINIT_FUNCTION()
1139 big_endian_longlong_map[5] = size - 3; in PHP_MINIT_FUNCTION()
1140 big_endian_longlong_map[6] = size - 2; in PHP_MINIT_FUNCTION()
1141 big_endian_longlong_map[7] = size - 1; in PHP_MINIT_FUNCTION()
1142 little_endian_longlong_map[0] = size - 1; in PHP_MINIT_FUNCTION()
1143 little_endian_longlong_map[1] = size - 2; in PHP_MINIT_FUNCTION()
1144 little_endian_longlong_map[2] = size - 3; in PHP_MINIT_FUNCTION()
1145 little_endian_longlong_map[3] = size - 4; in PHP_MINIT_FUNCTION()
1146 little_endian_longlong_map[4] = size - 5; in PHP_MINIT_FUNCTION()
1147 little_endian_longlong_map[5] = size - 6; in PHP_MINIT_FUNCTION()
1148 little_endian_longlong_map[6] = size - 7; in PHP_MINIT_FUNCTION()
1149 little_endian_longlong_map[7] = size - 8; in PHP_MINIT_FUNCTION()