eina_spinlock_free(&ed->mutex);
for (i = 0; i < ed->count; ++i)
- if (ed->all_allocated[i >> 8] & (1 << (i & 0x7)))
+ if (ed->all_allocated[i >> 3] & (1 << (i & 0x7)))
eina_stringshare_del(ed->all[i].str);
free(ed->all);
current = ed->all + ed->count;
- ed->all_allocated[ed->count >> 8] |= (1 << (ed->count & 0x7));
+ ed->all_allocated[ed->count >> 3] |= (1 << (ed->count & 0x7));
ed->all_hash[ed->count] = hash;
current->str = str;
{
#ifdef _WIN32
/* Windows file system could change the mmaped file when replacing a file. So we need to copy all string in memory to avoid bugs. */
- if (!(ed->all_allocated[idx >> 8] & (1 << (idx & 0x7))))
+ if (!(ed->all_allocated[idx >> 3] & (1 << (idx & 0x7))))
{
ed->all[idx].str = eina_stringshare_add(ed->all[idx].str);
- ed->all_allocated[idx >> 8] |= (1 << (idx & 0x7));
+ ed->all_allocated[idx >> 3] |= (1 << (idx & 0x7));
}
#endif /* ifdef _WIN32 */
s = ed->all[idx].str;
if (!res)
{
for (i = 0; i < ed->count; ++i)
- if ((ed->all_allocated[i >> 8] & (1 << (i & 0x7))) && ed->all[i].str == string)
+ if ((ed->all_allocated[i >> 3] & (1 << (i & 0x7))) && ed->all[i].str == string)
{
res = 1;
break;