_ASSERT and _ASSERTE and Double Precision

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

_ASSERT and _ASSERTE and Double Precision

Postby Gianluca » Thu Jun 23, 2011 11:46 am

Dear Julio,
I'm looking at the code and trying to compile it on linux.
I notice that when the __DOUBLE_PRECISION__ is defined various error arising because various method seems double defined for the compiler.
For example:
DG_INLINE dgInt32 dgFastInt (dgFloat64 x)
and
DG_INLINE dgInt32 dgFastInt (dgFloat32 x)

In fact, in double precision the two function are exactly the same, and the compiler will comply with an error.

I'll try to fix all this problem adding #ifdef conditions when the double precision is setted.
After that, I'll send the differences to you... or can I commit the code on the repository ??

Also, I think that the _ASSERT and _ASSERTE can be implemented using the assert() standard function on linux (assert.h)

What do you think ??

Ciao,
Gianluca M.
Gianluca
 
Posts: 53
Joined: Fri Nov 11, 2005 4:37 am
Location: Rome - Italy

Re: _ASSERT and _ASSERTE and Double Precision

Postby Julio Jerez » Thu Jun 23, 2011 4:39 pm

Yes that is my mistake, I will build the double to correct that tonight.

on the ASSERTE build using _assert
The reason I use the windows version is that the windows version is non destrutive while the stantad is.
what we can do is that on the non windows version we can replace _ASSERTE() macro with teh _assert intead of nothopng.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests