diff options
author | eschnett <eschnett@105869f7-3296-0410-a4ea-f4349344b45a> | 2012-02-05 00:20:49 +0000 |
---|---|---|
committer | eschnett <eschnett@105869f7-3296-0410-a4ea-f4349344b45a> | 2012-02-05 00:20:49 +0000 |
commit | 746a81a4430a69c5a09a509f8e5a85fbffb17305 (patch) | |
tree | a62ddcc9e096b5619de8f2348282778bec23568b /src/vectors-4-default.h | |
parent | 7e78ff525ffb9974d60161d446efb980bfe32cbb (diff) |
Various changes
1. Implement a simplified partial store interface
Implement vec_store_nta_partial, which offers a simpler interface,
similar to the one used in OpenCL.
2. Add kifmsg function, and implement kifpos and kifneg in terms of
this.
3. Update (and make safer) Kranc-specific code
git-svn-id: https://svn.cct.lsu.edu/repos/numrel/LSUThorns/Vectors/trunk@47 105869f7-3296-0410-a4ea-f4349344b45a
Diffstat (limited to 'src/vectors-4-default.h')
-rw-r--r-- | src/vectors-4-default.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vectors-4-default.h b/src/vectors-4-default.h index a672b89..874f471 100644 --- a/src/vectors-4-default.h +++ b/src/vectors-4-default.h @@ -49,6 +49,7 @@ // Unaligned store #define vec4_store_nta(p,x) ((p)=(x)) +#define vec4_store_nta_partial(p,x,i,imin,imax) (vec4_store_nta(p,x)) // Store the n lower elements of a vector to memory #define vec4_store_nta_partial_lo(p,x,n) (assert(0)) // Store the n higher elements of a vector into memory. This stores @@ -93,4 +94,4 @@ # define k4sgn(x) (signbit(x)) #endif -#define k4ifpos(x,y,z) (k4sgn(x)?(z):(y)) +#define k4ifmsb(x,y,z) (k4sgn(x)?(y):(z)) |