Changeset 07b8001


Ignore:
Timestamp:
Apr 13, 2018, 8:44:35 AM (4 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, with_gc
Children:
bd5cf7c
Parents:
10a97ad
Message:

adjust size of "time"

Location:
src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/time

    r10a97ad r07b8001  
    1010// Created On       : Wed Mar 14 23:18:57 2018
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Apr 12 16:53:35 2018
    13 // Update Count     : 629
     12// Last Modified On : Fri Apr 13 07:51:52 2018
     13// Update Count     : 634
    1414//
    1515
     
    2929
    3030//######################### Duration #########################
     31
     32static inline void ?{}( Duration & dur, Duration d ) with( dur ) { tv = d.tv; }
    3133
    3234static inline Duration ?=?( Duration & dur, zero_t ) { return dur{ 0 }; }
     
    135137//######################### Time #########################
    136138
    137 static inline Time ?=?( Time & t, zero_t ) { return t{ 0 }; }
    138 
    139 static inline void ?{}( Time & time, timeval t ) with( time ) {
    140         tv = (int64_t)t.tv_sec * TIMEGRAN + t.tv_usec * 1000;
    141 } // Time
     139static inline void ?{}( Time & time, Time t ) with( time ) { tv = t.tv; }
     140void ?{}( Time & time, int year, int month = 0, int day = 0, int hour = 0, int min = 0, int sec = 0, int nsec = 0 );
     141static inline void ?{}( Time & time, timeval t ) with( time ) { tv = (int64_t)t.tv_sec * TIMEGRAN + t.tv_usec * 1000; }
     142
     143static inline Time ?=?( Time & time, zero_t ) { return time{ 0 }; }
    142144
    143145static inline Time ?=?( Time & time, timeval t ) with( time ) {
  • src/libcfa/time_t.h

    r10a97ad r07b8001  
    1010// Created On       : Tue Apr 10 14:42:03 2018
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Apr 10 16:32:04 2018
    13 // Update Count     : 3
     12// Last Modified On : Fri Apr 13 07:51:47 2018
     13// Update Count     : 6
    1414//
    1515
     
    2424
    2525static inline void ?{}( Duration & dur ) with( dur ) { tv = 0; }
    26 static inline void ?{}( Duration & dur, Duration d ) with( dur ) { tv = d.tv; }
    2726static inline void ?{}( Duration & dur, zero_t ) with( dur ) { tv = 0; }
    2827
     
    3433}; // Time
    3534
    36 static inline void ?{}( Time & t ) with( t ) { tv = 0; } // fast
    37 void ?{}( Time & time, int year, int month = 0, int day = 0, int hour = 0, int min = 0, int sec = 0, int nsec = 0 ); // slow
    38 static inline void ?{}( Time & t, zero_t ) { t.tv = 0; }
     35static inline void ?{}( Time & time ) with( time ) { tv = 0; }
     36static inline void ?{}( Time & time, zero_t ) with( time ) { tv = 0; }
    3937
    4038// Local Variables: //
  • src/tests/.expect/literals.x64.txt

    r10a97ad r07b8001  
    152152    ((void)((*__dur__R9sDuration_1).__tv__l_1=((signed long int )0)));
    153153}
    154 static inline void ___constructor__F_R9sDuration9sDuration__1(struct Duration *__dur__R9sDuration_1, struct Duration __d__9sDuration_1){
    155     ((void)((*__dur__R9sDuration_1).__tv__l_1=__d__9sDuration_1.__tv__l_1) /* ?{} */);
    156     ((void)((*__dur__R9sDuration_1).__tv__l_1=__d__9sDuration_1.__tv__l_1));
    157 }
    158154static inline void ___constructor__F_R9sDurationZ__1(struct Duration *__dur__R9sDuration_1, long int __anonymous_object1351){
    159155    ((void)((*__dur__R9sDuration_1).__tv__l_1) /* ?{} */);
     
    186182    ((void)((*___dst__R5sTime_1).__tv__Ul_1=__tv__Ul_1) /* ?{} */);
    187183}
    188 static inline void ___constructor__F_R5sTime__1(struct Time *__t__R5sTime_1){
    189     ((void)((*__t__R5sTime_1).__tv__Ul_1) /* ?{} */);
    190     ((void)((*__t__R5sTime_1).__tv__Ul_1=((unsigned long int )0)));
    191 }
    192 void ___constructor__F_R5sTimeiiiiiii__1(struct Time *__time__R5sTime_1, signed int __year__i_1, signed int __month__i_1, signed int __day__i_1, signed int __hour__i_1, signed int __min__i_1, signed int __sec__i_1, signed int __nsec__i_1);
    193 static inline void ___constructor__F_R5sTimeZ__1(struct Time *__t__R5sTime_1, long int __anonymous_object1352){
    194     ((void)((*__t__R5sTime_1).__tv__Ul_1) /* ?{} */);
    195     ((void)((*__t__R5sTime_1).__tv__Ul_1=((unsigned long int )0)));
     184static inline void ___constructor__F_R5sTime__1(struct Time *__time__R5sTime_1){
     185    ((void)((*__time__R5sTime_1).__tv__Ul_1) /* ?{} */);
     186    ((void)((*__time__R5sTime_1).__tv__Ul_1=((unsigned long int )0)));
     187}
     188static inline void ___constructor__F_R5sTimeZ__1(struct Time *__time__R5sTime_1, long int __anonymous_object1352){
     189    ((void)((*__time__R5sTime_1).__tv__Ul_1) /* ?{} */);
     190    ((void)((*__time__R5sTime_1).__tv__Ul_1=((unsigned long int )0)));
    196191}
    197192void *___operator_bitor__A0_1_0_0___sepPrt__PFb_Rd0___sepReset__PF_Rd0___sepReset__PF_Rd0b___sepGetCur__PFPCc_Rd0___sepSetCur__PF_Rd0PCc___getNL__PFb_Rd0___setNL__PF_Rd0b___sepOn__PF_Rd0___sepOff__PF_Rd0___sepDisable__PFb_Rd0___sepEnable__PFb_Rd0___sepGet__PFPCc_Rd0___sepSet__PF_Rd0PCc___sepGetTuple__PFPCc_Rd0___sepSetTuple__PF_Rd0PCc___fail__PFi_Rd0___flush__PFi_Rd0___open__PF_Rd0PCcPCc___close__PF_Rd0___write__PFRd0_Rd0PCcUl___fmt__PFi_Rd0PCc__FRd0_Rd09sDuration__1(__attribute__ ((unused)) _Bool (*__sepPrt__PFb_R7tostype__1)(void *__anonymous_object1353), __attribute__ ((unused)) void (*__sepReset__PF_R7tostype__1)(void *__anonymous_object1354), __attribute__ ((unused)) void (*__sepReset__PF_R7tostypeb__1)(void *__anonymous_object1355, _Bool __anonymous_object1356), __attribute__ ((unused)) const char *(*__sepGetCur__PFPCc_R7tostype__1)(void *__anonymous_object1357), __attribute__ ((unused)) void (*__sepSetCur__PF_R7tostypePCc__1)(void *__anonymous_object1358, const char *__anonymous_object1359), __attribute__ ((unused)) _Bool (*__getNL__PFb_R7tostype__1)(void *__anonymous_object1360), __attribute__ ((unused)) void (*__setNL__PF_R7tostypeb__1)(void *__anonymous_object1361, _Bool __anonymous_object1362), __attribute__ ((unused)) void (*__sepOn__PF_R7tostype__1)(void *__anonymous_object1363), __attribute__ ((unused)) void (*__sepOff__PF_R7tostype__1)(void *__anonymous_object1364), __attribute__ ((unused)) _Bool (*__sepDisable__PFb_R7tostype__1)(void *__anonymous_object1365), __attribute__ ((unused)) _Bool (*__sepEnable__PFb_R7tostype__1)(void *__anonymous_object1366), __attribute__ ((unused)) const char *(*__sepGet__PFPCc_R7tostype__1)(void *__anonymous_object1367), __attribute__ ((unused)) void (*__sepSet__PF_R7tostypePCc__1)(void *__anonymous_object1368, const char *__anonymous_object1369), __attribute__ ((unused)) const char *(*__sepGetTuple__PFPCc_R7tostype__1)(void *__anonymous_object1370), __attribute__ ((unused)) void (*__sepSetTuple__PF_R7tostypePCc__1)(void *__anonymous_object1371, const char *__anonymous_object1372), __attribute__ ((unused)) signed int (*__fail__PFi_R7tostype__1)(void *__anonymous_object1373), __attribute__ ((unused)) signed int (*__flush__PFi_R7tostype__1)(void *__anonymous_object1374), __attribute__ ((unused)) void (*__open__PF_R7tostypePCcPCc__1)(void *__os__R7tostype_1, const char *__name__PCc_1, const char *__mode__PCc_1), __attribute__ ((unused)) void (*__close__PF_R7tostype__1)(void *__os__R7tostype_1), __attribute__ ((unused)) void *(*__write__PFR7tostype_R7tostypePCcUl__1)(void *__anonymous_object1375, const char *__anonymous_object1376, unsigned long int __anonymous_object1377), __attribute__ ((unused)) signed int (*__fmt__PFi_R7tostypePCc__1)(void *__anonymous_object1378, const char *__fmt__PCc_1, ...), void *__os__R7tostype_1, struct Duration __dur__9sDuration_1);
Note: See TracChangeset for help on using the changeset viewer.