Lines Matching refs:total
1098 size_t total = desired_total; in fread_unlocked() local
1099 if (total == 0) return 0; in fread_unlocked()
1111 while (total > 0) { in fread_unlocked()
1113 size_t buffered_bytes = MIN(static_cast<size_t>(fp->_r), total); in fread_unlocked()
1118 total -= buffered_bytes; in fread_unlocked()
1121 if (total == 0) goto out; in fread_unlocked()
1124 if (total > static_cast<size_t>(fp->_bf._size)) break; in fread_unlocked()
1131 while (total > 0) { in fread_unlocked()
1133 int chunk_size = MIN(total, INT_MAX); in fread_unlocked()
1140 total -= bytes_read; in fread_unlocked()
1144 return ((desired_total - total) / size); in fread_unlocked()