Displaying 7 results from an estimated 7 matches for "_use_math_defines".
2013 Aug 16
0
PATCH: MSVC and M_LN2
math.h file in MS VC++ _does_ have M_LN2 constant but it requires _USE_MATH_DEFINES:
--- a\src\libFLAC\fixed.c 2013-08-13 13:30:24.000000000 +0400
+++ b\src\libFLAC\fixed.c 2013-08-14 10:14:07.873648300 +0400
@@ -34,6 +34,9 @@
# include <config.h>
#endif
+#if defined(_MSC_VER)
+#define _USE_MATH_DEFINES
+#endif
#include <math.h>
#include <string.h>
#...
2013 Sep 01
1
New routine: FLAC__lpc_compute_autocorrelation_asm_ia32_sse_lag_16
...se 'restrict' keyword with MSVS 2010 and 2012 and in fact they don't support it. Only --restrict is supported.
> * libFLAC and FLAC__ALIGN_MALLOC_DATA : Looks sane but doesn't apply.
> * MSVC and M_LN2 : Looks sane but doesn't apply.
It is also possible to add /D "_USE_MATH_DEFINES" as an additional option to libFLAC_static.vcproj and libFLAC_dynamic.vcproj. Don't know what is better. What do you think?
> * bitmath.h: 1 typo, 1 warning : I don't see why the type has to change.
Declarations from MSDN:
unsigned char _BitScanReverse(unsigned long * Inde...
2013 Sep 04
2
PATCH: M_LN2 for MSVS
This patch allows MSVS to use M_LN2 const defined in math.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mathln2.patch
Type: application/octet-stream
Size: 963 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/flac-dev/attachments/20130904/14cd34db/attachment.obj
2013 Aug 31
2
New routine: FLAC__lpc_compute_autocorrelation_asm_ia32_sse_lag_16
Erik de Castro Lopo <mle+la at mega-nerd.com> wrote:
> Patch applied, tested, commited and pushed.
Great.
But, what about my other patches? I admit that many of them aren't necessary, but (imho) a couple of them are important. I can explain in detail why I think this.
2013 Sep 05
0
PATCH: M_LN2 for MSVS
lvqcl wrote:
> This patch allows MSVS to use M_LN2 const defined in math.h
For this one, I'd prefer to see the _USE_MATH_DEFINES definition in
the *.vcproj and FLAC.sln files. I'd be happy to have the removal
of the two comments in the same commit.
Cheers,
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
2020 Apr 19
0
[ANNOUNCE] pixman release 0.40.0 now available
...xman/pixman-version.h.in: Add a PIXMAN_API macro
pixman/pixman.h: Mark public APIs with PIXMAN_API
pixman-[compiler|private].h: Export symbols for tests
pixman/meson.build: Define PIXMAN_API on MSVC-style compilers
test/solid-test.c: Include stdint.h
demos: Define _USE_MATH_DEFINES on MSVC-style compilers
thread-test.c: Use Windows Threading API on Windows
Dylan Baker (1):
meson: don't use link_with for library()
Fan Jinke (1):
add Hygon Dhyana support to enable X86_MMX_EXTENSIONS feature
Federico Mena Quintero (1):
Initialize temporar...
2013 Aug 27
1
Error in simulation. NAN
...For me it is really strange,
Thanks!.
#include <iostream>
#include <string>
using namespace std;
#include <R.h>
#include <Rinternals.h>
#include <R_ext/Linpack.h>
#include <R_ext/Lapack.h>
#include <R_ext/BLAS.h>
#include "funzioni.h"
#define _USE_MATH_DEFINES
extern "C" {
SEXP Model1_imp11Cpp(
SEXP ad_start_r, SEXP ad_end_r, SEXP ad_esp_r,
SEXP burnin_r, SEXP thin_r,SEXP iter_1_r,SEXP iter_2_r,
SEXP n_j_r,SEXP J_r,
SEXP prior_alpha_r,SEXP prior_rho_r,SEXP prior_sigma2_r,SEXP
prior_phi_r,SEXP prior_zeta2_r,
SEXP sdprop_rho_...