diff options
| author | Mingming Liu <mingmingl@google.com> | 2025-09-10 15:25:31 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-10 15:25:31 -0700 |
| commit | 1417dafa1db9cb1b2b09438aa9f53ea5ab6e36e2 (patch) | |
| tree | 57f4b1f313c8cf74eed8819870f39c36ea263c68 /flang-rt/lib/runtime/extrema.cpp | |
| parent | 898b813bc8a6d0276bf0f4769f5f2f64b34e632d (diff) | |
| parent | b8cefcb601ddaa18482555c4ff363c01a270c2fe (diff) | |
Merge branch 'main' into users/mingmingl-llvm/samplefdo-profile-formatusers/mingmingl-llvm/samplefdo-profile-format
Diffstat (limited to 'flang-rt/lib/runtime/extrema.cpp')
| -rw-r--r-- | flang-rt/lib/runtime/extrema.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/flang-rt/lib/runtime/extrema.cpp b/flang-rt/lib/runtime/extrema.cpp index 03e574a8fbff..9846529665e8 100644 --- a/flang-rt/lib/runtime/extrema.cpp +++ b/flang-rt/lib/runtime/extrema.cpp @@ -428,7 +428,7 @@ inline RT_API_ATTRS void TypedPartialMaxOrMinLoc(const char *intrinsic, CreatePartialReductionResult(result, x, Descriptor::BytesFor(TypeCategory::Integer, kind), dim, terminator, intrinsic, TypeCode{TypeCategory::Integer, kind}); - std::memset( + runtime::memset( result.OffsetElement(), 0, result.Elements() * result.ElementBytes()); return; } @@ -584,11 +584,11 @@ public: static_assert(std::is_same_v<A, Type>); std::size_t byteSize{array_.ElementBytes()}; if (extremum_) { - std::memcpy(p, extremum_, byteSize); + runtime::memcpy(p, extremum_, byteSize); } else { // Empty array; fill with character 0 for MAXVAL. // For MINVAL, set all of the bits. - std::memset(p, IS_MAXVAL ? 0 : 255, byteSize); + runtime::memset(p, IS_MAXVAL ? 0 : 255, byteSize); } } RT_API_ATTRS bool Accumulate(const Type *x) { |
