Lines Matching refs:ranges
150 struct range ranges[__LC_LAST - 1]; in _nl_load_locale_from_archive() local
328 ranges[nranges].from = locrec->record[cnt].offset; in _nl_load_locale_from_archive()
329 ranges[nranges].len = locrec->record[cnt].len; in _nl_load_locale_from_archive()
330 ranges[nranges].category = cnt; in _nl_load_locale_from_archive()
331 ranges[nranges].result = NULL; in _nl_load_locale_from_archive()
336 qsort (ranges, nranges, sizeof (ranges[0]), rangecmp); in _nl_load_locale_from_archive()
352 <= ranges[cnt].from + ranges[cnt].len)) in _nl_load_locale_from_archive()
360 && mapped->from <= ranges[cnt].from in _nl_load_locale_from_archive()
361 && (ranges[cnt].from + ranges[cnt].len in _nl_load_locale_from_archive()
365 results[ranges[cnt].category].addr = ((char *) mapped->ptr in _nl_load_locale_from_archive()
366 + ranges[cnt].from in _nl_load_locale_from_archive()
368 results[ranges[cnt].category].len = ranges[cnt].len; in _nl_load_locale_from_archive()
377 from = ranges[cnt].from & ~(ps - 1); in _nl_load_locale_from_archive()
381 to = ranges[upper].from + ranges[upper].len; in _nl_load_locale_from_archive()
388 if (mapped != NULL && ranges[upper].from >= mapped->from) in _nl_load_locale_from_archive()
394 while (upper < nranges && ranges[upper].from < to + ps); in _nl_load_locale_from_archive()
442 assert (ranges[cnt].from >= from); in _nl_load_locale_from_archive()
443 results[ranges[cnt].category].addr = ((char *) addr in _nl_load_locale_from_archive()
444 + ranges[cnt].from - from); in _nl_load_locale_from_archive()
445 results[ranges[cnt].category].len = ranges[cnt].len; in _nl_load_locale_from_archive()