pike.git/
src/
stralloc.c
Branch:
Tag:
Non-build tags
All tags
No tags
2014-09-09
2014-09-09 19:11:03 by Stephen R. van den Berg <srb@cuci.nl>
1d6ae8e9084650b1386d22c58fdaad973e927c3f (
8
lines) (+
3
/-
5
)
[
Show
|
Annotate
]
Branch:
8.0
Faster code.
231:
return 0; }
-
static INLINE
int
min_magnitude(const
p_wchar2
c)
+
static INLINE
unsigned
min_magnitude(const
unsigned
c)
{
-
if(c<0)
return
2;
-
if(
c<256
)
return
0
;
-
if(
c<65536
)
return
1
;
-
return
2;
+
return c<256
?
0
:
c<65536
?
1
:
2;
} void low_set_index(struct pike_string *s, ptrdiff_t pos, int value)