XXX: Add parenthesis around all arguments so that these macros can be called with complex expressions.
Definition in file psConstants.h.
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Defines | |
| #define | PS_DETERMINE_BRACKET_STEP_SIZE 0.10 |
| #define | PS_MAX_LMM_ITERATIONS 100 |
| #define | PS_MAX_MINIMIZE_ITERATIONS 100 |
| #define | PS_LEFT_SPLINE_DERIV 0.0 |
| #define | PS_RIGHT_SPLINE_DERIV 0.0 |
| #define | PS_ONE 1.0 |
| #define | PS_PI 3.1415926535897932384626433832795029 |
| #define | PS_PI_2 1.5707963267948966192313216916397514 |
| #define | PS_PI_4 0.7853981633974483096156608458198757 |
| #define | PS_1_PI 0.3183098861837906715377675267450287 |
| #define | PS_2_PI 0.6366197723675813430755350534900574 |
| #define | PS_COT(X) (1.0 / atan(X)) |
| #define | DEG_TO_RAD(DEGREES) ((DEGREES) * PS_PI / 180.0) |
| #define | MIN_TO_RAD(MINUTES) ((MINUTES) * PS_PI / (180.0 * 60.0)) |
| #define | SEC_TO_RAD(SECONDS) ((SECONDS) * PS_PI / (180.0 * 60.0 * 60.0)) |
| #define | RAD_TO_DEG(RADIANS) ((RADIANS) * 180.0 / PS_PI) |
| #define | RAD_TO_MIN(RADIANS) ((RADIANS) * 180.0 * 60.0 / PS_PI) |
| #define | RAD_TO_SEC(RADIANS) ((RADIANS) * 180.0 * 60.0 * 60.0 / PS_PI) |
| #define | PS_INT_CHECK_EQUALS(NAME1, NAME2, RVAL) |
| #define | PS_INT_CHECK_NON_EQUALS(NAME1, NAME2, RVAL) |
| #define | PS_INT_CHECK_NON_NEGATIVE(NAME, RVAL) |
| #define | PS_INT_CHECK_POSITIVE(NAME, RVAL) |
| #define | PS_INT_CHECK_ZERO(NAME, RVAL) |
| #define | PS_INT_CHECK_RANGE(NAME, LOWER, UPPER, RVAL) |
| #define | PS_INT_COMPARE(NAME1, NAME2, RVAL) |
| #define | PS_FLOAT_COMPARE(NAME1, NAME2, RVAL) |
| #define | PS_FLOAT_CHECK_NON_EQUAL(NAME1, NAME2, RVAL) |
| #define | PS_FLOAT_CHECK_RANGE(NAME, LOWER, UPPER, RVAL) |
| #define | PS_PTR_CHECK_NULL(NAME, RVAL) PS_PTR_CHECK_NULL_GENERAL(NAME, return RVAL) |
| #define | PS_PTR_CHECK_NULL_GENERAL(NAME, CLEANUP) |
| #define | PS_PTR_CHECK_TYPE(NAME, TYPE, RVAL) |
| #define | PS_PTR_CHECK_DIMEN(NAME, DIMEN, RVAL) PS_PTR_CHECK_DIMEN_GENERAL(NAME, DIMEN, return RVAL) |
| #define | PS_PTR_CHECK_DIMEN_GENERAL(NAME, DIMEN, CLEANUP) |
| #define | PS_PTR_CHECK_DIMEN_GENERAL_NOT(NAME, DIMEN, CLEANUP) |
| #define | PS_PTR_CHECK_SIZE_EQUAL(PTR1, PTR2, RVAL) |
| #define | PS_PTR_CHECK_TYPE_EQUAL(PTR1, PTR2, RVAL) PS_PTR_CHECK_TYPE_EQUAL_GENERAL(PTR1, PTR2, return RVAL) |
| #define | PS_PTR_CHECK_TYPE_EQUAL_GENERAL(PTR1, PTR2, CLEANUP) |
| #define | PS_VECTOR_CHECK_NULL(NAME, RVAL) PS_VECTOR_CHECK_NULL_GENERAL(NAME, return RVAL) |
| #define | PS_VECTOR_CHECK_NULL_GENERAL(NAME, CLEANUP) |
| #define | PS_ORIG_VECTOR_CHECK_NULL(NAME, RVAL) |
| #define | PS_VECTOR_CHECK_EMPTY(NAME, RVAL) PS_VECTOR_CHECK_EMPTY_GENERAL(NAME, return RVAL) |
| #define | PS_VECTOR_CHECK_EMPTY_GENERAL(NAME, CLEANUP) |
| #define | PS_VECTOR_CHECK_TYPE_F32_OR_F64(NAME, RVAL) |
| #define | PS_VECTOR_CHECK_TYPE_S16_S32_F32(NAME, RVAL) |
| #define | PS_VECTOR_CHECK_TYPE(NAME, TYPE, RVAL) |
| #define | PS_VECTOR_CHECK_SIZE_EQUAL(VEC1, VEC2, RVAL) |
| #define | PS_VECTOR_CHECK_TYPE_EQUAL(VEC1, VEC2, RVAL) |
| #define | PS_VECTOR_F64_TO_F32(X64, X32) |
| #define | PS_VECTOR_F32_TO_F64(X32, X64) |
| #define | PS_VECTOR_PRINT_F32(NAME) |
| #define | PS_VECTOR_CONVERT_F64_TO_F32_STATIC(OLD, NEW_PTR32, NEW_STATIC32) |
| #define | PS_VECTOR_CONVERT_F32_TO_F64_STATIC(OLD, NEW_PTR64, NEW_STATIC64) |
| #define | PS_VECTOR_GEN_YERR_STATIC_F32(VEC, N) |
| #define | PS_VECTOR_GEN_YERR_STATIC_F64(VEC, N) |
| #define | PS_VECTOR_GEN_X_INDEX_STATIC_F32(VEC, N) |
| #define | PS_VECTOR_GEN_X_INDEX_STATIC_F64(VEC, N) |
| #define | PS_VECTOR_GEN_STATIC_RECYCLED(NAME, SIZE, TYPE) |
| #define | PS_VECTOR_DECLARE_ALLOC_STATIC(NAME, SIZE, TYPE) |
| #define | PS_VECTOR_SET_U8(NAME, VALUE) |
| #define | PS_VECTOR_SET_U16(NAME, VALUE) |
| #define | PS_VECTOR_SET_U32(NAME, VALUE) |
| #define | PS_VECTOR_SET_U64(NAME, VALUE) |
| #define | PS_VECTOR_SET_S8(NAME, VALUE) |
| #define | PS_VECTOR_SET_S16(NAME, VALUE) |
| #define | PS_VECTOR_SET_S32(NAME, VALUE) |
| #define | PS_VECTOR_SET_S64(NAME, VALUE) |
| #define | PS_VECTOR_SET_F64(NAME, VALUE) |
| #define | PS_VECTOR_SET_F32(NAME, VALUE) |
| #define | PS_POLY_CHECK_NULL(NAME, RVAL) |
| #define | PS_POLY_CHECK_TYPE(NAME, TYPE, RVAL) |
| #define | PS_POLY_1D_DECLARE_ALLOC_STATIC(NAME, ORDER, TYPE) |
| #define | PS_POLY_2D_DECLARE_ALLOC_STATIC(NAME, ORDER, TYPE) |
| #define | PS_POLY_3D_DECLARE_ALLOC_STATIC(NAME, ORDER, TYPE) |
| #define | PS_POLY_4D_DECLARE_ALLOC_STATIC(NAME, ORDER, TYPE) |
| #define | PS_POLY_1D_D_DECLARE_ALLOC_STATIC(NAME, ORDER, TYPE) |
| #define | PS_POLY_2D_D_DECLARE_ALLOC_STATIC(NAME, ORDER, TYPE) |
| #define | PS_POLY_3D_D_DECLARE_ALLOC_STATIC(NAME, ORDER, TYPE) |
| #define | PS_POLY_4D_D_DECLARE_ALLOC_STATIC(NAME, ORDER, TYPE) |
| #define | PS_IMAGE_CHECK_NULL(NAME, RVAL) PS_IMAGE_CHECK_NULL_GENERAL(NAME, return RVAL) |
| #define | PS_IMAGE_CHECK_NULL_GENERAL(NAME, CLEANUP) |
| #define | PS_IMAGE_CHECK_EMPTY(NAME, RVAL) PS_IMAGE_CHECK_EMPTY_GENERAL(NAME, return RVAL) |
| #define | PS_IMAGE_CHECK_EMPTY_GENERAL(NAME, CLEANUP) |
| #define | PS_IMAGE_CHECK_TYPE(NAME, TYPE, RVAL) |
| #define | PS_IMAGE_CHECK_SIZE_EQUAL(NAME1, NAME2, RVAL) |
| #define | PS_IMAGE_CHECK_SIZE(NAME1, NUM_COLS, NUM_ROWS, RVAL) |
| #define | PS_IMAGE_PRINT_F32(NAME) |
| #define | PS_IMAGE_SET_U8(NAME, VALUE) |
| #define | PS_IMAGE_SET_U16(NAME, VALUE) |
| #define | PS_IMAGE_SET_U32(NAME, VALUE) |
| #define | PS_IMAGE_SET_U64(NAME, VALUE) |
| #define | PS_IMAGE_SET_S8(NAME, VALUE) |
| #define | PS_IMAGE_SET_S16(NAME, VALUE) |
| #define | PS_IMAGE_SET_S32(NAME, VALUE) |
| #define | PS_IMAGE_SET_S64(NAME, VALUE) |
| #define | PS_IMAGE_SET_F32(NAME, VALUE) |
| #define | PS_IMAGE_SET_F64(NAME, VALUE) |
| #define | PS_READOUT_CHECK_NULL(NAME, RVAL) |
| #define | PS_READOUT_CHECK_EMPTY(NAME, RVAL) |
| #define | PS_READOUT_CHECK_TYPE(NAME, TYPE, RVAL) |
| #define | PS_MAX(A, B) (((A) > (B)) ? (A) : (B)) \ |
| #define | PS_MIN(A, B) (((A) < (B)) ? (A) : (B)) \ |
| #define | PS_SQR(A) ((A) * (A)) \ |
| #define | PS_SQRT_F32(A) (sqrtf(A)) |
|
|
Definition at line 37 of file psConstants.h. |
|
|
Definition at line 38 of file psConstants.h. |
|
|
Definition at line 33 of file psConstants.h. |
|
|
Definition at line 34 of file psConstants.h. |
|
|
Definition at line 36 of file psConstants.h. |
|
|
Definition at line 21 of file psConstants.h. |
|
|
Value: if (fabs(NAME2 - NAME1) < FLT_EPSILON) { \ psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ "Error: %s and %s are equal.", \ #NAME1, #NAME2); \ return(RVAL); \ } Definition at line 112 of file psConstants.h. |
|
|
Value: if ((NAME) < (LOWER) || (NAME) > (UPPER)) { \ psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ "Error: %s, %f, is out of range. Must be between %f and %f.", \ #NAME, NAME, LOWER, UPPER); \ return RVAL; \ } Definition at line 120 of file psConstants.h. |
|
|
Value: if (NAME1 > NAME2) { \ psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ "Error: (%s > %s) (%f %f)", \ #NAME1, #NAME2, NAME1, NAME2); \ return(RVAL); \ } Definition at line 104 of file psConstants.h. |
|
|
Definition at line 490 of file psConstants.h. |
|
|
Value: if (NAME->numCols < 1 || NAME->numRows < 1) { \ psError(PS_ERR_BAD_PARAMETER_SIZE, true, \ "Unallowable operation: psImage %s has zero rows or columns (%dx%d).", \ #NAME, NAME->numCols, NAME->numRows); \ CLEANUP; \ } Definition at line 491 of file psConstants.h. |
|
|
Definition at line 481 of file psConstants.h. |
|
|
Value: if (NAME == NULL || NAME->data.V == NULL) { \ psError(PS_ERR_BAD_PARAMETER_NULL, true, \ "Unallowable operation: psImage %s or its data is NULL.", \ #NAME); \ CLEANUP; \ } Definition at line 482 of file psConstants.h. |
|
|
Value: if ((NAME1->numCols != NUM_COLS) || \ (NAME1->numRows != NUM_ROWS)) { \ psError(PS_ERR_BAD_PARAMETER_SIZE, true, \ "Unallowable operation: psImages %s is not the correct size.", \ #NAME1); \ return(RVAL); \ } Definition at line 516 of file psConstants.h. |
|
|
Value: if ((NAME1->numCols != NAME2->numCols) || \ (NAME1->numRows != NAME2->numRows)) { \ psError(PS_ERR_BAD_PARAMETER_SIZE, true, \ "Unallowable operation: psImages %s and %s are not the same size.", \ #NAME1, #NAME2); \ return(RVAL); \ } Definition at line 507 of file psConstants.h. |
|
|
Value: if (NAME->type.type != TYPE) { \ psError(PS_ERR_BAD_PARAMETER_TYPE, true, \ "Unallowable operation: psImage %s has incorrect type.", \ #NAME); \ return(RVAL); \ } Definition at line 499 of file psConstants.h. |
|
|
Value: printf("======== printing %s ========\n", #NAME); \ for (int i = 0 ; i < NAME->numRows ; i++) { \ for (int j = 0 ; j < NAME->numCols ; j++) { \ printf("%.2f ", NAME->data.F32[i][j]); \ } \ printf("\n"); \ }\ Definition at line 525 of file psConstants.h. |
|
|
Value: for (int i = 0 ; i < (NAME)->numRows ; i++) { \ for (int j = 0 ; j < (NAME)->numCols ; j++) { \ (NAME)->data.F32[i][j] = (VALUE); \ } \ }\ Definition at line 590 of file psConstants.h. |
|
|
Value: for (int i = 0 ; i < (NAME)->numRows ; i++) { \ for (int j = 0 ; j < (NAME)->numCols ; j++) { \ (NAME)->data.F64[i][j] = (VALUE); \ } \ }\ Definition at line 597 of file psConstants.h. |
|
|
Value: for (int i = 0 ; i < (NAME)->numRows ; i++) { \ for (int j = 0 ; j < (NAME)->numCols ; j++) { \ (NAME)->data.S16[i][j] = (VALUE); \ } \ }\ Definition at line 569 of file psConstants.h. |
|
|
Value: for (int i = 0 ; i < (NAME)->numRows ; i++) { \ for (int j = 0 ; j < (NAME)->numCols ; j++) { \ (NAME)->data.S32[i][j] = (VALUE); \ } \ }\ Definition at line 576 of file psConstants.h. |
|
|
Value: for (int i = 0 ; i < (NAME)->numRows ; i++) { \ for (int j = 0 ; j < (NAME)->numCols ; j++) { \ (NAME)->data.S64[i][j] = (VALUE); \ } \ }\ Definition at line 583 of file psConstants.h. |
|
|
Value: for (int i = 0 ; i < (NAME)->numRows ; i++) { \ for (int j = 0 ; j < (NAME)->numCols ; j++) { \ (NAME)->data.S8[i][j] = (VALUE); \ } \ }\ Definition at line 562 of file psConstants.h. |
|
|
Value: for (int i = 0 ; i < (NAME)->numRows ; i++) { \ for (int j = 0 ; j < (NAME)->numCols ; j++) { \ (NAME)->data.U16[i][j] = (VALUE); \ } \ }\ Definition at line 541 of file psConstants.h. |
|
|
Value: for (int i = 0 ; i < (NAME)->numRows ; i++) { \ for (int j = 0 ; j < (NAME)->numCols ; j++) { \ (NAME)->data.U32[i][j] = (VALUE); \ } \ }\ Definition at line 548 of file psConstants.h. |
|
|
Value: for (int i = 0 ; i < (NAME)->numRows ; i++) { \ for (int j = 0 ; j < (NAME)->numCols ; j++) { \ (NAME)->data.U64[i][j] = (VALUE); \ } \ }\ Definition at line 555 of file psConstants.h. |
|
|
Value: for (int i = 0 ; i < (NAME)->numRows ; i++) { \ for (int j = 0 ; j < (NAME)->numCols ; j++) { \ (NAME)->data.U8[i][j] = (VALUE); \ } \ }\ Definition at line 534 of file psConstants.h. |
|
|
Value: if (NAME1 == NAME2) { \ psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ "Error: %s and %s are equal.", \ #NAME1, #NAME2); \ return(RVAL); \ } Definition at line 48 of file psConstants.h. |
|
|
Value: if (NAME1 != NAME2) { \ psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ "Error: %s and %s are not equal.", \ #NAME1, #NAME2); \ return(RVAL); \ } Definition at line 56 of file psConstants.h. |
|
|
Value: if (NAME < 0) { \ psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ "Error: %s is less than 0.", #NAME); \ return(RVAL); \ } Definition at line 64 of file psConstants.h. |
|
|
Value: if (NAME < 1) { \ psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ "Error: %s is 0 or less.", #NAME); \ return(RVAL); \ } Definition at line 71 of file psConstants.h. |
|
|
Value: if ((int)NAME < LOWER || (int)NAME > UPPER) { \ psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ "Error: %s, %d, is out of range. Must be between %d and %d.", \ #NAME,(int)NAME,LOWER,UPPER); \ return RVAL; \ } Definition at line 85 of file psConstants.h. |
|
|
Value: if (NAME < 1) { \ psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ "Error: %s is 0.", #NAME); \ return(RVAL); \ } Definition at line 78 of file psConstants.h. |
|
|
Value: if (NAME1 > NAME2) { \ psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ "Error: (%s > %s) (%d %d).", \ #NAME1, #NAME2, NAME1, NAME2); \ return(RVAL); \ } Definition at line 94 of file psConstants.h. |
|
|
Definition at line 24 of file psConstants.h. |
|
|
Definition at line 632 of file psConstants.h. |
|
|
Definition at line 22 of file psConstants.h. |
|
|
Definition at line 23 of file psConstants.h. |
|
|
Definition at line 635 of file psConstants.h. |
|
|
Definition at line 29 of file psConstants.h. |
|
|
Value: if (NAME == NULL || NAME->data.U8 == NULL) { \ psError(PS_ERR_BAD_PARAMETER_NULL, true, \ "Unallowable operation: psVector %s or its data is NULL.", \ #NAME); \ return(RVAL); \ } \ Definition at line 199 of file psConstants.h. |
|
|
Definition at line 30 of file psConstants.h. |
|
|
Definition at line 31 of file psConstants.h. |
|
|
Definition at line 32 of file psConstants.h. |
|
|
Value: static psPolynomial1D *NAME = NULL; \ if (NAME == NULL) { \ NAME = psPolynomial1DAlloc(ORDER, TYPE); \ p_psMemSetPersistent(NAME, true); \ } \ Definition at line 450 of file psConstants.h. |
|
|
Value: static psPolynomial1D *NAME = NULL; \ if (NAME == NULL) { \ NAME = psPolynomial1DAlloc(ORDER, TYPE); \ p_psMemSetPersistent(NAME, true); \ p_psMemSetPersistent(NAME->coeff, true); \ p_psMemSetPersistent(NAME->coeffErr, true); \ p_psMemSetPersistent(NAME->mask, true); \ } \ Definition at line 419 of file psConstants.h. |
|
|
Value: static psPolynomial2D *NAME = NULL; \ if (NAME == NULL) { \ NAME = psPolynomial2DAlloc(ORDER, TYPE); \ p_psMemSetPersistent(NAME, true); \ } \ Definition at line 457 of file psConstants.h. |
|
|
Value: static psPolynomial2D *NAME = NULL; \ if (NAME == NULL) { \ NAME = psPolynomial2DAlloc(ORDER, TYPE); \ p_psMemSetPersistent(NAME, true); \ } \ Definition at line 429 of file psConstants.h. |
|
|
Value: static psPolynomial3D *NAME = NULL; \ if (NAME == NULL) { \ NAME = psPolynomial3DAlloc(ORDER, TYPE); \ p_psMemSetPersistent(NAME, true); \ } \ Definition at line 464 of file psConstants.h. |
|
|
Value: static psPolynomial3D *NAME = NULL; \ if (NAME == NULL) { \ NAME = psPolynomial3DAlloc(ORDER, TYPE); \ p_psMemSetPersistent(NAME, true); \ } \ Definition at line 436 of file psConstants.h. |
|
|
Value: static psPolynomial4D *NAME = NULL; \ if (NAME == NULL) { \ NAME = psPolynomial4DAlloc(ORDER, TYPE); \ p_psMemSetPersistent(NAME, true); \ } \ Definition at line 471 of file psConstants.h. |
|
|
Value: static psPolynomial4D *NAME = NULL; \ if (NAME == NULL) { \ NAME = psPolynomial4DAlloc(ORDER, TYPE); \ p_psMemSetPersistent(NAME, true); \ } \ Definition at line 443 of file psConstants.h. |
|
|
Value: if (NAME == NULL || NAME->coeff == NULL) { \ psError(PS_ERR_BAD_PARAMETER_NULL, true, \ "Unallowable operation: polynomial %s or its coeffs is NULL.", \ #NAME); \ return(RVAL); \ } \ Definition at line 401 of file psConstants.h. |
|
|
Value: if (NAME->type != TYPE) { \ psError(PS_ERR_BAD_PARAMETER_TYPE, true, \ "Unallowable operation: polynomial %s has wrong type.", #NAME); \ return(RVAL); \ } \ Definition at line 409 of file psConstants.h. |
|
|
Definition at line 149 of file psConstants.h. |
|
|
Value: if (NAME->type.dimen != DIMEN) { \ psError(PS_ERR_BAD_PARAMETER_TYPE, true, \ "Unallowable operation: %s has incorrect dimensionality.", \ #NAME); \ CLEANUP; \ } Definition at line 150 of file psConstants.h. |
|
|
Value: if (NAME->type.dimen == DIMEN) { \ psError(PS_ERR_BAD_PARAMETER_TYPE, true, \ "Unallowable operation: %s has incorrect dimensionality.", \ #NAME); \ CLEANUP; \ } Definition at line 158 of file psConstants.h. |
|
|
Definition at line 132 of file psConstants.h. |
|
|
Value: if (NAME == NULL) { \ psError(PS_ERR_BAD_PARAMETER_NULL, true, \ "Unallowable operation: %s is NULL.", \ #NAME); \ CLEANUP; \ } Definition at line 133 of file psConstants.h. |
|
|
Value: if (PTR1->n != PTR2->n) { \ psError(PS_ERR_BAD_PARAMETER_SIZE, true, \ "ptr %s has size %d, ptr %s has size %d.", \ #PTR1, PTR1->n, #PTR2, PTR2->n); \ return(RVAL); \ } Definition at line 167 of file psConstants.h. |
|
|
Value: if (NAME->type.type != TYPE) { \ psError(PS_ERR_BAD_PARAMETER_TYPE, true, \ "Unallowable operation: %s has incorrect type.", \ #NAME); \ return(RVAL); \ } Definition at line 141 of file psConstants.h. |
|
|
Definition at line 175 of file psConstants.h. |
|
|
Value: if (PTR1->type.type != PTR2->type.type) { \ psError(PS_ERR_BAD_PARAMETER_TYPE, true, \ "ptr %s has type %d, ptr %s has type %d.", \ #PTR1, PTR1->type.type, #PTR2, PTR2->type.type); \ CLEANUP; \ } Definition at line 177 of file psConstants.h. |
|
|
Value: if (NAME->image->numCols < 1 || NAME->image->numRows < 1) { \ psError(PS_ERR_BAD_PARAMETER_SIZE, true, \ "Unallowable operation: psReadout %s or its data is NULL.", #NAME); \ return(RVAL); \ } Definition at line 615 of file psConstants.h. |
|
|
Value: if (NAME == NULL || NAME->image == NULL) { \ psError(PS_ERR_BAD_PARAMETER_NULL, true, \ "Unallowable operation: psReadout %s or its data is NULL.", \ #NAME); \ return(RVAL); \ } Definition at line 607 of file psConstants.h. |
|
|
Value: if (NAME->image->type.type != TYPE) { \ psError(PS_ERR_BAD_PARAMETER_TYPE, true, \ "Unallowable operation: psImage %s has incorrect type.", #NAME); \ return(RVAL); \ } Definition at line 622 of file psConstants.h. |
|
|
Definition at line 25 of file psConstants.h. |
|
|
Definition at line 638 of file psConstants.h. |
|
|
Definition at line 644 of file psConstants.h. |
|
|
Definition at line 208 of file psConstants.h. |
|
|
Value: if (NAME->n < 1) { \ psError(PS_ERR_BAD_PARAMETER_SIZE, true, \ "Unallowable operation: psVector %s has no elements.", \ #NAME); \ CLEANUP; \ } \ Definition at line 209 of file psConstants.h. |
|
|
Definition at line 189 of file psConstants.h. |
|
|
Value: if (NAME == NULL || NAME->data.U8 == NULL) { \ psError(PS_ERR_BAD_PARAMETER_NULL, true, \ "Unallowable operation: psVector %s or its data is NULL.", \ #NAME); \ CLEANUP; \ } \ Definition at line 190 of file psConstants.h. |
|
|
Value: if (VEC1->n != VEC2->n) { \ psError(PS_ERR_BAD_PARAMETER_SIZE, true, \ "psVector %s has size %d, psVector %s has size %d.", \ #VEC1, VEC1->n, #VEC2, VEC2->n); \ return(RVAL); \ } Definition at line 241 of file psConstants.h. |
|
|
Value: if (NAME->type.type != TYPE) { \ psError(PS_ERR_BAD_PARAMETER_TYPE, true, \ "Unallowable operation: psVector %s has incorrect type.", \ #NAME); \ return(RVAL); \ } Definition at line 233 of file psConstants.h. |
|
|
Value: if (VEC1->type.type != VEC2->type.type) { \ psError(PS_ERR_BAD_PARAMETER_SIZE, true, \ "psVector %s has size %d, psVector %s has size %d.", \ #VEC1, VEC1->type.type, #VEC2, VEC2->type.type); \ return(RVAL); \ } Definition at line 249 of file psConstants.h. |
|
|
Value: if ((NAME->type.type != PS_TYPE_F32) && (NAME->type.type != PS_TYPE_F64)) { \ psError(PS_ERR_BAD_PARAMETER_TYPE, true, \ "psVector %s: bad type(%d)", \ #NAME, NAME->type.type); \ return(RVAL); \ } \ Definition at line 217 of file psConstants.h. |
|
|
Value: if ((NAME->type.type != PS_TYPE_S16) && (NAME->type.type != PS_TYPE_S32) && (NAME->type.type != PS_TYPE_F32)) { \ psError(PS_ERR_BAD_PARAMETER_TYPE, true, \ "psVector %s: bad type(%d)", \ #NAME, NAME->type.type); \ return(RVAL); \ } \ Definition at line 225 of file psConstants.h. |
|
|
Value: if (OLD->type.type == PS_TYPE_F64) { \ NEW_PTR64 = (psVector *) OLD; \ } else if (OLD->type.type == PS_TYPE_F32) { \ NEW_STATIC64 = psVectorRecycle(NEW_STATIC64, OLD->n, PS_TYPE_F64); \ p_psMemSetPersistent(NEW_STATIC64, true); \ p_psMemSetPersistent(NEW_STATIC64->data.U8, true); \ for (i=0; i < OLD->n ; i++) { \ NEW_STATIC64->data.F64[i] = (double) OLD->data.F32[i]; \ } \ NEW_PTR64 = NEW_STATIC64; \ } \ Definition at line 289 of file psConstants.h. |
|
|
Value: if (OLD->type.type == PS_TYPE_F32) { \ NEW_PTR32 = (psVector *) OLD; \ } else if (OLD->type.type == PS_TYPE_F64) { \ NEW_STATIC32 = psVectorRecycle(NEW_STATIC32, OLD->n, PS_TYPE_F32); \ p_psMemSetPersistent(NEW_STATIC32, true); \ p_psMemSetPersistent(NEW_STATIC32->data.U8, true); \ for (i=0; i < OLD->n ; i++) { \ NEW_STATIC32->data.F32[i] = (float) OLD->data.F64[i]; \ } \ NEW_PTR32 = NEW_STATIC32; \ } \ Definition at line 276 of file psConstants.h. |
|
|
Value: static psVector *NAME = NULL; \ if (NAME == NULL) { \ NAME = psVectorAlloc(SIZE, TYPE); \ p_psMemSetPersistent(NAME, true); \ } \ Definition at line 340 of file psConstants.h. |
|
|
Value: psVector *X64 = psVectorAlloc(X32->n, PS_TYPE_F64); \ for (int i=0;i<X32->n;i++) { \ X64->data.F64[i] = (float) X32->data.F32[i]; \ } \ Definition at line 263 of file psConstants.h. |
|
|
Value: psVector *X32 = psVectorAlloc(X64->n, PS_TYPE_F32); \ for (int i=0;i<X64->n;i++) { \ X32->data.F32[i] = (float) X64->data.F64[i]; \ } \ Definition at line 257 of file psConstants.h. |
|
|
Value: static psVector *NAME = NULL; \ NAME = psVectorRecycle(NAME, SIZE, TYPE); \ p_psMemSetPersistent(NAME, true); \ p_psMemSetPersistent(NAME->data.U8, true); \ Definition at line 334 of file psConstants.h. |
|
|
Value: VEC = psVectorRecycle(VEC, N, PS_TYPE_F32); \ p_psMemSetPersistent(VEC, true); \ p_psMemSetPersistent(VEC->data.U8, true); \ for (int i=0;i<N;i++) { \ VEC->data.F32[i] = (float) i; \ } \ Definition at line 318 of file psConstants.h. |
|
|
Value: VEC = psVectorRecycle(VEC, N, PS_TYPE_F64); \ p_psMemSetPersistent(VEC, true); \ p_psMemSetPersistent(VEC->data.U8, true); \ for (int i=0;i<N;i++) { \ VEC->data.F64[i] = (float) i; \ } \ Definition at line 326 of file psConstants.h. |
|
|
Value: VEC = psVectorRecycle(VEC, N, PS_TYPE_F32); \ p_psMemSetPersistent(VEC, true); \ p_psMemSetPersistent(VEC->data.U8, true); \ for (int i=0;i<N;i++) { \ VEC->data.F32[i] = 1.0; \ } \ Definition at line 302 of file psConstants.h. |
|
|
Value: VEC = psVectorRecycle(VEC, N, PS_TYPE_F64); \ p_psMemSetPersistent(VEC, true); \ p_psMemSetPersistent(VEC->data.U8, true); \ for (int i=0;i<N;i++) { \ VEC->data.F64[i] = 1.0; \ } \ Definition at line 310 of file psConstants.h. |
|
|
Value: for (int my_i=0;my_i<NAME->n;my_i++) { \ printf("%s->data.F32[%d] is %f\n", #NAME, my_i, NAME->data.F32[my_i]); \ } \ printf("\n"); \ Definition at line 269 of file psConstants.h. |
|
|
Value: for (int i = 0 ; i < (NAME)->n ; i++) { \ (NAME)->data.F32[i] = VALUE; \ }\ Definition at line 392 of file psConstants.h. |
|
|
Value: for (int i = 0 ; i < (NAME)->n ; i++) { \ (NAME)->data.F64[i] = VALUE; \ }\ Definition at line 387 of file psConstants.h. |
|
|
Value: for (int i = 0 ; i < (NAME)->n ; i++) { \ (NAME)->data.S16[i] = VALUE; \ }\ Definition at line 372 of file psConstants.h. |
|
|
Value: for (int i = 0 ; i < (NAME)->n ; i++) { \ (NAME)->data.S32[i] = VALUE; \ }\ Definition at line 377 of file psConstants.h. |
|
|
Value: for (int i = 0 ; i < (NAME)->n ; i++) { \ (NAME)->data.S64[i] = VALUE; \ }\ Definition at line 382 of file psConstants.h. |
|
|
Value: for (int i = 0 ; i < (NAME)->n ; i++) { \ (NAME)->data.S8[i] = VALUE; \ }\ Definition at line 367 of file psConstants.h. |
|
|
Value: for (int i = 0 ; i < (NAME)->n ; i++) { \ (NAME)->data.U16[i] = VALUE; \ }\ Definition at line 352 of file psConstants.h. |
|
|
Value: for (int i = 0 ; i < (NAME)->n ; i++) { \ (NAME)->data.U32[i] = VALUE; \ }\ Definition at line 357 of file psConstants.h. |
|
|
Value: for (int i = 0 ; i < (NAME)->n ; i++) { \ (NAME)->data.U64[i] = VALUE; \ }\ Definition at line 362 of file psConstants.h. |
|
|
Value: for (int i = 0 ; i < (NAME)->n ; i++) { \ (NAME)->data.U8[i] = VALUE; \ }\ Definition at line 347 of file psConstants.h. |
|
|
Definition at line 40 of file psConstants.h. |
|
|
Definition at line 41 of file psConstants.h. |
|
|
Definition at line 42 of file psConstants.h. |
|
|
Definition at line 39 of file psConstants.h. |
1.3.9.1