diff options
author | Karl Williamson <khw@cpan.org> | 2020-03-16 07:42:58 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-03-18 18:08:57 -0600 |
commit | 06769212df5bc035d19607bad7be96be9e2ce6fe (patch) | |
tree | 7419f287a72ee41fef7739f33ea6af941e0c4130 /time64.c | |
parent | 0e72ccea99231fdf256314049ce270602f5c63ac (diff) | |
download | perl-06769212df5bc035d19607bad7be96be9e2ce6fe.tar.gz |
time64.c: Add a branch prediction for unlikely event
Diffstat (limited to 'time64.c')
-rw-r--r-- | time64.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -518,7 +518,7 @@ struct TM *Perl_localtime64_r (const Time64_T *time, struct TM *local_tm) * when appropriate */ result = localtime(&safe_time); - if( result == NULL ) { + if(UNLIKELY(result == NULL)) { LOCALTIME_UNLOCK; TIME64_TRACE1("localtime(%d) returned NULL\n", (int)safe_time); return NULL; |