Changeset bbdca54 in mainline


Ignore:
Timestamp:
2018-08-30T19:44:44Z (6 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Parents:
3b814c3a
Message:

Fix cstyle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/math/test/rounding.c

    r3b814c3a rbbdca54  
    3535PCUT_TEST_SUITE(rounding);
    3636
    37 static inline uint32_t fint(float x) {
     37static inline uint32_t fint(float x)
     38{
    3839        union {
    3940                float f;
     
    4344}
    4445
    45 static inline uint64_t dint(double x) {
     46static inline uint64_t dint(double x)
     47{
    4648        union {
    4749                double f;
     
    11081110};
    11091111
    1110 #if 0
    1111 static double double_arguments[DOUBLE_CASES] = {
    1112         0.0000000000000p0
    1113 };
    1114 
    1115 static double double_results_trunc[DOUBLE_CASES] = {
    1116 };
    1117 #endif
    1118 
    11191112PCUT_TEST(identity)
    11201113{
     
    11451138                uint64_t f2 = dint(float_results_trunc[i]);
    11461139                if (f1 != f2) {
    1147                         PCUT_ASSERTION_FAILED("case %d: 0x%016"PRIx64" != 0x%016"PRIx64"\n", i, f1, f2);
     1140                        PCUT_ASSERTION_FAILED("case %d: 0x%016" PRIx64 " != 0x%016" PRIx64 "\n", i, f1, f2);
    11481141                }
    11491142        }
     
    11691162                uint64_t f2 = dint(float_results_round[i]);
    11701163                if (f1 != f2) {
    1171                         PCUT_ASSERTION_FAILED("case %d: 0x%016"PRIx64" != 0x%016"PRIx64"\n", i, f1, f2);
     1164                        PCUT_ASSERTION_FAILED("case %d: 0x%016" PRIx64 " != 0x%016" PRIx64 "\n", i, f1, f2);
    11721165                }
    11731166        }
     
    11971190                uint64_t f2 = dint(float_results_nearbyint[i]);
    11981191                if (f1 != f2) {
    1199                         PCUT_ASSERTION_FAILED("case %d: 0x%016"PRIx64" != 0x%016"PRIx64"\n", i, f1, f2);
     1192                        PCUT_ASSERTION_FAILED("case %d: 0x%016" PRIx64 " != 0x%016" PRIx64 "\n", i, f1, f2);
    12001193                }
    12011194        }
Note: See TracChangeset for help on using the changeset viewer.