mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-16 19:22:22 +03:00
simplifies u3r_mug_words bytewidth loop
This commit is contained in:
parent
a82a68df21
commit
a89db3ccc3
@ -1506,14 +1506,12 @@ u3r_mug_string(const c3_c *a_c)
|
|||||||
c3_w
|
c3_w
|
||||||
u3r_mug_words(const c3_w* key_w, c3_w len_w)
|
u3r_mug_words(const c3_w* key_w, c3_w len_w)
|
||||||
{
|
{
|
||||||
c3_w siz_w = 0;
|
|
||||||
c3_w byt_w = 0;
|
c3_w byt_w = 0;
|
||||||
c3_w wor_w;
|
c3_w wor_w;
|
||||||
|
|
||||||
while ( siz_w < len_w ) {
|
while ( 0 < len_w ) {
|
||||||
wor_w = key_w[siz_w];
|
wor_w = key_w[--len_w];
|
||||||
byt_w += _(u3a_is_cat(wor_w)) ? u3r_met(3, wor_w) : 4;
|
byt_w += _(u3a_is_cat(wor_w)) ? u3r_met(3, wor_w) : 4;
|
||||||
siz_w++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return u3r_mug_bytes((c3_y*)key_w, byt_w);
|
return u3r_mug_bytes((c3_y*)key_w, byt_w);
|
||||||
|
Loading…
Reference in New Issue
Block a user