Fix FTBFS on power "not a constant expression"
authorDebian Games Team <pkg-games-devel@lists.alioth.debian.org>
Fri, 30 Dec 2022 17:08:54 +0000 (18:08 +0100)
committerCesare Falco <c.falco@ubuntu.com>
Fri, 30 Dec 2022 17:08:54 +0000 (18:08 +0100)
commitdfc23975e89dd643fddb4a4d6bcc51faaf0d949f
tree9ae81341286591b202bc8d63ccf130843b6634fb
parentd96e9fbd6764456ffd8005777d44ab3c82cbfc9a
Fix FTBFS on power "not a constant expression"

There are some explanation upstream :
https://github.com/mamedev/mame/issues/3157

There are some explanation upstream :
https://github.com/mamedev/mame/issues/3157
and this probably due to the fact that IBM 128bit long double format
is not constant folded.
I slighlty rewrote ""_kHz_XTAL(long double clock) and ""_MHz_XTAL(long double clock)
the way ""_kHz_XTAL(unsigned long long clock) and ""_MHz_XTAL(unsigned long long clock)
which makes the compiler happy.
Also including an upstream change about rounding to get same results as on x86
: https://github.com/mamedev/mame/pull/5164
Author: Frédéric Bonnard <frediz@debian.org>

Gbp-Pq: Name fix-922619.patch
src/emu/xtal.h