cpp/src/arrow/util/basic_decimal.cc
/// Expands the given value into a big endian array of ints so that we can work on
/// it. The array will be converted to an absolute value and the was_negative
/// flag will be set appropriately. The array will remove leading zeros from
/// the value.
/// \param array a big endian array of length 8 to set with the value
/// \param was_negative a flag for whether the value was original negative
/// \result the output length of the array
Expands the given value into a big endian array of ints so that we can work on
it. The array will be converted to an absolute value and the was_negative
flag will be set appropriately. The array will remove leading zeros from
the value.
\param array a big endian array of length 8 to set with the value
\param was_negative a flag for whether the value was original negative
\result the output length of the array
Expands the given value into a big endian array of ints so that we can work on it . The array will be converted to an absolute value and the was_negative flag will be set appropriately . The array will remove leading zeros from the value . \ param array a big endian array of length 8 to set with the value \ param was_negative a flag for whether the value was original negative \ result the output length of the array
static int64_t FillInArray(const BasicDecimal256& value, uint32_t* array,
                           bool& was_negative) {
  BasicDecimal256 positive_value = value;
  was_negative = false;
  if (positive_value.IsNegative()) {
    positive_value.Negate();
    was_negative = true;
  }
  return FillInArray<4>(positive_value.little_endian_array(), array);
}
static int64_t FillInArray ( const BasicDecimal256 & value , uint32_t * array , bool & was_negative ) { BasicDecimal256 positive_value = value ; was_negative = false ; if ( positive_value . IsNegative ( ) ) { positive_value . Negate ( ) ; was_negative = true ; } return FillInArray < 4 > ( positive_value . little_endian_array ( ) , array ) ; }
Expands the given value into a big endian array of ints so that we can work on
it.
Expands the given value into a big endian array of ints so that we can work on it .