Fix FTBFS on power "not a constant expression"
authorDebian Games Team <pkg-games-devel@lists.alioth.debian.org>
Thu, 26 Sep 2024 09:44:48 +0000 (11:44 +0200)
committerCesare Falco <c.falco@ubuntu.com>
Thu, 26 Sep 2024 09:44:48 +0000 (11:44 +0200)
commitf5d73583187e1a8dbed1e4ac9d1bace2bc51df1d
tree8289eb0c3adf44df3ae2d02144a072a54e22e88b
parent0a968b7aa2a59c6a18ddf44dc6e37ad1c5a957b4
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