-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rtc fix #17161
Rtc fix #17161
Conversation
Also simplifies code. Note: some uses of (potentially 32-bit) time_t are still left.
As an aside, I now get different pspautotests failures on my machine:
Everything else passes. |
That's curious, do those start with this commit, or some other recent one? |
Well, I can tell that they were not happening in dc4190e, but are happening in The Not sure |
OK so here's the range: Mostly texture replacement and high level emulator framework stuff in there... Maybe an accidental change of FPU rounding mode or something? hm |
d97790e explicitly affects |
Yeah, but only in the IR interpreter - which I don't think the tests run? or do they? |
Could you maybe do a quick gtt bisect then? If you've never used it, do, it's awesome. basically:
|
Sorry, it seems I remembered wrong. Both dc4190e and even earlier 4b73672 do have these failures. #16984 does not, however. That's not surprising for |
Ah, interesting. Do add -mfpmath=sse, I don't see any reason to use traditional FPU as we require SSE anyway. |
This should fix #17119 (it does on, my machine). Only briefly tested in actual emulator (outside autotests) - the date/time in saves seems sensible.
The code is also simplified, and less dependent on library functions. Some of the uses of
time_t
are still not purged. It should be possible to expressrtc_timegm
entirely in terms ofdays_from_civil
(but change return type tos64
), which is also more portable. Same for all uses ofgmtime
. All local/timezone stiff still needs standard library.Not quite sure what the license for http://howardhinnant.github.io/date_algorithms.html is (the accompanying https://howardhinnant.github.io/date/date.html library is MIT). The text does say
So I hope a single-line comment attribution is enough.