Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
429e4fde
Commit
429e4fde
authored
Aug 13, 2014
by
Paolo Carlini
Committed by
Paolo Carlini
Aug 13, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2014-08-13 Paolo Carlini <paolo.carlini@oracle.com>
* Fix thinko in the last commit. From-SVN: r213908
parent
a3ee8851
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
libstdc++-v3/ChangeLog
+4
-0
libstdc++-v3/include/ext/random.tcc
+1
-1
No files found.
libstdc++-v3/ChangeLog
View file @
429e4fde
2014-08-13 Paolo Carlini <paolo.carlini@oracle.com>
* Fix thinko in the last commit.
2014-08-13 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/62118
* include/ext/random.tcc (uniform_on_sphere_helper<2, _RealType>::
operator()): Use std::hypot only when _GLIBCXX_USE_C99_MATH_TR1.
...
...
libstdc++-v3/include/ext/random.tcc
View file @
429e4fde
...
...
@@ -1611,7 +1611,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// accurate.
auto __norm = std::hypot(__ret[0], __ret[1]);
#else
auto __norm = std::sqrt(__
ret[0] * __ret[0] + __ret[1] * __ret[1]
);
auto __norm = std::sqrt(__
sq
);
#endif
__ret[0] /= __norm;
__ret[1] /= __norm;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment