Remove ltt/ directory and its last reference
[lttv.git] / ltt / compiler.h
diff --git a/ltt/compiler.h b/ltt/compiler.h
deleted file mode 100644 (file)
index 9bc0e49..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/* This file is part of the Linux Trace Toolkit trace reading library
- * Copyright (C) 2003-2004 Mathieu Desnoyers
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License Version 2.1 as published by the Free Software Foundation.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- */
-
-#ifndef COMPILER_H
-#define COMPILER_H
-
-#error "Using old ltt/"
-
-/* Fast prediction if likely branches */
-#define likely(x) __builtin_expect(!!(x), 1)
-#define unlikely(x) __builtin_expect(!!(x), 0)
-
-/*
- * Check at compile time that something is of a particular type.
- * Always evaluates to 1 so you may use it easily in comparisons.
- */
-#define typecheck(type,x) \
-({  type __dummy; \
-  typeof(x) __dummy2; \
-  (void)(&__dummy == &__dummy2); \
-  1; \
-})
-
-/* Deal with 32 wrap correctly */
-#define guint32_after(a,b) \
-  (typecheck(guint32, a) && \
-   typecheck(guint32, b) && \
-   ((gint32)(b) - (gint32)(a) < 0))
-#define guint32_before(a,b)  guint32_after(b,a)
-
-#define guint32_after_eq(a,b) \
-  (typecheck(guint32, a) && \
-   typecheck(guint32, b) && \
-   ((gint32)(b) - (gint32)(a) <= 0))
-#define guint32_before_eq(a,b)  guint32_after_eq(b,a)
-
-#define __EXPORT __attribute__ ((visibility ("default")))
-
-#endif //COMPILER_H
This page took 0.02267 seconds and 4 git commands to generate.