# Checks for libraries.
AC_CHECK_LIB([popt], [poptGetNextOpt], POPT_LIBS="-lpopt",AC_MSG_ERROR([libpopt is required in order to compile LinuxTraceToolkit]) )
-AC_CHECK_LIB([m], [round], M_LIBS="-lm",AC_MSG_ERROR([Mathematical libraries are missing.]) )
+#AC_CHECK_LIB([m], [round], M_LIBS="-lm",AC_MSG_ERROR([Mathematical libraries are missing.]) )
# Checks for header files.
libdir = ${lttlibdir}
AM_CFLAGS = $(GLIB_CFLAGS)
-LIBS += $(GLIB_LIBS) $(M_LIBS)
+LIBS += $(GLIB_LIBS)
lib_LTLIBRARIES = libtraceread.la
libtraceread_la_SOURCES = event.c facility.c parser.c tracefile.c type.c
-libtraceread_la_LIBADD = -lm
noinst_HEADERS = parser.h ltt-private.h
lttinclude_HEADERS = \
if(t1.tv_sec > MAX_TV_SEC_TO_DOUBLE)
g_warning("Precision loss in conversion LttTime to double");
#endif //EXTRA_CHECK
- return round(((double)((guint64)t1.tv_sec<<DOUBLE_SHIFT)
+ return ((double)((guint64)t1.tv_sec<<DOUBLE_SHIFT)
* (double)DOUBLE_SHIFT_CONST_MUL)
- + (double)t1.tv_nsec);
+ + (double)t1.tv_nsec;
}
LttTime res;
//res.tv_sec = t1/(double)NANOSECONDS_PER_SECOND;
res.tv_sec = (guint64)(t1 * DOUBLE_SHIFT_CONST_DIV) >> DOUBLE_SHIFT;
- res.tv_nsec = (round(t1) - (((guint64)res.tv_sec<<LTT_TIME_UINT_SHIFT))
+ res.tv_nsec = (t1 - (((guint64)res.tv_sec<<LTT_TIME_UINT_SHIFT))
* LTT_TIME_UINT_SHIFT_CONST);
return res;
}
getCyclePerNsec(tf);
- tf->overflow_nsec = round(
+ tf->overflow_nsec =
(-((double)(tf->a_block_start->cycle_count&0xFFFFFFFF))
- * tf->nsec_per_cycle));
+ * tf->nsec_per_cycle);
tf->current_event_time = getEventTime(tf);
tf->prev_event_time.tv_nsec = 0;
tf->count = 0;
- tf->overflow_nsec = round((-((double)tf->a_block_start->cycle_count)
- * tf->nsec_per_cycle));
+ tf->overflow_nsec = (-((double)tf->a_block_start->cycle_count)
+ * tf->nsec_per_cycle);
}
t->nsec_per_cycle = (double)lBufTotalNSec / (double)lBufTotalCycle;
/* Pre-multiply one overflow (2^32 cycles) by nsec_per_cycle */
- t->one_overflow_nsec = round(t->nsec_per_cycle * (double)0x100000000ULL);
+ t->one_overflow_nsec = t->nsec_per_cycle * (double)0x100000000ULL;
}
if(unlikely(evId == TRACE_BLOCK_START)) {
lEventNSec = 0;
} else if(unlikely(evId == TRACE_BLOCK_END)) {
- lEventNSec = round(((double)
+ lEventNSec = ((double)
(tf->a_block_end->cycle_count - tf->a_block_start->cycle_count)
- * tf->nsec_per_cycle));
+ * tf->nsec_per_cycle);
}
#if 0
/* If you want to make heart beat a special case and use their own 64 bits
}
#endif //0
else {
- lEventNSec = (gint64)round(((double)cycle_count * tf->nsec_per_cycle))
+ lEventNSec = (gint64)((double)cycle_count * tf->nsec_per_cycle)
+tf->overflow_nsec;
}
AM_CFLAGS = $(GLIB_CFLAGS)
-LIBS += $(M_LIBS) $(POPT_LIBS) $(GLIB_LIBS) -lgobject-2.0 -L$(top_srcdir)/ltt -ltraceread
+LIBS += $(POPT_LIBS) $(GLIB_LIBS) -lgobject-2.0 -L$(top_srcdir)/ltt -ltraceread
bin_PROGRAMS = lttv
AM_CFLAGS = $(GLIB_CFLAGS)
AM_CFLAGS += $(GTK_CFLAGS)
-LIBS += $(M_LIBS) $(GLIB_LIBS)
+LIBS += $(GLIB_LIBS)
LIBS += $(GTK_LIBS) -L${top_srcdir}/lttv/modules/gui/lttvwindow/lttvwindow -llttvwindow
libdir = ${lttvplugindir}
libguicontrolflow_la_LDFLAGS = -module
libguicontrolflow_la_SOURCES = module.c eventhooks.c cfv.c processlist.c\
drawing.c drawitem.c
-libguicontrolflow_la_LIBADD = -lm
noinst_HEADERS = eventhooks.h cfv.h processlist.h\
drawing.h drawitem.h
AM_CFLAGS = $(GLIB_CFLAGS)
AM_CFLAGS += $(GTK_CFLAGS)
-LIBS += $(M_LIBS) $(GLIB_LIBS)
+LIBS += $(GLIB_LIBS)
LIBS += $(GTK_LIBS) -L${top_srcdir}/lttv/modules/gui/lttvwindow/lttvwindow -llttvwindow
libdir = ${lttvplugindir}
lib_LTLIBRARIES = libguievents.la
libguievents_la_LDFLAGS = -module
libguievents_la_SOURCES = events.c
-libguievents_la_LIBADD = -lm
EXTRA_DIST = \
hGuiEventsInsert.xpm
AM_CFLAGS = $(GLIB_CFLAGS)
AM_CFLAGS += $(GTK_CFLAGS)
-LIBS += $(M_LIBS) $(GLIB_LIBS)
+LIBS += $(GLIB_LIBS)
LIBS += $(GTK_LIBS)
INCLUDES = \
menu.h\
toolbar.h
-liblttvwindow_la_LIBADD = -lm @PACKAGE_LIBS@ $(INTLLIBS)
+liblttvwindow_la_LIBADD = @PACKAGE_LIBS@ $(INTLLIBS)
AM_CFLAGS = $(GLIB_CFLAGS)
AM_CFLAGS += $(GTK_CFLAGS)
-LIBS += $(M_LIBS) $(GLIB_LIBS)
+LIBS += $(GLIB_LIBS)
LIBS += $(GTK_LIBS) -L${top_srcdir}/lttv/modules/gui/lttvwindow/lttvwindow -llttvwindow
libdir = ${lttvplugindir}
lib_LTLIBRARIES = libguistatistics.la
libguistatistics_la_LDFLAGS = -module
libguistatistics_la_SOURCES = statistics.c
-libguistatistics_la_LIBADD = -lm
EXTRA_DIST = \
hGuiStatisticInsert.xpm
AM_CFLAGS = $(GLIB_CFLAGS)
-LIBS += $(M_LIBS) $(GLIB_LIBS) -lgobject-2.0 -L$(top_srcdir)/ltt -ltraceread
+LIBS += $(GLIB_LIBS) -lgobject-2.0 -L$(top_srcdir)/ltt -ltraceread
libdir = ${lttvplugindir}
lib_LTLIBRARIES = libtextDump.la libbatchAnalysis.la
libtextDump_la_LDFLAGS = -module
libtextDump_la_SOURCES = textDump.c
-libtextDump_la_LIBADD = -lm
libbatchAnalysis_la_LDFLAGS = -module
libbatchAnalysis_la_SOURCES = batchAnalysis.c
-libbatchAnalysis_la_LIBADD = -lm
noinst_HEADERS = \
batchanalysis.h