Displaying 20 results from an estimated 21 matches for "lrint".
Did you mean:
print
2014 Nov 06
2
[PATCH] float_cast: Fix MSVC ARM build
---
celt/float_cast.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/celt/float_cast.h b/celt/float_cast.h
index ede6574..4892e2c 100644
--- a/celt/float_cast.h
+++ b/celt/float_cast.h
@@ -90,14 +90,14 @@
#include <math.h>
#define float2int(x) lrint(x)
-#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN64) || defined (_WIN64))
+#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN64) || defined (_WIN64)) && !defined(_M_ARM)
#include <xmmintrin.h>
__i...
2019 Apr 14
1
Opus cmake build
...e-rfc8251, --disable-hardening, --enable-fixed-point-debug,
--enable-float-approx, --enable-fuzzing, and --enable-check-asm.
I tried a cmake build on a non-x86 Linux host but encountered numerous
warnings of the form:
celt/float_cast.h:129:10: warning: #warning "Don't have the functions
lrint() and lrintf ()." [-Wcpp]
celt/float_cast.h:130:10: warning: #warning "Replacing these functions
with a standard C cast." [-Wcpp]
The host does have both the lrint and lrintf functions; the problem is
that cmake did not define either HAVE_LRINT or HAVE_LRINTF.
- Mark
2014 Nov 06
2
[PATCH] float_cast: Fix MSVC ARM build
..., 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/celt/float_cast.h b/celt/float_cast.h
>> index ede6574..4892e2c 100644
>> --- a/celt/float_cast.h
>> +++ b/celt/float_cast.h
>> @@ -90,14 +90,14 @@
>> #include <math.h>
>> #define float2int(x) lrint(x)
>>
>> -#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN64) ||
>> defined (_WIN64))
>> +#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN64) ||
>> defined (_WIN64)) && !defined(_M_ARM)
>>...
2018 Sep 07
4
Clang for the PlayStation 2
..._TO_SINT itself too. The
> one with the store is just there as an optimization; if it doesn't
> trigger (because of your diff) then lowerFP_TO_SINT will still create
> a bad node afterwards.
>
Thank you!
With that, the four bugs I found in newlib's C code are dead. I think the
lrint fix should be upstreamed right away; would you mind if I credited you
in the patch?
Unfortunately, we are not out of the woods yet. If memory serves me
correctly, newlib has some assembly code in used for things like `_start`
to bring up the C runtime, which GNU binutils accepts and Clang's as...
2007 Feb 03
0
need help with MSVC
...t; the closest thing I found was ntohl() which appears to be a
> function call
Avoid that like the plague.
> 2nd, I need an equivalent for lround() (or round() is ok), which
> is not in MSVC6's math.h or anywhere else I could find.
The operation of lround() is basically the same as lrint(). In
src/float_cast.h I have:
__inline long int
lrint (double flt)
{ int intgr ;
_asm
{ fld flt
fistp intgr
} ;
return intgr ;
}
__inline long int
lrintf (float flt)
{ int intgr ;
_asm
{ fld flt
fistp intgr
} ;
return intgr ;
}
Hope this helps,
Erik
--
+--...
2010 Oct 16
1
WIN64 issue
...with the occasional benign warning message) except for one place,
and that is in "float_cast.h" where there is some inline assembly
language that gets complied for Windows. Since the Microsoft 64-bit
compiler won't allow inline assembly language (and *still* doesn't have
"lrintf"), I suggest the following change to use intrinsics for the
64-bit compiler:
--- float_cast.h Sat Oct 17 19:51:32 2009
+++ new\float_cast.h Fri Oct 15 12:09:38 2010
@@ -72,8 +72,14 @@
#include <math.h>
#define float2int(x) lrint(x)
-#elif (defined (WIN32) || defined (_WIN...
2007 Feb 03
3
need help with MSVC
for recent code changes I find myself needing some workarounds
for MSVC6:
1st, I need a fast way to swap bytes (for endianness) of a 32-bit
int. I could not find a builtin like bswap; the closest thing I
found was ntohl() which appears to be a function call and also
requires linking with winsock2 (ws2_32.lib) to get it.
2nd, I need an equivalent for lround() (or round() is ok), which
is not in
2014 Nov 06
2
[PATCH] float_cast: Fix MSVC ARM build
...ff --git a/celt/float_cast.h b/celt/float_cast.h
> >>> index ede6574..4892e2c 100644
> >>> --- a/celt/float_cast.h
> >>> +++ b/celt/float_cast.h
> >>> @@ -90,14 +90,14 @@
> >>> #include <math.h>
> >>> #define float2int(x) lrint(x)
> >>>
> >>> -#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN64) ||
> >>> defined (_WIN64))
> >>> +#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN64) ||
> >>> defined (_...
2004 Jun 19
1
RxFax problems
...andsp/arctan2.h:51: warning: implicit declaration of function
`fabs'
In file included from ../include/spandsp.h:47,
from app_rxfax.c:29:
../include/spandsp/dc_restore.h: In function `fsaturate':
../include/spandsp/dc_restore.h:105: warning: implicit declaration of
function `lrint'
app_rxfax.c: At top level:
app_rxfax.c:50: warning: no previous prototype for `t30_flush'
app_rxfax.c:57: warning: no previous prototype for `phase_e_handler' gcc
-shared -Xlinker -x -I/usr/src/spandsp-0.0.1/src -o app_rxfax.so
app_rxfax.o -L/usr/src/spandsp-0.0.1/src -lspandsp -ltiff...
2019 Apr 11
2
Opus cmake build
On Wed, Apr 10, 2019 at 5:30 PM Marcus Asteborg <xnorpx at outlook.com> wrote:
> Hi Mark,
>
> Thanks for the feedback.
>
> By default CMake is building the static library in debug, to get other
> things one has to explicit turn it on.
>
>
Hi,
By default CMake uses the "empty" build, which is used in combination with
the environment variables CFLAGS and
2014 Nov 07
0
opus Digest, Vol 70, Issue 3
...l-hugo at beauzee.fr>
---
celt/float_cast.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/celt/float_cast.h b/celt/float_cast.h
index ede6574..4892e2c 100644
--- a/celt/float_cast.h
+++ b/celt/float_cast.h
@@ -90,14 +90,14 @@
#include <math.h>
#define float2int(x) lrint(x)
-#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN64) ||
defined (_WIN64))
+#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN64) ||
defined (_WIN64)) && !defined(_M_ARM)
#include <xmmintrin.h>
__inl...
2018 Sep 07
2
Clang for the PlayStation 2
On Fri, 7 Sep 2018 at 16:59, Tim Northover <t.p.northover at gmail.com> wrote:
> $ clang -target mips64el-img-linux -mcpu=mips3 -S -o- -Os tmp.c
>
Actually, I just tried your flags; you're missing `-msingle-float`, which
is what reproduces the crash on my end. Without it there is no problem.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2005 Sep 08
2
play each person's voicemail
How do I set each extension to play it's own voicemail prompts? I have vm
working in that it plays the standard "person at extension 1234 is not
available....." and takes the message. I've recorded seperate .gsm files for
each user but can not figure out how to use them.
- Gary
Edison Information Technologies www.EdisonInfo.com
P.O. Box 554
2014 Nov 06
0
[PATCH] float_cast: Fix MSVC ARM build
...t.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/celt/float_cast.h b/celt/float_cast.h
> index ede6574..4892e2c 100644
> --- a/celt/float_cast.h
> +++ b/celt/float_cast.h
> @@ -90,14 +90,14 @@
> #include <math.h>
> #define float2int(x) lrint(x)
>
> -#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN64) || defined (_WIN64))
> +#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN64) || defined (_WIN64)) && !defined(_M_ARM)
> #include <xmmintrin.h&g...
2014 Nov 06
0
[PATCH] float_cast: Fix MSVC ARM build
...)
>>>
>>> diff --git a/celt/float_cast.h b/celt/float_cast.h
>>> index ede6574..4892e2c 100644
>>> --- a/celt/float_cast.h
>>> +++ b/celt/float_cast.h
>>> @@ -90,14 +90,14 @@
>>> #include <math.h>
>>> #define float2int(x) lrint(x)
>>>
>>> -#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN64) ||
>>> defined (_WIN64))
>>> +#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN64) ||
>>> defined (_WIN64)) && !defin...
2014 Nov 06
0
[PATCH] float_cast: Fix MSVC ARM build
...st.h b/celt/float_cast.h
> >>> index ede6574..4892e2c 100644
> >>> --- a/celt/float_cast.h
> >>> +++ b/celt/float_cast.h
> >>> @@ -90,14 +90,14 @@
> >>> #include <math.h>
> >>> #define float2int(x) lrint(x)
> >>>
> >>> -#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined
> (WIN64) ||
> >>> defined (_WIN64))
> >>> +#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined
> (WIN6...
2018 Feb 06
2
libc++ cross-compile linux-armv7 and math function problems
.../libcxx/include/math.h:1264:93: error: '::lgammal' has not been
declared
inline _LIBCPP_INLINE_VISIBILITY long double lgamma(long double __lcpp_x)
_NOEXCEPT {return ::lgammal(__lcpp_x);}
^~
../projects/libcxx/include/math.h: In function 'long long int llrint(long
double)':
../projects/libcxx/include/math.h:1274:91: error: '::llrintl' has not been
declared
inline _LIBCPP_INLINE_VISIBILITY long long llrint(long double __lcpp_x)
_NOEXCEPT {return ::llrintl(__lcpp_x);}
^~
../projects/libcxx/include/math.h: In function 'long long int llrou...
2018 Feb 06
0
libc++ cross-compile linux-armv7 and math function problems
...clared
> inline _LIBCPP_INLINE_VISIBILITY long double lgamma(long double __lcpp_x) _NOEXCEPT {return ::lgammal(__lcpp_x);}
> ^~
> ../projects/libcxx/include/math.h: In function 'long long int llrint(long double)':
> ../projects/libcxx/include/math.h:1274:91: error: '::llrintl' has not been declared
> inline _LIBCPP_INLINE_VISIBILITY long long llrint(long double __lcpp_x) _NOEXCEPT {return ::llrintl(__lcpp_x);}
>...
2018 Feb 06
1
libc++ cross-compile linux-armv7 and math function problems
...r: '::lgammal' has not
> been declared
> > inline _LIBCPP_INLINE_VISIBILITY long double lgamma(long double
> __lcpp_x) _NOEXCEPT {return ::lgammal(__lcpp_x);}
> >
> ^~
> > ../projects/libcxx/include/math.h: In function 'long long int
> llrint(long double)':
> > ../projects/libcxx/include/math.h:1274:91: error: '::llrintl' has not
> been declared
> > inline _LIBCPP_INLINE_VISIBILITY long long llrint(long double __lcpp_x)
> _NOEXCEPT {return ::llrintl(__lcpp_x);}
> >
> ^~
> >...
2018 Feb 05
0
Cross-compiling libc++ to linux-armv7hf gives undefined symbols in cmath / math.h
...ma(long
double)':
../projects/libcxx/include/math.h:1264:93: error: '::lgammal' has not been
declared
inline _LIBCPP_INLINE_VISIBILITY long double lgamma(long double __lcpp_x)
_NOEXCEPT {return ::lgammal(__lcpp_x);}
^~
../projects/libcxx/include/math.h: In function 'long long int llrint(long
double)':
../projects/libcxx/include/math.h:1274:91: error: '::llrintl' has not been
declared
inline _LIBCPP_INLINE_VISIBILITY long long llrint(long double __lcpp_x)
_NOEXCEPT {return ::llrintl(__lcpp_x);}
^~
../projects/libcxx/include/math.h: In function 'long long int llrou...