2018-08-02 09:58:48 +00:00
|
|
|
Author: Bernhard M. Wiedemann <bwiedemann suse de>
|
|
|
|
Date: 2018-07-30
|
|
|
|
|
|
|
|
https://bugzilla.opensuse.org/show_bug.cgi?id=1041534
|
|
|
|
|
2017-05-29 03:57:06 +00:00
|
|
|
Do not have binaries depend on build system timings
|
|
|
|
because we are building in VMs anyway
|
|
|
|
and users might have different hardware
|
|
|
|
|
2018-08-02 09:58:48 +00:00
|
|
|
Will always use the system's memchr and memccpy functions.
|
|
|
|
|
2017-05-29 03:57:06 +00:00
|
|
|
Index: graphviz-2.38.0/lib/sfio/features/sfio
|
|
|
|
===================================================================
|
|
|
|
--- graphviz-2.38.0.orig/lib/sfio/features/sfio
|
|
|
|
+++ graphviz-2.38.0/lib/sfio/features/sfio
|
2018-08-02 09:58:48 +00:00
|
|
|
@@ -79,7 +79,7 @@ lib memchr note{ see if memchr is fast }
|
|
|
|
t2 = (etm2.tms_utime - stm2.tms_utime) +
|
|
|
|
(etm2.tms_stime - stm2.tms_stime);
|
|
|
|
|
|
|
|
- return t1 < t2 ? 0 : 1;
|
|
|
|
+ return 0;
|
|
|
|
}
|
|
|
|
}end
|
|
|
|
|
|
|
|
@@ -120,7 +120,7 @@ lib memccpy note{ see if memccpy is fast
|
|
|
|
t2 = (etm2.tms_utime - stm2.tms_utime) +
|
|
|
|
(etm2.tms_stime - stm2.tms_stime);
|
|
|
|
|
|
|
|
- return t1 < t2 ? 0 : 1;
|
|
|
|
+ return 0;
|
|
|
|
}
|
|
|
|
}end
|
|
|
|
|
|
|
|
@@ -250,9 +250,7 @@ tst output{
|
2017-05-29 03:57:06 +00:00
|
|
|
|
|
|
|
unlink(file);
|
|
|
|
|
|
|
|
- if(4*mmtm <= 3*rdtm) /* mmap is great! */
|
|
|
|
- printf("#define _mmap_worthy 2 \n");
|
|
|
|
- else if(4*mmtm <= 5*rdtm) /* mmap is good */
|
|
|
|
+ /* mmap is good */
|
|
|
|
printf("#define _mmap_worthy 1 \n");
|
|
|
|
|
|
|
|
return 0;
|