23 #include <lal/LALStdlib.h>
24 #include <lal/Units.h>
69 UINT4 denom, denom1, denom2;
71 if ( !
output || ! unit1 || ! unit2 )
75 if ( numer >= 32767L || numer <= -32768L )
82 denom = denom1 * denom2;
84 if ( denom >= 65535L )
94 if ( numer >= 32767L || numer <= -32768L )
uint16_t UINT2
Two-byte unsigned integer.
uint32_t UINT4
Four-byte unsigned integer.
int32_t INT4
Four-byte signed integer.
@ LALNumUnits
The number of units.
LALUnit * XLALUnitDivide(LALUnit *output, const LALUnit *unit1, const LALUnit *unit2)
UNDOCUMENTED.
LALUnit * XLALUnitMultiply(LALUnit *output, const LALUnit *unit1, const LALUnit *unit2)
This function multiplies together the LALUnit structures *(input->unitOne) and *(input->unitTwo),...
int XLALUnitNormalize(LALUnit *unit)
Returns 0 upon success or XLAL_FAILURE if the input pointer is NULL, in which case xlalErrno is set t...
LALUnit * XLALUnitInvert(LALUnit *output, const LALUnit *input)
UNDOCUMENTED.
#define XLAL_ERROR_NULL(...)
Macro to invoke a failure from a XLAL routine returning a pointer.
@ XLAL_EFAULT
Invalid pointer.
@ XLAL_ERANGE
Output range error.
@ XLAL_EFUNC
Internal function call failed bit: "or" this with existing error number.
@ XLAL_FAILURE
Failure return value (not an error number)
This structure stores units in the mksA system (plus Kelvin, Strain, and ADC Count).
INT2 powerOfTen
Overall power-of-ten scaling is 10^powerOfTen.
UINT2 unitDenominatorMinusOne[LALNumUnits]
Array of unit power denominators-minus-one.
INT2 unitNumerator[LALNumUnits]
Array of unit power numerators.
void output(int gps_sec, int output_type)