Skip to content

Commit

Permalink
Minor cleanup, Windows+Bazel build fixes
Browse files Browse the repository at this point in the history
add app.h comment
compress-inl: remove unused typedef
gemma-inl: add missing HWY_ATTR
separate sum-inl.h and basics.h headers
update include pragmas
update dot_test thresholds
update Highway version in Bazel for HWY_RCAST_ALIGNED fix
PiperOrigin-RevId: 684398826
  • Loading branch information
jan-wassenberg authored and copybara-github committed Oct 10, 2024
1 parent 2f0842c commit 4777651
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hwy/contrib/thread_pool/topology.cc
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,8 @@ void SetNodes(std::vector<Topology::LP>& lps) {
const auto find = [buf200, &pos](char c) -> size_t {
const char* found_ptr = strchr(buf200 + pos, c);
if (found_ptr == nullptr) return kNotFound;
const size_t found_pos = found_ptr - buf200;
HWY_ASSERT(found_ptr >= buf200 + pos);
const size_t found_pos = static_cast<size_t>(found_ptr - buf200);
HWY_ASSERT(found_pos >= pos && buf200[found_pos] == c);
return found_pos;
};
Expand Down

0 comments on commit 4777651

Please sign in to comment.