Rewrite mktime in assembly
-415 bytes, -39% cycles, Unit test expanded to cover more cases (there was a bug in 2100 before!)
This commit is contained in:
@@ -41,7 +41,7 @@ __time_t_to_tm:
|
||||
ldx #.sizeof(tm)-1
|
||||
: sta TM,x
|
||||
dex
|
||||
bne :-
|
||||
bpl :-
|
||||
|
||||
; Divide t/86400
|
||||
jsr udiv32
|
||||
|
||||
Reference in New Issue
Block a user