summaryrefslogtreecommitdiff
path: root/print_rnd_mode.c
blob: 0fdb27032ad944d541feee3ba2b061a6fb28c903 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdio.h>
#include "gmp.h"
#include "gmp-impl.h"
#include "mpfr.h"

char *
mpfr_print_rnd_mode(unsigned char rnd_mode)
{
  switch (rnd_mode)
    {
    case GMP_RNDD: return("GMP_RNDD"); 
    case GMP_RNDU: return("GMP_RNDU"); 
    case GMP_RNDN: return("GMP_RNDN"); 
    case GMP_RNDZ: return("GMP_RNDZ"); 
    default: return("unknown rounding mode"); 
    }
}