Changeset a35b458 in mainline for uspace/lib/math/include/mathtypes.h


Ignore:
Timestamp:
2018-03-02T20:10:49Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f1380b7
Parents:
3061bc1
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
Message:

style: Remove trailing whitespace on _all_ lines, including empty ones, for particular file types.

Command used: tools/srepl '\s\+$' '' -- *.c *.h *.py *.sh *.s *.S *.ag

Currently, whitespace on empty lines is very inconsistent.
There are two basic choices: Either remove the whitespace, or keep empty lines
indented to the level of surrounding code. The former is AFAICT more common,
and also much easier to do automatically.

Alternatively, we could write script for automatic indentation, and use that
instead. However, if such a script exists, it's possible to use the indented
style locally, by having the editor apply relevant conversions on load/save,
without affecting remote repository. IMO, it makes more sense to adopt
the simpler rule.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/math/include/mathtypes.h

    r3061bc1 ra35b458  
    9191typedef union {
    9292        uint32_t bin;
    93        
     93
    9494        struct {
    9595                uint32_t sign : 1;
     
    101101typedef union {
    102102        uint64_t bin;
    103        
     103
    104104        struct {
    105105                uint64_t sign : 1;
     
    114114                uint32_t lo;
    115115        } bin __attribute__((packed));
    116        
     116
    117117        struct {
    118118                uint64_t padding : 16;
     
    128128                uint64_t lo;
    129129        } bin __attribute__((packed));
    130        
     130
    131131        struct {
    132132                uint64_t sign : 1;
     
    141141typedef union {
    142142        uint32_t bin;
    143        
     143
    144144        struct {
    145145                uint32_t fraction : 23;
     
    151151typedef union {
    152152        uint64_t bin;
    153        
     153
    154154        struct {
    155155                uint64_t fraction : 52;
     
    164164                uint64_t hi;
    165165        } bin __attribute__((packed));
    166        
     166
    167167        struct {
    168168                uint64_t fraction : 64;
     
    178178                uint64_t hi;
    179179        } bin __attribute__((packed));
    180        
     180
    181181        struct {
    182182                uint64_t frac_lo : 64;
Note: See TracChangeset for help on using the changeset viewer.