Errors with forcing now down from 3 to 1 after switching from fast & inaccurate trig functions to more accurate ones
This commit is contained in:
@@ -59,17 +59,18 @@ create_rotz(const AcReal radians)
|
||||
}
|
||||
|
||||
#if AC_DOUBLE_PRECISION == 0
|
||||
/*
|
||||
// Fast but inaccurate
|
||||
#define sin __sinf
|
||||
#define cos __cosf
|
||||
#define exp __expf
|
||||
*/
|
||||
#define sin sinf
|
||||
#define cos cosf
|
||||
#define exp expf
|
||||
#define rsqrt rsqrtf // hardware reciprocal sqrt
|
||||
#endif // AC_DOUBLE_PRECISION == 0
|
||||
|
||||
/*
|
||||
typedef struct {
|
||||
int i, j, k;
|
||||
} int3;*/
|
||||
|
||||
/*
|
||||
* =============================================================================
|
||||
* Level 0 (Input Assembly Stage)
|
||||
|
Reference in New Issue
Block a user