Lines Matching defs:rdx

124 	size_t rdx;
126 /// The actual scale of the number. This is different from rdx because there
128 /// digits may be part of the scale. However, scale must always match rdx
198 #define BC_NUM_ONE(n) ((n)->len == 1 && (n)->rdx == 0 && (n)->num[0] == 1)
223 * Returns the equivalent rdx for the scale @a s.
225 * @return The rdx for @a s.
230 * Returns the actual rdx of @a n. (It removes the negative bit.)
232 * @return The real rdx of @a n.
234 #define BC_NUM_RDX_VAL(n) ((n)->rdx >> 1)
237 * Returns the actual rdx of @a n, where @a n is not a pointer. (It removes the
240 * @return The real rdx of @a n.
242 #define BC_NUM_RDX_VAL_NP(n) ((n).rdx >> 1)
245 * Sets the rdx of @a n to @a v.
247 * @param v The value to set the rdx to.
250 ((n)->rdx = (((v) << 1) | ((n)->rdx & (BcBigDig) 1)))
253 * Sets the rdx of @a n to @a v, where @a n is not a pointer.
255 * @param v The value to set the rdx to.
258 ((n).rdx = (((v) << 1) | ((n).rdx & (BcBigDig) 1)))
261 * Sets the rdx of @a n to @a v and the negative bit to @a neg.
263 * @param v The value to set the rdx to.
266 #define BC_NUM_RDX_SET_NEG(n, v, neg) ((n)->rdx = (((v) << 1) | (neg)))
269 * Returns true if the rdx and scale for @a n match.
271 * @return True if the rdx and scale of @a n match, false otherwise.
277 * Returns true if the rdx and scale for @a n match, where @a n is not a
280 * @return True if the rdx and scale of @a n match, false otherwise.
290 #define BC_NUM_NEG(n) ((n)->rdx & ((BcBigDig) 1))
298 #define BC_NUM_NEG_NP(n) ((n).rdx & ((BcBigDig) 1))
304 #define BC_NUM_NEG_CLR(n) ((n)->rdx &= ~((BcBigDig) 1))
310 #define BC_NUM_NEG_CLR_NP(n) ((n).rdx &= ~((BcBigDig) 1))
316 #define BC_NUM_NEG_SET(n) ((n)->rdx |= ((BcBigDig) 1))
322 #define BC_NUM_NEG_TGL(n) ((n)->rdx ^= ((BcBigDig) 1))
328 #define BC_NUM_NEG_TGL_NP(n) ((n).rdx ^= ((BcBigDig) 1))
331 * Returns the rdx val for @a n if the negative bit is set to @a v.
334 * @return The value of the rdx of @a n if the negative bit were set to @a v.
336 #define BC_NUM_NEG_VAL(n, v) (((n)->rdx & ~((BcBigDig) 1)) | (v))
339 * Returns the rdx val for @a n if the negative bit is set to @a v, where @a n
343 * @return The value of the rdx of @a n if the negative bit were set to @a v.
345 #define BC_NUM_NEG_VAL_NP(n, v) (((n).rdx & ~((BcBigDig) 1)) | (v))
404 * @param rdx True if a decimal (radix) point should be printed.
408 typedef void (*BcNumDigitOp)(size_t n, size_t len, bool rdx, bool bslash);