~jaypipes/drizzle/subscriber-plugin

« back to all changes in this revision

Viewing changes to strings/decimal.c

  • Committer: Brian Aker
  • Date: 2008-07-05 19:32:59 UTC
  • mfrom: (53.2.28 codestyle)
  • Revision ID: brian@tangent.org-20080705193259-opqzfb0oprfcg8dm
Merge from Monty's tree

Show diffs side-by-side

added added

removed removed

Lines of Context:
511
511
    'shift' have to be from 1 to DIG_PER_DEC1-1 (inclusive)
512
512
*/
513
513
 
514
 
void do_mini_left_shift(decimal_t *dec, int shift, int beg, int last)
 
514
static void do_mini_left_shift(decimal_t *dec, int shift, int beg, int last)
515
515
{
516
516
  dec1 *from= dec->buf + ROUND_UP(beg + 1) - 1;
517
517
  dec1 *end= dec->buf + ROUND_UP(last) - 1;
541
541
    'shift' have to be from 1 to DIG_PER_DEC1-1 (inclusive)
542
542
*/
543
543
 
544
 
void do_mini_right_shift(decimal_t *dec, int shift, int beg, int last)
 
544
static void do_mini_right_shift(decimal_t *dec, int shift, int beg, int last)
545
545
{
546
546
  dec1 *from= dec->buf + ROUND_UP(last) - 1;
547
547
  dec1 *end= dec->buf + ROUND_UP(beg + 1) - 1;
574
574
    E_DEC_TRUNCATED   number was rounded to fit into buffer
575
575
*/
576
576
 
577
 
int decimal_shift(decimal_t *dec, int shift)
 
577
static int decimal_shift(decimal_t *dec, int shift)
578
578
{
579
579
  /* index of first non zero digit (all indexes from 0) */
580
580
  int beg;