Shaved around 100 bytes off vsprintf.o. It's now 50 bytes smaller than the old implementation and provides much more conformant semantics, including the ability to return the number of characters that would have been printed to the string had the buffer been big enough. (iSCSI needs this functionality).tags/v0.9.3
|
|
||
|
1 |
|
|
|
2 |
|
|
|
3 |
|
|
|
4 |
|
|
|
5 |
|
|
|
6 |
|
|
|
7 |
|
|
|
8 |
|
|
|
9 |
|
|
|
10 |
|
|
|
11 |
|
|
|
12 |
|
|
|
13 |
|
|
|
14 |
|
|
|
15 |
|
|
|
16 |
|
|
|
17 |
|
|
|
18 |
|
|
1 |
|
19 |
|
2 |
|
20 |
|
3 |
|
21 |
|
4 |
|
22 |
|
5 |
|
23 |
|
6 |
|
24 |
|
7 |
|
|
|
8 |
|
|
|
9 |
|
|
|
10 |
|
|
|
11 |
|
|
|
12 |
|
|
|
|
25 |
|
|
|
26 |
|
|
|
27 |
|
|
|
28 |
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
|
|
|
32 |
|
|
13 |
|
33 |
|
14 |
|
34 |
|
15 |
|
35 |
|
|
|
||
20 |
|
40 |
|
21 |
|
41 |
|
22 |
|
42 |
|
23 |
|
|
|
24 |
|
|
|
25 |
|
43 |
|
26 |
|
44 |
|
27 |
|
45 |
|
|
|
||
48 |
|
66 |
|
49 |
|
67 |
|
50 |
|
68 |
|
|
69 |
|
|
|
70 |
|
|
|
71 |
|
|
|
72 |
|
|
|
73 |
|
|
|
74 |
|
|
|
75 |
|
|
51 |
|
76 |
|
|
77 |
|
|
|
78 |
|
|
|
79 |
|
|
|
80 |
|
|
|
81 |
|
|
|
82 |
|
|
|
83 |
|
|
52 |
|
84 |
|
53 |
|
85 |
|
54 |
|
|
|
|
86 |
|
|
|
87 |
|
|
|
88 |
|
|
|
89 |
|
|
|
90 |
|
|
|
91 |
|
|
|
92 |
|
|
|
93 |
|
|
|
94 |
|
|
|
95 |
|
|
|
96 |
|
|
|
97 |
|
|
|
98 |
|
|
|
99 |
|
|
|
100 |
|
|
|
101 |
|
|
|
102 |
|
|
55 |
|
103 |
|
56 |
|
|
|
|
104 |
|
|
57 |
|
105 |
|
58 |
|
106 |
|
59 |
|
107 |
|
60 |
|
108 |
|
61 |
|
109 |
|
62 |
|
|
|
|
110 |
|
|
63 |
|
111 |
|
64 |
|
112 |
|
65 |
|
113 |
|
66 |
|
114 |
|
67 |
|
|
|
68 |
|
|
|
|
115 |
|
|
|
116 |
|
|
69 |
|
117 |
|
70 |
|
118 |
|
71 |
|
119 |
|
72 |
|
|
|
73 |
|
|
|
|
120 |
|
|
|
121 |
|
|
74 |
|
122 |
|
75 |
|
123 |
|
76 |
|
124 |
|
77 |
|
125 |
|
78 |
|
126 |
|
79 |
|
|
|
80 |
|
|
|
|
127 |
|
|
|
128 |
|
|
|
129 |
|
|
|
130 |
|
|
|
131 |
|
|
|
132 |
|
|
|
133 |
|
|
|
134 |
|
|
|
135 |
|
|
|
136 |
|
|
|
137 |
|
|
|
138 |
|
|
|
139 |
|
|
|
140 |
|
|
|
141 |
|
|
|
142 |
|
|
81 |
|
143 |
|
82 |
|
144 |
|
83 |
|
145 |
|
|
|
||
86 |
|
148 |
|
87 |
|
149 |
|
88 |
|
150 |
|
89 |
|
|
|
|
151 |
|
|
90 |
|
152 |
|
91 |
|
153 |
|
92 |
|
154 |
|
93 |
|
155 |
|
94 |
|
156 |
|
95 |
|
|
|
|
157 |
|
|
96 |
|
158 |
|
97 |
|
159 |
|
98 |
|
|
|
99 |
|
|
|
|
160 |
|
|
|
161 |
|
|
100 |
|
162 |
|
101 |
|
163 |
|
102 |
|
164 |
|
103 |
|
165 |
|
104 |
|
|
|
105 |
|
166 |
|
106 |
|
167 |
|
107 |
|
168 |
|
|
|
||
114 |
|
175 |
|
115 |
|
176 |
|
116 |
|
177 |
|
117 |
|
|
|
118 |
|
|
|
119 |
|
|
|
120 |
|
|
|
121 |
|
178 |
|
|
179 |
|
|
|
180 |
|
|
122 |
|
181 |
|
123 |
|
182 |
|
124 |
|
183 |
|
|
|
||
166 |
|
225 |
|
167 |
|
226 |
|
168 |
|
227 |
|
|
228 |
|
|
|
229 |
|
|
169 |
|
230 |
|
170 |
|
|
|
171 |
|
|
|
|
231 |
|
|
172 |
|
232 |
|
173 |
|
233 |
|
174 |
|
|
|
175 |
|
|
|
176 |
|
|
|
177 |
|
234 |
|
178 |
|
|
|
179 |
|
|
|
|
235 |
|
|
|
236 |
|
|
|
237 |
|
|
|
238 |
|
|
180 |
|
239 |
|
181 |
|
|
|
182 |
|
|
|
183 |
|
|
|
184 |
|
240 |
|
|
241 |
|
|
|
242 |
|
|
185 |
|
243 |
|
186 |
|
244 |
|
187 |
|
245 |
|
|
|
||
190 |
|
248 |
|
191 |
|
249 |
|
192 |
|
250 |
|
193 |
|
|
|
194 |
|
|
|
195 |
|
|
|
196 |
|
|
|
|
251 |
|
|
197 |
|
252 |
|
|
253 |
|
|
|
254 |
|
|
198 |
|
255 |
|
199 |
|
256 |
|
200 |
|
257 |
|
201 |
|
258 |
|
202 |
|
259 |
|
203 |
|
|
|
204 |
|
|
|
205 |
|
|
|
206 |
|
|
|
|
260 |
|
|
207 |
|
261 |
|
208 |
|
|
|
|
262 |
|
|
|
263 |
|
|
|
264 |
|
|
|
265 |
|
|
|
266 |
|
|
209 |
|
267 |
|
210 |
|
268 |
|
211 |
|
269 |
|
|
|
||
3 |
|
3 |
|
4 |
|
4 |
|
5 |
|
5 |
|
6 |
|
|
|
|
6 |
|
|
7 |
|
7 |
|
8 |
|
|
|
9 |
|
|
|
|
8 |
|
|
|
9 |
|
|
10 |
|
10 |
|
11 |
|
|
|
12 |
|
|
|
13 |
|
|
|
14 |
|
|
|
15 |
|
|
|
16 |
|
|
|
17 |
|
|
|
18 |
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
|
|
|
22 |
|
|
|
|
11 |
|
|
|
12 |
|
|
|
13 |
|
|
|
14 |
|
|
|
15 |
|
|
|
16 |
|
|
|
17 |
|
|
|
18 |
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
|
|
|
25 |
|
|
|
26 |
|
|
23 |
|
27 |
|
24 |
|
|
|
25 |
|
|
|
26 |
|
|
|
27 |
|
|
|
28 |
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
|
|
|
32 |
|
|
|
33 |
|
|
|
34 |
|
|
|
35 |
|
|
|
36 |
|
|
|
37 |
|
|
|
38 |
|
|
|
39 |
|
|
|
40 |
|
|
|
41 |
|
|
|
42 |
|
|
|
43 |
|
|
|
|
28 |
|
|
|
29 |
|
|
|
30 |
|
|
44 |
|
31 |
|
45 |
|
32 |
|
46 |
|
33 |
|