]> git.proxmox.com Git - mirror_qemu.git/blobdiff - libdecnumber/decContext.c
minikconf: do not include variables from MINIKCONF_ARGS in config-all-devices.mak
[mirror_qemu.git] / libdecnumber / decContext.c
index 8d577f48ad41d76f404e107d08020e7f90c96d2d..7d97a65ac565fa8ea7dfef1f70e49788c33ce8ca 100644 (file)
 /* context structures.                                               */
 /* ------------------------------------------------------------------ */
 
-#include <string.h>          /* for strcmp */
-#include <stdio.h>           /* for printf if DECCHECK */
-#include "dconfig.h"         /* for GCC definitions */
-#include "decContext.h"              /* context and base types */
-#include "decNumberLocal.h"   /* decNumber local types, etc. */
+#include "qemu/osdep.h"
+#include "libdecnumber/dconfig.h"
+#include "libdecnumber/decContext.h"
+#include "libdecnumber/decNumberLocal.h"
 
 #if DECCHECK
 /* compile-time endian tester [assumes sizeof(Int)>1] */
@@ -56,8 +55,10 @@ const uByte DECSTICKYTAB[10]={1,1,2,3,4,6,6,7,8,9}; /* used if sticky */
 /* ------------------------------------------------------------------ */
 /* Powers of ten (powers[n]==10**n, 0<=n<=9)                         */
 /* ------------------------------------------------------------------ */
-const uInt DECPOWERS[10]={1, 10, 100, 1000, 10000, 100000, 1000000,
-                         10000000, 100000000, 1000000000};
+const uLong DECPOWERS[19] = {1, 10, 100, 1000, 10000, 100000, 1000000,
+  10000000, 100000000, 1000000000, 10000000000ULL, 100000000000ULL,
+  1000000000000ULL, 10000000000000ULL, 100000000000000ULL, 1000000000000000ULL,
+  10000000000000000ULL, 100000000000000000ULL, 1000000000000000000ULL, };
 
 /* ------------------------------------------------------------------ */
 /* decContextClearStatus -- clear bits in current status             */
@@ -184,7 +185,7 @@ uInt decContextGetStatus(decContext *context) {
 /*  newstatus is the source for the bits to be restored                      */
 /*  mask indicates the bits to be restored (the status bit that              */
 /*    corresponds to each 1 bit in the mask is set to the value of    */
-/*    the correspnding bit in newstatus)                             */
+/*    the corresponding bit in newstatus)                            */
 /*  returns context                                                  */
 /*                                                                   */
 /* No error is possible.                                             */