Advanced Computing Platform for Theoretical Physics


Commit 631b5692 authored by mikeaclark's avatar mikeaclark
Browse files

Restored integer division

git-svn-id: be54200a-260c-0410-bdd7-ce6af2a381ab
parent 587241a4
// this will evaluate wrong for (1/L^3) < 3e-7
#define FAST_INT_DIVIDE(a, b) ( (int)(((float)a * b##_inv)+0.0000003f) )
//#define FAST_INT_DIVIDE(a, b) ( a/b )
#define FAST_INT_DIVIDE(a, b) ( a/b )
// Performs complex addition
#define COMPLEX_ADD_TO(a, b) \
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment