if test "x${with_tuning}" != "x"; then
if test "x${target_cpu}" = "xpowerpc"; then
CFLAGS_TUNING="-mtune=${with_tuning}"
+ elif test "x${target_cpu}" = "xstrongarm1100"; then
+ CFLAGS_TUNING="-mtune=${with_tuning}"
+ AC_DEFINE(HAVE_STRONGARM, 1, Define if have a strongarm cpu, because then we should not do FPU calculations
+ due to lack of FPU hardware support. Otherwise it would be *slow*)
else
CFLAGS_TUNING="-mcpu=${with_tuning}"
fi
* familiar.c : familiar plugin for vlc
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: familiar.c,v 1.22 2003/01/03 20:55:00 jpsaman Exp $
+ * $Id: familiar.c,v 1.23 2003/01/04 00:21:00 jpsaman Exp $
*
* Authors: Jean-Paul Saman <jpsaman@wxs.nl>
*
/* Manage the slider */
if( p_input->stream.b_seekable && p_intf->p_sys->b_playing )
{
+#ifndef HAVE_STRONGARM
float newvalue = p_intf->p_sys->p_adj->value;
+#else
+ off_t newvalue = p_intf->p_sys->p_adj->value;
+#endif
#define p_area p_input->stream.p_selected_area
/* If the user hasn't touched the slider since the last time,
/* Update the value */
p_intf->p_sys->p_adj->value =
p_intf->p_sys->f_adj_oldvalue =
+#ifndef HAVE_STRONGARM
( 100. * p_area->i_tell ) / p_area->i_size;
-
+#else
+ ( 100 * p_area->i_tell ) / p_area->i_size;
+#endif
gtk_signal_emit_by_name( GTK_OBJECT( p_intf->p_sys->p_adj ),
"value_changed" );
}
* familiar.h: private Gtk+ interface description
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
- * $Id: familiar.h,v 1.10 2003/01/03 20:55:01 jpsaman Exp $
+ * $Id: familiar.h,v 1.11 2003/01/04 00:21:00 jpsaman Exp $
*
* Authors: Jean-Paul Saman <jpsaman@wxs.nl>
*
/* slider */
GtkLabel * p_slider_label;
GtkAdjustment * p_adj; /* slider adjustment object */
+#ifdef HAVE_STRONGARM
+ off_t f_adj_oldvalue;
+#else
float f_adj_oldvalue; /* previous value */
-
+#endif
/* special actions */
vlc_bool_t b_playing;
vlc_bool_t b_window_changed; /* window display toggled ? */