Changeset cbc534c in mainline


Ignore:
Timestamp:
2018-04-15T22:19:21Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1cac875
Parents:
902dd4b
Message:

Fix period table formatting (C style).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/trackmod/trackmod.c

    r902dd4b rcbc534c  
    7777
    7878static unsigned period_table[12 * 8] = {
    79      907,900,894,887,881,875,868,862,856,850,844,838,832,826,820,814,
    80      808,802,796,791,785,779,774,768,762,757,752,746,741,736,730,725,
    81      720,715,709,704,699,694,689,684,678,675,670,665,660,655,651,646,
    82      640,636,632,628,623,619,614,610,604,601,597,592,588,584,580,575,
    83      570,567,563,559,555,551,547,543,538,535,532,528,524,520,516,513,
    84      508,505,502,498,494,491,487,484,480,477,474,470,467,463,460,457
     79        907, 900, 894, 887, 881, 875, 868, 862, 856, 850, 844, 838,
     80        832, 826, 820, 814, 808, 802, 796, 791, 785, 779, 774, 768,
     81        762, 757, 752, 746, 741, 736, 730, 725, 720, 715, 709, 704,
     82        699, 694, 689, 684, 678, 675, 670, 665, 660, 655, 651, 646,
     83        640, 636, 632, 628, 623, 619, 614, 610, 604, 601, 597, 592,
     84        588, 584, 580, 575, 570, 567, 563, 559, 555, 551, 547, 543,
     85        538, 535, 532, 528, 524, 520, 516, 513, 508, 505, 502, 498,
     86        494, 491, 487, 484, 480, 477, 474, 470, 467, 463, 460, 457
    8587};
    8688
     
    212214                *rem = a % b;
    213215        } else {
    214                 *quot = - (-a + (b - 1)) / b;
     216                *quot = -(-a + (b - 1)) / b;
    215217                *rem = a - (*quot * b);
    216218        }
Note: See TracChangeset for help on using the changeset viewer.