Marc-André Lureau
e03b56863d
Replace config-time define HOST_WORDS_BIGENDIAN
...
Replace a config-time define with a compile time condition
define (compatible with clang and gcc) that must be declared prior to
its usage. This avoids having a global configure time define, but also
prevents from bad usage, if the config header wasn't included before.
This can help to make some code independent from qemu too.
gcc supports __BYTE_ORDER__ from about 4.6 and clang from 3.2.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
[ For the s390x parts I'm involved in ]
Acked-by: Halil Pasic <pasic@linux.ibm.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220323155743.1585078-7-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-04-06 10:50:37 +02:00
..
2020-10-26 07:08:38 -04:00
2021-07-26 10:24:49 +02:00
2020-09-30 19:09:19 +02:00
2022-03-04 11:29:34 +01:00
2022-03-29 00:41:50 +02:00
2022-03-04 11:28:37 +01:00
2022-03-29 00:41:50 +02:00
2019-03-11 08:39:02 +01:00
2021-11-19 10:18:27 +01:00
2012-12-19 08:31:30 +01:00
2012-12-19 08:31:30 +01:00
2019-06-12 13:20:20 +02:00
2021-12-21 10:50:22 +04:00
2021-12-21 10:50:22 +04:00
2022-03-14 15:16:08 +04:00
2021-12-21 10:50:22 +04:00
2021-12-21 10:50:22 +04:00
2022-03-15 12:54:59 +04:00
2021-12-21 10:50:22 +04:00
2022-03-15 12:54:55 +04:00
2022-03-14 15:16:08 +04:00
2021-12-21 10:50:21 +04:00
2022-03-14 15:16:05 +04:00
2021-11-05 12:29:44 +01:00
2022-01-13 10:57:43 +01:00
2021-12-21 10:50:21 +04:00
2021-12-21 10:50:21 +04:00
2022-03-18 09:27:33 +01:00
2021-08-02 12:55:51 +01:00
2019-09-17 13:43:22 +02:00
2020-08-21 06:18:30 -04:00
2022-01-13 15:33:18 +01:00
2020-10-15 16:35:06 +01:00
2020-12-19 10:20:14 +01:00
2019-08-16 13:31:52 +02:00
2020-12-10 12:15:18 -05:00
2019-06-12 13:20:20 +02:00
2021-12-21 10:50:22 +04:00
2021-05-27 12:07:37 +02:00
2012-12-19 08:31:30 +01:00
2019-01-21 09:43:13 +01:00
2021-03-04 09:35:36 +01:00
2021-12-21 10:50:21 +04:00
2020-05-19 09:06:44 +02:00
2022-03-14 15:16:01 +04:00
2022-03-14 15:16:16 +04:00
2021-07-26 10:24:49 +02:00
2021-12-21 10:50:21 +04:00
2022-03-14 15:16:01 +04:00
2020-10-21 15:46:14 +02:00
2020-10-21 15:46:14 +02:00
2021-12-21 10:50:22 +04:00
2020-08-21 06:18:24 -04:00
2021-08-31 14:31:43 +02:00
2021-12-21 10:50:21 +04:00
2022-04-06 10:50:37 +02:00
2012-12-19 08:31:30 +01:00
2017-07-27 14:23:09 +02:00
2021-06-15 17:17:09 +02:00
2021-06-15 17:17:09 +02:00
2020-11-04 08:25:17 +01:00
2016-07-12 16:20:46 +02:00
2021-12-21 10:50:21 +04:00
2019-02-05 16:50:18 +01:00
2016-02-04 17:01:04 +00:00
2022-03-21 15:44:44 +01:00
2016-07-12 16:19:16 +02:00
2019-09-17 13:45:10 +02:00
2020-08-21 06:18:30 -04:00
2020-08-21 06:18:30 -04:00
2016-07-12 16:19:16 +02:00
2019-01-11 15:46:56 +01:00
2019-02-05 16:50:18 +01:00
2021-03-15 17:37:50 +01:00
2017-02-08 14:59:36 +01:00
2016-06-07 18:19:24 +03:00
2018-02-09 13:52:15 +01:00
2021-01-23 15:55:07 -05:00
2020-11-04 08:25:17 +01:00
2016-07-12 16:20:46 +02:00
2022-04-06 10:50:37 +02:00
2021-05-21 09:42:44 +02:00
2020-05-19 09:06:44 +02:00
2021-05-02 17:24:50 +02:00
2018-01-25 15:02:00 +01:00