patch-2.1.126 linux/include/video/fbcon.h
Next file: linux/init/main.c
Previous file: linux/include/linux/wanrouter.h
Back to the patch index
Back to the overall index
- Lines: 43
- Date:
Thu Oct 15 15:24:18 1998
- Orig file:
v2.1.125/linux/include/video/fbcon.h
- Orig date:
Mon Oct 5 13:13:47 1998
diff -u --recursive --new-file v2.1.125/linux/include/video/fbcon.h linux/include/video/fbcon.h
@@ -465,7 +465,30 @@
fast_memmove(dst, src, size);
return dst;
}
+
+#else
+
+#ifdef CONFIG_SUN4
+/* To be honest, this is slow_memmove :). But sun4 is crappy, so what we can do. */
+static __inline__ void fast_memmove(void *d, const void *s, size_t count)
+{
+ int i;
+ if (d<s) {
+ for (i=0; i<count; i++)
+ ((char *) d)[i] = ((char *) s)[i];
+ } else
+ for (i=0; i<count; i++)
+ ((char *) d)[count-i-1] = ((char *) s)[count-i-1];
+}
+
+static __inline__ void *mymemmove(char *dst, const char *src, size_t size)
+{
+ fast_memmove(dst, src, size);
+ return dst;
+}
+
#else
+
static __inline__ void *mymemmove(void *d, const void *s, size_t count)
{
return(memmove(d, s, count));
@@ -475,7 +498,10 @@
{
memmove(dst, src, size);
}
-#endif /* !i386 */
+
+#endif /* !sun4 */
+
+#endif /* !i386 */
#endif /* !m68k */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov