search for: numeric_limits

Displaying 20 results from an estimated 31 matches for "numeric_limits".

2015 Jan 22
3
[LLVMdev] numeric limits of llvm Types?
Hi all, can I access the numeric limits of the llvm types, e.g. HalfTy, FloatTy, DoubleTy, etc. in a fashion like the std numeric_limits tool? std::numeric_limits<half>::min() std::numeric_limits<half>::max() In c++API, I want to initialize values and need to know the correct range for the llvm types.... Thx Alex
2004 May 04
0
[LLVMdev] Plea for help
...the error). Yes, that's exactly what I meant... thanks for reading my mind! :) It looks like this is where things start to go downhill (LiveIntervals.cpp:559): LiveIntervals::Interval::Interval(unsigned r) : reg(r), weight((MRegisterInfo::isPhysicalRegister(r) ? std::numeric_limits<float>::infinity() : 0.0F)) { For a physical register (EDX in this case) it appears that the interval is being created, but gets a 0 weight instead of an infinity weight. This implies that the MRegisterInfo::isPhysicalRegister might have an issue, or std::numeric_limits has an issue. Coul...
2004 May 06
3
[LLVMdev] Plea for help
...>I think that we should switch to C constants in this case. Can you try >#include <math.h> and use HUGE_VAL instead? > It works: [finna at coplin11 ~/test]$ cat tst.cpp #include <limits> #include <iostream> #include <math.h> int main() { std::cerr << std::numeric_limits<float>::infinity() << "\n"; std::cerr << HUGE_VAL << "\n"; } [finna at coplin11 ~/test]$ g++ tst.cpp [finna at coplin11 ~/test]$ ./a.out 0 inf [finna at coplin11 ~/test]$ But making the consequential changes in LLVM seems trickier. Do you plan to corre...
2004 May 05
2
[LLVMdev] Plea for help
Chris Lattner wrote: >Could you try compiling and running this program: > >--- >#include <limits> >#include <iostream> >int main() { > std::cerr << std::numeric_limits<float>::infinity() << "\n"; >} >--- > > Sure thing. It prints "0". Calling that inifinity is somewhat of a stretch, isn't it ? What on earth is going on here? Log: ---------- [finna at coplin11 debug]$ cat - > tst.cpp #include <limits> #...
2004 May 06
0
[LLVMdev] Plea for help
...in this case. Can you try > >#include <math.h> and use HUGE_VAL instead? > > > It works: > > [finna at coplin11 ~/test]$ cat tst.cpp > #include <limits> > #include <iostream> > #include <math.h> > int main() { > std::cerr << std::numeric_limits<float>::infinity() << "\n"; > std::cerr << HUGE_VAL << "\n"; > } > [finna at coplin11 ~/test]$ g++ tst.cpp > [finna at coplin11 ~/test]$ ./a.out > 0 > inf > [finna at coplin11 ~/test]$ > > But making the consequential changes...
2013 Jan 06
0
[LLVMdev] Failure building llvm/clang from source using binary clang package on Fedora 17
...s: 1) In file included from /home/fceldiener/vcs/llvm/include/llvm/Support/SwapByteOrder.h:20: /usr/bin/../lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/limits:1404:27: error: use of undeclared identifier '__int128'; did you mean '__int128_t'? struct numeric_limits<__int128> ^ /usr/bin/../lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/limits:1478:36: error: expected '>' struct numeric_limits<unsigned __int128> ^ /usr/bin/../lib/gcc/x86_64-redhat-linux/...
2004 May 04
4
[LLVMdev] Plea for help
OK, details: I run RH8 (gcc 3.2.something), RH9 (gcc 3.2.2-5) and Fedora. Problems are the same across all setups. Hardware is Athlon 1600+ and half a giga RAM. Runs fail with an assertion when the linear scan allocator is enabled, but runs without problems otherwise. On RH9 (the system I have access to while generating this email) I have the following details: > 1) The LLVM assembly
2015 Apr 05
2
[LLVMdev] problems building llvm-gcc-4.2 on fedora 21
...lvm-obj --enable-languages=c,c++ --disable-multilib when I run: $ make I get the following errors: /home/draikes/src/llvm/include/llvm/ADT/StringRef.h:346:19: error: â EURO ~enable_ifâ EURO (tm) in namespace â EURO ~stdâ EURO (tm) does not name a template type typename std::enable_if<std::numeric_limits<T>::is_signed, bool>::type ^ /home/draikes/src/llvm/include/llvm/ADT/StringRef.h:346:28: error: expected unqualified-id before â EURO ~<â EURO (tm) token typename std::enable_if<std::numeric_limits<T>::is_signed, bool>::type...
2004 May 05
0
[LLVMdev] Plea for help
On Wed, 5 May 2004, Finn S Andersen wrote: > Chris Lattner wrote: > > >Could you try compiling and running this program: > > > >--- > >#include <limits> > >#include <iostream> > >int main() { > > std::cerr << std::numeric_limits<float>::infinity() << "\n"; > >} > >--- > > > > > Sure thing. It prints "0". Calling that inifinity is somewhat > of a stretch, isn't it ? Well I think that explains why the linscan allocator doesn't work for you! :) It looks l...
2012 May 24
1
[LLVMdev] vmkit: Getting Started
...In file included from /home/birdspider/vmkit-test/llvm/include/llvm/Support/SwapByteOrder.h:20: /usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits:1404:27: error: use of undeclared identifier '__int128'; did you mean '__int128_t'? struct numeric_limits<__int128> ^ /usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits:1478:36: error: expected '>' struct numeric_limits<unsigned __int128> ^ /usr/bin/../lib/gcc/x86_64-unknown-...
2013 Jan 06
0
[LLVMdev] Building llvm from source with clang instead of gcc
Edward Diener <eldlistmailingz at tropicsoft.com> writes: >> Clang will attempt to use your installed system libraries, usually >> libstdc++ and glibc on a Linux distribution. We could probably maintain >> a libstdc++ compatibility table that says clang x.y is compatible with >> libstdc++ up to z.w. In the vast majority of cases, this just works if >> you
2004 May 06
2
[LLVMdev] Plea for help
...imenos wrote: > > But making the consequential changes in LLVM seems trickier. > > Do you plan to correct it in CVS, or is there a path I can follow > > to fix it myself on my own installation ? > > The easy way to do it in your area is to replace all occurences of > std::numeric_limits<float>::infinity() with HUGE_VAL. The only two files > that use std::numeric_limits<float>::infinity() are > lib/CodeGen/RegAllocLinearScan.cpp and lib/CodeGen/LiveIntervals.cpp. > > As for CVS, I am not sure this should be fixed because there is > really no LLVM bug here...
2005 May 03
2
[LLVMdev] VC++ build broken
The recently added code: static Constant *Div(const ConstantClass *V1, const ConstantClass *V2) { if (V2->isExactlyValue(0.0)) return ConstantClass::get(*Ty, INFINITY); if (V2->isExactlyValue(-0.0)) return ConstantClass::get(*Ty, -INFINITY); if (V2->isNullValue()) return 0; BuiltinType R = (BuiltinType)V1->getValue() / (BuiltinType)V2->getValue(); return
2005 May 03
0
[LLVMdev] VC++ build broken
...f (V2->isNullValue()) return 0; > BuiltinType R = (BuiltinType)V1->getValue() / (BuiltinType)V2->getValue(); > return ConstantClass::get(*Ty, R); > } > > does not compile with VC++. The symbol INFINITY is undefined, nor is there > an equivalent I can find. Can std::numeric_limits be used? -Chris -- http://nondot.org/sabre/ http://llvm.cs.uiuc.edu/
2005 May 03
2
[LLVMdev] VC++ build broken
...iltinType R = (BuiltinType)V1->getValue() / >> (BuiltinType)V2->getValue(); >> return ConstantClass::get(*Ty, R); >> } >> >> does not compile with VC++. The symbol INFINITY is undefined, nor is >> there an equivalent I can find. > > > Can std::numeric_limits be used? > > -Chris >
2018 Apr 28
1
Possible bug in optimizer
...the original software still crashes, but in this example, probably too much is optimized away). // ------------ a.cpp ------------------ #include <iostream> #include <numeric> #include <limits> #include <cfenv> double f(double A,double B) { if (A<B) return std::numeric_limits<double>::max(); return A-B; } int main(int , char**) { feenableexcept(FE_OVERFLOW); //**** NOTE 1 double A=f(.0001002773902563,1.); std::cout<<A<<std::endl; double B; if (A==std::numeric_limits<double>::max()) { // std::cout<<"Good...
2013 Jan 06
3
[LLVMdev] Building llvm from source with clang instead of gcc
On 1/6/2013 9:47 AM, Justin Holewinski wrote: > On Sat, Jan 5, 2013 at 11:08 PM, Edward Diener > <eldlistmailingz at tropicsoft.com <mailto:eldlistmailingz at tropicsoft.com>> > wrote: > > On 1/5/2013 8:01 PM, Justin Holewinski wrote: > > > On Sat, Jan 5, 2013 at 5:59 PM, Edward Diener > <eldlistmailingz at tropicsoft.__com >
2016 Oct 07
0
Wine release 1.8.5
...ility 'relog.exe' crashes on unimplemented function 'pdh.dll.PdhBindInputDataSourceW' 39874 Alien Shooter crashes often with access violation 39892 UFile crashes with runtime error when rendering certain pages 39950 Cabal II can't be opened, needs msvcp100.dll.?lowest@?$numeric_limits at M@std@@SAMXZ 40034 Linksys usb wireless adapter installer needs wlanapi.dll.WlanEnumInterfaces 40035 VMware shared folders network provider fails loading in MPR 40411 Regedit.exe /e only exports HKLM 40580 TASCAM US-16x08 soundcard controller crashes 40734 Unreal Tournament 3 does...
2010 Jul 09
2
[LLVMdev] APFloat::convertToDouble asserts
> I'd rather not. The functionality you want is there, feed another > APFloat type through APFloat::convert first. > > Using host FP is not something that should be encouraged; the main > point of APFloat is so people don't have to do that. Why do you want > to, btw? > Yes, i got it working using APFloat::convert. I need host float to output to my backend which
2010 Jul 09
0
[LLVMdev] APFloat::convertToDouble asserts
On Jul 9, 2010, at 1:20 PMPDT, Jochen Wilhelmy wrote: >> I'd rather not. The functionality you want is there, feed another >> APFloat type through APFloat::convert first. >> >> Using host FP is not something that should be encouraged; the main >> point of APFloat is so people don't have to do that. Why do you >> want to, btw? > > Yes, i got