| 253 | } |
| 254 | |
| 255 | LoopStructure GetLoopStructure(int thread_count, int rows, int cols, int depth, |
| 256 | int cache_friendly_traversal_threshold) { |
| 257 | if (thread_count == 1 && |
| 258 | (rows + cols) * depth < cache_friendly_traversal_threshold) { |
| 259 | return LoopStructure::kSimple; |
| 260 | } |
| 261 | return LoopStructure::kGeneral; |
| 262 | } |
| 263 | |
| 264 | } // namespace |
| 265 |