aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vppinfra/byte_order.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vppinfra/byte_order.h b/src/vppinfra/byte_order.h
index 4cdc06fb329..87918f14e5c 100644
--- a/src/vppinfra/byte_order.h
+++ b/src/vppinfra/byte_order.h
@@ -210,6 +210,14 @@ _(i64);
#undef _
+/* Dummy endian swap functions for IEEE floating-point numbers */
+/* *INDENT-OFF* */
+always_inline f64 clib_net_to_host_f64 (f64 x) { return x; }
+always_inline f64 clib_host_to_net_f64 (f64 x) { return x; }
+always_inline f32 clib_net_to_host_f32 (f32 x) { return x; }
+always_inline f32 clib_host_to_net_f32 (f32 x) { return x; }
+/* *INDENT-ON* */
+
#endif /* included_clib_byte_order_h */
/*