~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to strings/decimal.c

  • Committer: Mark Atwood
  • Date: 2008-07-01 21:25:46 UTC
  • mto: This revision was merged to the branch mainline in revision 45.
  • Revision ID: mark@localhost.localdomain-20080701212546-jzs7ljtwcp2dcmgd
Remove all OpenSSL and all YaSSL code

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
 
static void do_mini_left_shift(decimal_t *dec, int shift, int beg, int last)
 
514
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
 
static void do_mini_right_shift(decimal_t *dec, int shift, int beg, int last)
 
544
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
 
static int decimal_shift(decimal_t *dec, int shift)
 
577
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;