lianlab / bullet

Automatically exported from code.google.com/p/bullet
0 stars 0 forks source link

btFpuControl code review #187

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Erwin,

I'm attaching the btFpuControl code (src/LinearMath) that allows enabling /
disabling of FPU exceptions. Currently there is only a backend
implementation for MSVC. Please review and I'll commit it with your approval.

Thanks,
John

Original issue reported on code.google.com by john.mcc...@gmail.com on 6 Feb 2009 at 6:35

Attachments:

GoogleCodeExporter commented 9 years ago

Can you please change it into a struct/class that keeps the original fpu state, 
and 
merge it into btScalar.h/cpp (with default empty implementation for other 
platforms).

Original comment by erwin.coumans on 6 Feb 2009 at 7:05

GoogleCodeExporter commented 9 years ago
Like what's in this new attachment?

Original comment by john.mcc...@gmail.com on 6 Feb 2009 at 9:12

Attachments:

GoogleCodeExporter commented 9 years ago
For reference, code to do this under GCC:

#define _GNU_SOURCE
#include <fenv.h>

      feenableexcept (FE_DIVBYZERO);
      feenableexcept (FE_INEXACT);
      feenableexcept (FE_INVALID);
      feenableexcept (FE_UNDERFLOW);
      feenableexcept (FE_OVERFLOW);

Original comment by john.mcc...@gmail.com on 11 Feb 2009 at 5:09

GoogleCodeExporter commented 9 years ago

Original comment by erwin.coumans on 3 Jun 2009 at 6:23

GoogleCodeExporter commented 9 years ago
Closing old issues that are not likely to be fixed. We are now focusing on 
Bullet 3.x at http://github.com/erwincoumans/bullet3

Original comment by erwin.coumans on 10 Sep 2013 at 9:33