Advanced Computing Platform for Theoretical Physics

commit大文件会使得服务器变得不稳定,请大家尽量只commit代码,不要commit大的文件。

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

Restored integer division

git-svn-id: http://lattice.bu.edu/qcdalg/cuda/quda@442 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