Displaying 20 results from an estimated 68 matches for "cmath".
Did you mean:
math
2018 Feb 06
2
libc++ cross-compile linux-armv7 and math function problems
.../libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/algorithm.cpp.o
-MF projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/algorithm.cpp.o.d
-o projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/algorithm.cpp.o -c
../projects/libcxx/src/algorithm.cpp
In file included from ../projects/libcxx/include/cmath:305:0,
from ../projects/libcxx/include/random:1638,
from ../projects/libcxx/src/algorithm.cpp:11:
../projects/libcxx/include/math.h: In function 'long double abs(long
double)':
../projects/libcxx/include/math.h:742:45: error: '::fabsl' has not been...
2016 Mar 14
2
LLVM-3.8.0 libcxx in-tree build fails with cmath error ::signbit has not been declared
cmake -E cmake_progress_report llvm-3.8.0.src_bld_x86_64-rhel6.4-linux-gnu/CMakeFiles
In file included from llvm-3.8.0.src/projects/libcxx/include/__hash_table:19:0,
from llvm-3.8.0.src/projects/libcxx/src/hash.cpp:10:
llvm-3.8.0.src/projects/libcxx/include/cmath:310:9: error: '::signbit' has not been declared
using ::signbit;
^
llvm-3.8.0.src/projects/libcxx/include/cmath:311:9: error: '::fpclassify' has not been declared
using ::fpclassify;
^
llvm-3.8.0.src/projects/libcxx/include/cmath:312:9: error: '::isfinite'...
2018 Feb 06
0
libc++ cross-compile linux-armv7 and math function problems
...xx/lib/CMakeFiles/cxx_objects.dir/__/src/algorithm.cpp.o -MF projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/algorithm.cpp.o.d -o projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/algorithm.cpp.o -c ../projects/libcxx/src/algorithm.cpp
> In file included from ../projects/libcxx/include/cmath:305:0,
> from ../projects/libcxx/include/random:1638,
> from ../projects/libcxx/src/algorithm.cpp:11:
> ../projects/libcxx/include/math.h: In function 'long double abs(long double)':
> ../projects/libcxx/include/math.h:742:45: error: '::fabs...
2018 Feb 05
0
Cross-compiling libc++ to linux-armv7hf gives undefined symbols in cmath / math.h
.../libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/algorithm.cpp.o -MF
projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/algorithm.cpp.o.d -o
projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/algorithm.cpp.o -c
../projects/libcxx/src/algorithm.cpp
In file included from ../projects/libcxx/include/cmath:305:0,
from ../projects/libcxx/include/random:1638,
from ../projects/libcxx/src/algorithm.cpp:11:
../projects/libcxx/include/math.h: In function 'long double abs(long
double)':
../projects/libcxx/include/math.h:742:45: error: '::fabsl' has not been...
2018 Feb 06
1
libc++ cross-compile linux-armv7 and math function problems
...x_objects.dir/__/src/algorithm.cpp.o
> -MF projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/algorithm.cpp.o.d
> -o projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/algorithm.cpp.o
> -c ../projects/libcxx/src/algorithm.cpp
> > In file included from ../projects/libcxx/include/cmath:305:0,
> > from ../projects/libcxx/include/random:1638,
> > from ../projects/libcxx/src/algorithm.cpp:11:
> > ../projects/libcxx/include/math.h: In function 'long double abs(long
> double)':
> > ../projects/libcxx/include/math.h:7...
2016 Mar 14
2
LLVM-3.8.0 libcxx in-tree build fails with cmath error ::signbit has not been declared
Greetings!
I have been building llvm-3.6.x, 3.7.1 and 3.7.2 with (glibc-2.12.1, binutils-2.24, gcc-4.9.2) almost same set if CMake flags.
However while building LLVM-3.8.0 using same CMake flags I am observing projects/libcxx/include/cmath errors...
...'::signbit' has not been declared
...'::fpclassify' has not been declared
...'::isfinite' has not been declared
...
My environment is...
Glibc-2.12.1
Binutils-2.24
Gcc-4.92.
Llvm-3.8.0
Cmake flags...
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUI...
2004 Jul 19
0
[LLVMdev] IsNAN.cpp:23:3: #error "Don't know how to get isnan()"
Hi Brian,
I've been playing around with your test programs and came to the result:
---------------------
#ifdef __INTERIX
# define _GLIBCPP_USE_C99 1 //Define this macro before including isnan()
function from cmath
#endif
#include <cmath>
using std::isnan;
int foo(float f) {return isnan(f);}
---------------------
/Henrik
>From: "Brian R. Gaeke" <gaeke at uiuc.edu>
>Reply-To: LLVM Developers Mailing List <llvmdev at cs.uiuc.edu>
>To: LLVM Developers Mailing List <ll...
2004 Jul 18
1
[LLVMdev] IsNAN.cpp:23:3: #error "Don't know how to get isnan()"
...t; > IsNAN.cpp:23:3: #error "Don't know how to get isnan()"
> > ---------------------
> >
> > I can see that the .\configure script didn't find any version of
>isnan().
> > However, I've manually found isnan() in
>/opt/gcc.3.3/include/c++/3.3/cmath.
> >
> > Is this another configuration error from Interix or what?
> >
> >
> > /Henrik
> >
> > _________________________________________________________________
> > F
>
>_______________________________________________
>LLVM Developers mailing...
2004 Jul 16
2
[LLVMdev] IsNAN.cpp:23:3: #error "Don't know how to get isnan()"
...ntering directory `/usr/local/src/llvm/lib/Support'
IsNAN.cpp:23:3: #error "Don't know how to get isnan()"
---------------------
I can see that the .\configure script didn't find any version of isnan().
However, I've manually found isnan() in /opt/gcc.3.3/include/c++/3.3/cmath.
Is this another configuration error from Interix or what?
/Henrik
_________________________________________________________________
F� alle de nye og sjove ikoner med MSN Messenger http://www.msn.dk/messenger
2020 Jun 28
2
__restirct ignored when including headers like <cmath>
...+= b[i];
}
}
results in:
; Function Attrs: nofree norecurse nounwind
define dso_local void @_Z7vec_addPiS_i(i32* noalias nocapture %a, i32*
noalias nocapture readonly %b, i32 %n) local_unnam
ed_addr #0 {
entry:
.
.
...
(note the noaliass before function arguments).
But this code:
#include <cmath>
void vec_add(int* __restrict a,
int* __restrict b,
int n) {
#pragma unroll 4
for(int i=0; i<n; ++i) {
a[i] += b[i];
}
}
results in:
; Function Attrs: nofree norecurse nounwind
define dso_local void @_Z7vec_addPiS_i(i32* nocapture %a, i32* nocaptu...
2003 May 06
0
openh323gk installation
when i try to install openh323gk i get the following error please help
ldaplink.cxx:345: call of overloaded `pow(double, unsigned int&)' is
ambiguous
/usr/include/bits/mathcalls.h:143: candidates are: double pow(double,
double)
/usr/include/g++/cmath:427: long double std::pow(long
double,
int)
/usr/include/g++/cmath:423: float std::pow(float, int)
/usr/include/g++/cmath:419: double std::pow(double, int)
/usr/include/g++/cmath:410: long double std::pow(long
double,
long double...
2009 Feb 07
3
New package test results available
...JNI issue.
Some packages use gcc-specific compiler flags:
LogConcDEAD Matching amap geometry memisc taskPR
but the vast majority of the errors reported are C++ errors. One
class that may not be immediately obvious is the use of C headers in
C++: you are supposed to write e.g.
#includd <cmath>
NOT
#include <math.h>
Symptoms of this can be seen for packages
BayesTree EMCC MCMCfglmm MarkedPointProcess Matching Matrix
RQuantlib RandomFields Rcpp SoPhy compHclust dpmix igraph minet
mixer modeest monomvm multic pcaPP rgenoud robfilter segclust
simecol subselect
--...
2007 Apr 22
2
[LLVMdev] Building front end under OS X
When built using the guidelines in the README.LLVM to use the
system's libstdc++ I get the following types of errors whenever I try
to use the standard library (say by running the front end test suite
in llvm/test):
/usr/include/c++/4.0.0/cmath:49:28: error: bits/c++config.h: No such
file or directory
/usr/include/c++/4.0.0/iosfwd:45:29: error: bits/c++locale.h: No such
file or directory
/usr/include/c++/4.0.0/iosfwd:46:25: error: bits/c++io.h: No such
file or directory
/usr/include/c++/4.0.0/bits/atomicity.h:38:30: error: bits/
at...
2020 Aug 31
2
Should llvm optimize 1.0 / x ?
Hi,
Here is a small C++ program:
vec.cc:
#include <cmath>
using v4f32 = float __attribute__((__vector_size__(16)));
v4f32 fct1(v4f32 x)
{
return 1.0 / x;
}
v4f32 fct2(v4f32 x)
{
return __builtin_ia32_rcpps(x);
}
Which is compiled to:
vec.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <_Z4fct1Dv4_f>:...
2017 Mar 27
1
Hyperbolic tangent different results on Windows and Mac
...ps://sourceforge.net/p/mingw-w64/mailman/message/35747206/
On Wed, Mar 22, 2017 at 2:12 PM, Jeroen Ooms <jeroenooms at gmail.com> wrote:
> This looks like a bug in mingw-w64 CRT. The problem can be produced
> with C++ without R:
>
> #include <iostream>
> #include <cmath>
> #include <complex>
>
> int main(){
> std::cout << std::fixed;
> std::complex<double> z(356, 0);
> std::cout << "tanh" << z << " = " << std::tanh(z)
> << " (tanh(356) = "...
2005 Sep 09
1
[LLVMdev] Missing STL include in CVS prevent compilation on vc++.
...m/lib/CodeGen/SelectionDAG/DAGCombiner.cpp 8 Sep 2005
20:18:10 -0000 1.9
+++ llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp 9 Sep 2005
23:11:42 -0000
@@ -41,6 +41,7 @@
#include "llvm/Support/MathExtras.h"
#include "llvm/Target/TargetLowering.h"
#include <cmath>
+#include <algorithm>
using namespace llvm;
2012 Mar 28
2
[LLVMdev] Building past few days with Clang++ and Clang produces errors on Cmake for Debian Linux
...e/llvm/ADT/SmallVector.h:17:
> In file included from
> /home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/include/llvm/Support/type_traits.h:20:
> */home/mdriftmeyer/DeveloperProjects/LLVMProject/cmake-llvm/include/llvm/Support/DataTypes.h:36:10:
> fatal error:
> 'cmath' file not found
> #include <cmath>*
> ^
> [ 0%] Building C object
> runtime/libprofile/CMakeFiles/profile_rt-shared.dir/GCDAProfiling.c.o
> [ 0%] Building C object
> runtime/libprofile/CMakeFiles/profile_rt-shared.dir/PathProfiling.c.o
> 1 error generated...
2007 Apr 22
0
[LLVMdev] Building front end under OS X
...2007, Christopher Lamb wrote:
> When built using the guidelines in the README.LLVM to use the system's
> libstdc++ I get the following types of errors whenever I try to use the
> standard library (say by running the front end test suite in llvm/test):
>
> /usr/include/c++/4.0.0/cmath:49:28: error: bits/c++config.h: No such file or
> directory
> /usr/include/c++/4.0.0/iosfwd:45:29: error: bits/c++locale.h: No such file or
> directory
> /usr/include/c++/4.0.0/iosfwd:46:25: error: bits/c++io.h: No such file or
> directory
> /usr/include/c++/4.0.0/bits/atomicit...
2014 Sep 17
2
[LLVMdev] fail to compile latest llvm?
...timens... no
checking if printf has the %a format character... yes
checking for srand48/lrand48/drand48 in <stdlib.h>... yes
checking whether arc4random is declared... yes
checking whether strerror_s is declared... no
checking for isnan in <math.h>... yes
checking for isnan in <cmath>... yes
checking for std::isnan in <cmath>... yes
checking for isinf in <math.h>... yes
checking for isinf in <cmath>... yes
checking for std::isinf in <cmath>... yes
checking for finite in <ieeefp.h>... no
checking for stdlib.h... (cached) yes
checking for u...
2006 Oct 29
1
[LLVMdev] LLVM for numerical computations
...ad of assembling the LLVM code, optimising and
compiling it during the first execution would not be significant
overhaul. It also seems to me that LLVM would generate very efficient
code.
Am I correct? Does it make sense to use LLVM for such a purpose?
How would the functions defined in <cmath> be called from the LLVM code?
How would I best specify in LLVM where to find the values of the
independent variables? That is to say the inputs for the whole
computation LLVM will perform…
You may actually wonder why I do not kit each node with two member
functions compute_value and com...