[Bug libstdc++/78975] uniform_real_distribution should not check RealType with is_floating_point

2017-01-03 Thread charles at karney dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78975 --- Comment #2 from Charles Karney --- Gag... I see that the standard indeed restricts the implementation to float, double, and long double. Was this really the intention? Everything carries over beautifully for arbitrary types that "behave" a

[Bug libstdc++/78975] New: uniform_real_distribution should not check RealType with is_floating_point

2017-01-03 Thread charles at karney dot com
: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: charles at karney dot com Target Milestone: --- random's uniform_real_distribution checks the its template argument with is_floating_point. This means it can'

[Bug libstdc++/63780] std::remquo returns wrong quotient

2014-11-09 Thread charles at karney dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63780 --- Comment #3 from Charles Karney --- Thanks Jonathan. I've submitted a glibc bug report using your version. See https://sourceware.org/bugzilla/show_bug.cgi?id=17569

[Bug libstdc++/63780] std::remquo returns wrong quotient

2014-11-08 Thread charles at karney dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63780 --- Comment #1 from Charles Karney --- Created attachment 33922 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33922&action=edit Assembly file

[Bug libstdc++/63780] New: std::remquo returns wrong quotient

2014-11-08 Thread charles at karney dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: charles at karney dot com Created attachment 33921 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33921&action=edit intermediate output from compiler This code: #include #include int main() { int n; double x =