Ilya Maximets
be2cd24b12
compiler.h: Don't use asm and typeof with non-GNU compilers.
...
'asm' is a GNU extension. Compilers without GNU extensions do not
understand it:
dpif-netdev-perf.h:225:5: error: use of undeclared identifier 'asm'
asm volatile("rdtsc" : "=a" (l), "=d" (h));
Redefining asm as __asm__ for non-C++ compilers that do not have it
defined. While at it, also add typeof definition. It doesn't need
a check for C++, because it's not a keyword in C++.
Acked-by: Eelco Chaudron <echaudro@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
2023-08-23 13:46:14 +02:00
..
2017-09-05 14:45:57 -04:00
2023-01-16 19:55:21 +01:00
2023-08-23 13:46:14 +02:00
2022-08-04 14:18:05 +02:00
2022-06-07 15:17:52 +02:00
2017-07-31 16:03:39 -07:00
2022-03-30 16:59:02 +02:00
2021-11-30 13:33:43 +01:00
2022-03-30 16:59:02 +02:00
2020-06-19 08:51:11 +02:00
2023-04-06 13:17:15 +02:00
2018-02-13 10:43:13 -08:00
2023-07-17 20:03:32 +02:00
2019-06-09 16:38:31 -07:00
2022-05-17 23:10:17 +02:00
2018-06-18 15:25:44 -07:00
2020-10-16 19:10:02 -07:00
2023-01-16 19:58:08 +01:00
2017-08-07 11:26:17 -07:00
2020-10-16 19:10:02 -07:00
2018-05-16 15:29:46 -07:00
2018-09-26 13:49:43 -07:00
2018-06-18 15:25:44 -07:00
2018-06-18 15:25:44 -07:00
2018-06-18 15:25:44 -07:00
2022-04-28 21:27:11 +02:00
2023-01-16 19:58:08 +01:00
2019-06-21 17:31:50 -07:00
2018-02-13 10:43:13 -08:00
2019-02-05 09:21:19 -08:00
2018-03-14 11:41:22 -07:00
2017-07-31 16:03:39 -07:00
2019-06-20 10:26:30 -07:00
2018-06-18 15:25:44 -07:00
2018-03-14 11:41:22 -07:00
2019-01-15 16:59:37 -08:00
2018-03-14 11:41:22 -07:00
2022-05-17 23:10:17 +02:00
2020-03-25 20:26:51 -07:00
2017-11-03 10:47:55 -07:00
2019-07-05 13:35:07 -07:00
2022-03-30 16:59:02 +02:00
2019-12-19 01:06:54 +01:00
2017-07-31 16:03:39 -07:00
2018-03-31 11:31:36 -07:00
2017-07-31 16:03:39 -07:00
2021-08-20 11:32:52 -07:00
2022-01-18 00:46:30 +01:00
2022-05-17 23:10:20 +02:00
2017-07-31 16:03:39 -07:00
2019-01-15 16:59:37 -08:00
2014-11-25 14:31:11 -08:00
2023-06-08 20:30:42 +02:00