Home
last modified time | relevance | path

Searched refs:curr_cap (Results 1 – 1 of 1) sorted by relevance

/external/tensorflow/tensorflow/core/platform/
Dctstring_internal.h255 size_t curr_cap = TF_TString_GetCapacity(str); in TF_TString_ResizeUninitialized() local
257 if (new_size < curr_size && new_size < curr_cap / 2) { in TF_TString_ResizeUninitialized()
259 new_cap = TF_align16(curr_cap / 2 + 1) - 1; in TF_TString_ResizeUninitialized()
260 } else if (new_size > curr_cap) { in TF_TString_ResizeUninitialized()
263 new_cap = curr_cap; in TF_TString_ResizeUninitialized()
267 if (new_cap == curr_cap) { in TF_TString_ResizeUninitialized()
347 const size_t curr_cap = TF_TString_GetCapacity(str); in TF_TString_ReserveAmortized() local
348 if (new_cap > curr_cap) { in TF_TString_ReserveAmortized()
349 TF_TString_Reserve(str, new_cap > 2 * curr_cap ? new_cap : 2 * curr_cap); in TF_TString_ReserveAmortized()