chiark / gitweb /
@@@ mostly bench docs
[mLib] / utils / t / fltfmt-test.c
index 76e1d41c6f7d6376a398e090838726f38bc1c339..5b606077e3f09ad1b2cff6fc9c735b37b358b200 100644 (file)
@@ -79,18 +79,18 @@ static const struct tvec_flaginfo flterrmask_flaginfo =
 static const struct tvec_flag fltrnd_flags[] = {
 
   /* Standard rounding modes. */
-  { "zero",            0xffff        FLTRND_ZERO },
-  { "projinf",         0xffff        FLTRND_PROJINF },
-  { "posinf",          0xffff        FLTRND_POSINF },
-  { "neginf",          0xffff        FLTRND_NEGINF },
-  { "odd",             0xffff        FLTRND_ODD },
-  { "even",            0xffff        FLTRND_EVEN },
-  { "nearest-even",    0xffff        FLTRND_NEAREVEN },
-  { "nearest-odd",     0xffff        FLTRND_NEARODD },
-  { "nearest-zero",    0xffff        FLTRND_NEARZERO },
-  { "nearest-projinf", 0xffff        FLTRND_NEARINF },
-  { "nearest-neginf",  0xffff        FLTRND_NEARNEG },
-  { "nearest-posinf",  0xffff        FLTRND_NEARPOS },
+  { "zero",            0xffffu,        FLTRND_ZERO },
+  { "projinf",         0xffffu,        FLTRND_PROJINF },
+  { "posinf",          0xffffu,        FLTRND_POSINF },
+  { "neginf",          0xffffu,        FLTRND_NEGINF },
+  { "odd",             0xffffu,        FLTRND_ODD },
+  { "even",            0xffffu,        FLTRND_EVEN },
+  { "nearest-even",    0xffffu,        FLTRND_NEAREVEN },
+  { "nearest-odd",     0xffffu,        FLTRND_NEARODD },
+  { "nearest-zero",    0xffffu,        FLTRND_NEARZERO },
+  { "nearest-projinf", 0xffffu,        FLTRND_NEARINF },
+  { "nearest-neginf",  0xffffu,        FLTRND_NEARNEG },
+  { "nearest-posinf",  0xffffu,        FLTRND_NEARPOS },
 
   /* Rounding mode bits: rounds away from zero in the listed conditions.
    * The notation corresponds to rounding predicates as follows.  The syntax
@@ -102,22 +102,22 @@ static const struct tvec_flag fltrnd_flags[] = {
    *   <h>     @HALF@  %|0|%   %|1|%
    *   <r>     @LOW@   %|0|%   %|1|%
    */
-  { "+0.00",           0x0001,         0x0001 },
-  { "+0.01",           0x0002,         0x0002 },
-  { "+0.10",           0x0004,         0x0004 },
-  { "+0.11",           0x0008,         0x0008 },
-  { "+1.00",           0x0010,         0x0010 },
-  { "+1.01",           0x0020,         0x0020 },
-  { "+1.10",           0x0040,         0x0040 },
-  { "+1.11",           0x0080,         0x0080 },
-  { "-0.00",           0x0100,         0x0100 },
-  { "-0.01",           0x0200,         0x0200 },
-  { "-0.10",           0x0400,         0x0400 },
-  { "-0.11",           0x0800,         0x0800 },
-  { "-1.00",           0x1000,         0x1000 },
-  { "-1.01",           0x2000,         0x2000 },
-  { "-1.10",           0x4000,         0x4000 },
-  { "-1.11",           0x8000,         0x8000 },
+  { "+0.00",           0x0001u,        0x0001u },
+  { "+0.01",           0x0002u,        0x0002u },
+  { "+0.10",           0x0004u,        0x0004u },
+  { "+0.11",           0x0008u,        0x0008u },
+  { "+1.00",           0x0010u,        0x0010u },
+  { "+1.01",           0x0020u,        0x0020u },
+  { "+1.10",           0x0040u,        0x0040u },
+  { "+1.11",           0x0080u,        0x0080u },
+  { "-0.00",           0x0100u,        0x0100u },
+  { "-0.01",           0x0200u,        0x0200u },
+  { "-0.10",           0x0400u,        0x0400u },
+  { "-0.11",           0x0800u,        0x0800u },
+  { "-1.00",           0x1000u,        0x1000u },
+  { "-1.01",           0x2000u,        0x2000u },
+  { "-1.10",           0x4000u,        0x4000u },
+  { "-1.11",           0x8000u,        0x8000u },
 
   /* Phew! */
   TVEC_ENDFLAGS