Fix FTBFS on power "not a constant expression"
authorDebian Games Team <pkg-games-devel@lists.alioth.debian.org>
Fri, 31 Jan 2025 11:40:38 +0000 (12:40 +0100)
committerCesare Falco <c.falco@ubuntu.com>
Fri, 31 Jan 2025 11:40:38 +0000 (12:40 +0100)
commit98f64b7106a97d9c4706e0d2d37a0ef13e173259
tree2f835a9c38ed5f4d8c5a4bf1ce84b592ec39af8e
parent4a534d03d42a88cfcf5294e93475f225ca270d42
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