Skip to content

Commit

Permalink
Add sb_devtools_bin2asm
Browse files Browse the repository at this point in the history
  • Loading branch information
tkittel committed Apr 11, 2024
1 parent 7a1846e commit 421e8ef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/simplebuild_dgcode/data/pkgs/DevTools/scripts/bin2asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
echo "Running: objdump --no-show-raw-insn -S" "$@"
objdump --no-show-raw-insn -S "$@"
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ inline double SimpleHists::Hist1D::getBinContent(unsigned ibin) const
inline double SimpleHists::Hist1D::getBinError(unsigned ibin) const
{
assert(ibin<m_data.nbins);
return sqrt(m_errors ? m_errors[ibin] : m_content[ibin]);
return std::sqrt(m_errors ? m_errors[ibin] : m_content[ibin]);
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ void SimpleHists::Hist1D::initErrors()
void SimpleHists::Hist1D::setErrorsByContent()
{
delete[] m_errors;
m_errors = 0;
m_errors = nullptr;
}

double SimpleHists::Hist1D::getMaxContent() const
Expand Down

0 comments on commit 421e8ef

Please sign in to comment.