search for: floorf

Displaying 20 results from an estimated 44 matches for "floorf".

Did you mean: floor
2017 Mar 17
2
Instruction Combine Cast (fptrunc (floor x)) -> (floor (fptrunc x))
Hi, I have a test case would fail due to instruction combine cast from floor to floorf. double d = 1024.0 - 1.0 / 32768.0; extern double floor(double); extern float floorf(float); extern void abort(); int main() { float f1 = (float)floor(d); if ((int)f1 != 1023) abort (); return 0; } My question is: Is the transformation legal for this case? Thanks, Shiva
2013 Jul 28
2
[LLVMdev] IntrinsicLowering::AddPrototypes
...re missing from this routine. In particular, floor, which was causing problems in the mips16 port. Is there some reason to not add the ones that are missing? For example, adding the following fixed my problem with floor. case Intrinsic::floor: EnsureFPIntrinsicsExist(M, I, "floorf", "floor", "floor"); break;
2013 Jul 28
0
[LLVMdev] IntrinsicLowering::AddPrototypes
...n particular, floor, which was causing problems in the mips16 port. > > Is there some reason to not add the ones that are missing? > > For example, adding the following fixed my problem with floor. > > case Intrinsic::floor: > EnsureFPIntrinsicsExist(M, I, "floorf", "floor", "floor"); > break;
2013 Jul 29
1
[LLVMdev] IntrinsicLowering::AddPrototypes
...as causing problems in the mips16 port. >> >> Is there some reason to not add the ones that are missing? >> >> For example, adding the following fixed my problem with floor. >> >> case Intrinsic::floor: >> EnsureFPIntrinsicsExist(M, I, "floorf", "floor", "floor"); >> break; >> > > Note that this code is being used mainly (only?) by the Interpreter. Eli -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachment...
2013 Sep 24
5
Problem compiling opus-tools-0.1.7
...445: undefined reference to `sqrtf' /home/peppermint/build/opus-1.1-beta/celt/pitch.c:481: undefined reference to `sqrtf' /usr/local/lib/libopus.a(quant_bands.o): In function `quant_coarse_energy_impl': /home/peppermint/build/opus-1.1-beta/celt/quant_bands.c:202: undefined reference to `floorf' /usr/local/lib/libopus.a(quant_bands.o): In function `quant_fine_energy': /home/peppermint/build/opus-1.1-beta/celt/quant_bands.c:375: undefined reference to `floorf' /usr/local/lib/libopus.a(quant_bands.o): In function `amp2Log2': /home/peppermint/build/opus-1.1-beta/celt/quant_ba...
2013 Sep 24
0
Problem compiling opus-tools-0.1.7
...reference to `sqrtf' > /home/peppermint/build/opus-1.1-beta/celt/pitch.c:481: undefined reference to `sqrtf' > /usr/local/lib/libopus.a(quant_bands.o): In function `quant_coarse_energy_impl': > /home/peppermint/build/opus-1.1-beta/celt/quant_bands.c:202: undefined reference to `floorf' > /usr/local/lib/libopus.a(quant_bands.o): In function `quant_fine_energy': > /home/peppermint/build/opus-1.1-beta/celt/quant_bands.c:375: undefined reference to `floorf' > /usr/local/lib/libopus.a(quant_bands.o): In function `amp2Log2': > /home/peppermint/build/opus-1....
2014 Apr 15
6
[PATCH 0/3] misc. cleanup
Hello, some misc. cleanup patches for speexdsp, nothing big I'm not sure about how to submit patches, so this is a test balloon :) ultimately, I'd like to fix the FIXED_POINT issue, see http://lists.xiph.org/pipermail/speex-dev/2013-December/008465.html currently, I think the only way to find out how speexdsp has been compiled is to resample some bytes and observe the output; which is
2012 Jul 15
1
[LLVMdev] Errors reported in config.log on linux
...:91: warning: conflicting types for built-in function 'strcmp' conftest.c:79: warning: conflicting types for built-in function 'sin' conftest.c:136: warning: conflicting types for built-in function 'ceilf' conftest.c:137: warning: conflicting types for built-in function 'floorf' conftest.c:138: warning: conflicting types for built-in function 'roundf' conftest.c:138: warning: conflicting types for built-in function 'roundf' conftest.c:140: warning: conflicting types for built-in function 'nearbyintf' conftest.c:142: warning: conflicting types f...
2012 Oct 12
2
[LLVMdev] cmake+ninja build error for compiler-rt sources
...ng for index - found -- Looking for isinf -- Looking for isinf - not found -- Looking for isinf -- Looking for isinf - found -- Looking for finite -- Looking for finite - not found -- Looking for isnan -- Looking for isnan - not found -- Looking for ceilf -- Looking for ceilf - found -- Looking for floorf -- Looking for floorf - found -- Looking for fmodf -- Looking for fmodf - found -- Looking for longjmp -- Looking for longjmp - found -- Looking for setjmp -- Looking for setjmp - found -- Looking for siglongjmp -- Looking for siglongjmp - found -- Looking for sigsetjmp -- Looking for sigsetjmp - f...
2012 Oct 13
2
[LLVMdev] [cfe-dev] cmake+ninja build error for compiler-rt sources
...oking for isinf > > -- Looking for isinf - found > > -- Looking for finite > > -- Looking for finite - not found > > -- Looking for isnan > > -- Looking for isnan - not found > > -- Looking for ceilf > > -- Looking for ceilf - found > > -- Looking for floorf > > -- Looking for floorf - found > > -- Looking for fmodf > > -- Looking for fmodf - found > > -- Looking for longjmp > > -- Looking for longjmp - found > > -- Looking for setjmp > > -- Looking for setjmp - found > > -- Looking for siglongjmp > &g...
2012 Oct 12
0
[LLVMdev] cmake+ninja build error for compiler-rt sources
...Looking for isinf - not found > -- Looking for isinf > -- Looking for isinf - found > -- Looking for finite > -- Looking for finite - not found > -- Looking for isnan > -- Looking for isnan - not found > -- Looking for ceilf > -- Looking for ceilf - found > -- Looking for floorf > -- Looking for floorf - found > -- Looking for fmodf > -- Looking for fmodf - found > -- Looking for longjmp > -- Looking for longjmp - found > -- Looking for setjmp > -- Looking for setjmp - found > -- Looking for siglongjmp > -- Looking for siglongjmp - found > --...
2011 Oct 25
0
[LLVMdev] [LLVMDev] Clang stopped compiling?
On Oct 25, 2011, at 6:09 AM, Marcello Maggioni wrote: > Hi, I'm trying to compile the latest clang/llvm SVN versions and I get > this error on multiple systems : Linking, not compiling, but still. I am getting a similar error when building this morning. > Undefined symbols for architecture x86_64: > "clang::Sema::checkPseudoObjectRValue(clang::Expr*)", referenced
2012 Oct 13
0
[LLVMdev] [cfe-dev] cmake+ninja build error for compiler-rt sources
...Looking for isinf - found >> > -- Looking for finite >> > -- Looking for finite - not found >> > -- Looking for isnan >> > -- Looking for isnan - not found >> > -- Looking for ceilf >> > -- Looking for ceilf - found >> > -- Looking for floorf >> > -- Looking for floorf - found >> > -- Looking for fmodf >> > -- Looking for fmodf - found >> > -- Looking for longjmp >> > -- Looking for longjmp - found >> > -- Looking for setjmp >> > -- Looking for setjmp - found >> > -...
2008 Nov 12
0
[LLVMdev] [PATCH] Enable malloc_zone_statistics() in Mac OS X (cmake)
...deletions(-) diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index b8be58e..1f178c7 100755 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -49,6 +49,7 @@ check_symbol_exists(isnan math.h HAVE_ISNAN_IN_MATH_H) check_symbol_exists(ceilf math.h HAVE_CEILF) check_symbol_exists(floorf math.h HAVE_FLOORF) check_symbol_exists(mallinfo malloc.h HAVE_MALLINFO) +check_symbol_exists(malloc_zone_statistics malloc/malloc.h HAVE_MALLOC_ZONE_STATISTICS) check_symbol_exists(pthread_mutex_lock pthread.h HAVE_PTHREAD_MUTEX_LOCK) check_symbol_exists(strtoll stdlib.h HAVE_STRTOLL) diff --...
2011 Jan 05
0
[LLVMdev] include/Config/config.h discrepancies between CMake and autofoo builds
Eric Christopher <echristo at apple.com> writes: >>> Or cleanup both headers from unused stuff by Eric's >>> suggestion? >> >> I'm not sure this is a good idea (not that it is bad either). Murphy's >> Law says that a function that you remove today will be used tomorrow. > > I meant literally functions that aren't used in the
2014 Apr 15
0
[PATCH 2/3] Use fabsf() instead of fabs() since we have floats, not double
...ee(ptr);} #ifdef FIXED_POINT #define WORD2INT(x) ((x) < -32767 ? -32768 : ((x) > 32766 ? 32767 : (x))) #else -#define WORD2INT(x) ((x) < -32767.5f ? -32768 : ((x) > 32766.5f ? 32767 : floor(.5+(x)))) +#define WORD2INT(x) ((x) < -32767.5f ? -32768 : ((x) > 32766.5f ? 32767 : floorf(.5+(x)))) #endif #define IMAX(a,b) ((a) > (b) ? (a) : (b)) @@ -273,12 +273,12 @@ static spx_word16_t sinc(float cutoff, float x, int N, struct FuncDef *window_fu { /*fprintf (stderr, "%f ", x);*/ float xx = x * cutoff; - if (fabs(x)<1e-6f) + if (fabsf...
2014 Apr 15
2
[PATCH 2/3] Use fabsf() instead of fabs() since we have floats, not double
...INT > #define WORD2INT(x) ((x) < -32767 ? -32768 : ((x) > 32766 ? 32767 : (x))) > #else > -#define WORD2INT(x) ((x) < -32767.5f ? -32768 : ((x) > 32766.5f ? 32767 : > floor(.5+(x)))) > +#define WORD2INT(x) ((x) < -32767.5f ? -32768 : ((x) > 32766.5f ? 32767 : > floorf(.5+(x)))) > #endif > > #define IMAX(a,b) ((a) > (b) ? (a) : (b)) > @@ -273,12 +273,12 @@ static spx_word16_t sinc(float cutoff, float x, int > N, struct FuncDef *window_fu > { > /*fprintf (stderr, "%f ", x);*/ > float xx = x * cutoff; > - if (fab...
2011 Jan 05
2
[LLVMdev] include/Config/config.h discrepancies between CMake and autofoo builds
On Jan 5, 2011, at 6:34 AM, Óscar Fuentes wrote: > arrowdodger <6yearold at gmail.com> writes: > >>> Or to say it with other words: patches welcome. >> >> So, how should i proceed? Make CMake-generated config to be identical to >> autotools one? > > That would be a good thing. > > Please note that some checks are a bit tricky. A function that
2012 Oct 13
2
[LLVMdev] [cfe-dev] cmake+ninja build error for compiler-rt sources
...;> > -- Looking for finite > >> > -- Looking for finite - not found > >> > -- Looking for isnan > >> > -- Looking for isnan - not found > >> > -- Looking for ceilf > >> > -- Looking for ceilf - found > >> > -- Looking for floorf > >> > -- Looking for floorf - found > >> > -- Looking for fmodf > >> > -- Looking for fmodf - found > >> > -- Looking for longjmp > >> > -- Looking for longjmp - found > >> > -- Looking for setjmp > >> > -- Looking...
2011 Jan 05
4
[LLVMdev] include/Config/config.h discrepancies between CMake and autofoo builds
...he codebase today maybe > some programmer will need that function tomorrow. And adding an autoconf > check is far from trivial, at least for those not familiarized with the > autotools. > Adding a check for most standard functions is amazingly trivial: AC_CHECK_FUNCS([backtrace ceilf floorf roundf rintf nearbyintf getcwd ]) AC_CHECK_FUNCS([powf fmodf strtof round ]) AC_CHECK_FUNCS([getpagesize getrusage getrlimit setrlimit gettimeofday ]) AC_CHECK_FUNCS([isatty mkdtemp mkstemp ]) AC_CHECK_FUNCS([mktemp posix_spawn realpath sbrk setrlimit strdup ]) AC_CHECK_FUNCS([strerror strerror_r s...