Skip to content

Commit

Permalink
remove depracated use of volatile as for #45072
Browse files Browse the repository at this point in the history
  • Loading branch information
VinInn committed May 29, 2024
1 parent ab77a26 commit e00aadf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DataFormats/Math/test/FastMath_t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace {
amax = std::max(amax, std::abs(d));
}

volatile double dummy;
double dummy;
template <typename T>
inline T eta(T x, T y, T z) {
x = z / std::sqrt(x * x + y * y);
Expand Down
4 changes: 2 additions & 2 deletions DataFormats/Math/test/rdtscp.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ namespace {
return false;
}
unsigned int rdtscp_val = 0;
inline volatile unsigned long long rdtsc() { return __rdtscp(&rdtscp_val); }
inline unsigned long long rdtsc() { return __rdtscp(&rdtscp_val); }
} // namespace
#endif
#else // !defined(__arm__) && !defined(__aarch64__)
namespace {
inline bool has_rdtscp() { return false; }
inline volatile unsigned long long rdtsc() { return 0; }
inline unsigned long long rdtsc() { return 0; }
} // namespace
#endif // !defined(__arm__) && !defined(__aarch64__)

Expand Down

0 comments on commit e00aadf

Please sign in to comment.