ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/CBOR-XS/XS.xs
(Generate patch)

Comparing CBOR-XS/XS.xs (file contents):
Revision 1.61 by root, Sat Nov 26 02:10:19 2016 UTC vs.
Revision 1.62 by root, Sat Nov 26 02:11:52 2016 UTC

187 187
188// minimum length of a string to be registered for stringref 188// minimum length of a string to be registered for stringref
189ecb_inline int 189ecb_inline int
190minimum_string_length (UV idx) 190minimum_string_length (UV idx)
191{ 191{
192
193 return idx <= 23 ? 3 192 return idx <= 23 ? 3
194 : idx <= 0xffU ? 4 193 : idx <= 0xffU ? 4
195 : idx <= 0xffffU ? 5 194 : idx <= 0xffffU ? 5
196 : idx <= 0xffffffffU ? 7 195 : idx <= 0xffffffffU ? 7
197 : 11; 196 : 11;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines