+/*
+ * SPDX-License-Identifier: MIT
+ *
+ * Copyright 2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ */
#include <stdbool.h>
#include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
static inline
bool bt_safe_to_mul_int64(int64_t a, int64_t b)
{
{
return a <= UINT64_MAX - b;
}
+
+#ifdef __cplusplus
+}
+#endif