Better optimisation for hppa 7100LC cpu
This commit is contained in:
parent
4255e9d3b1
commit
b605aba2d0
@ -34,6 +34,8 @@ v0.61.4 11-Aug-2004
|
||||
cleaned magic aliases.
|
||||
Fixed a problem with the files database were the temp file used
|
||||
for sorting and inserting files didn't close the temp file.
|
||||
Changed method of inserting new files that now hopefully old
|
||||
magic names are really cleared.
|
||||
|
||||
mbcico:
|
||||
Removed a little debug logging.
|
||||
|
2
TODO
2
TODO
@ -117,6 +117,8 @@ mbfido:
|
||||
N: Implement areamgr/filemgr %avail command to list available areas
|
||||
from areas files.
|
||||
|
||||
M: Add switch to tic areas that new links connect SR to the area.
|
||||
|
||||
mbcico:
|
||||
L: Implement binkp option ND.
|
||||
|
||||
|
3
cpuflags
3
cpuflags
@ -76,6 +76,9 @@ case $OS in
|
||||
1.1*) FLAGS='-march=1.1' ;;
|
||||
2.0*) FLAGS='-march=2.0' ;;
|
||||
esac
|
||||
case "`egrep 'cpu ' /proc/cpuinfo | cut -d ' ' -f 2`" in
|
||||
PA7100LC) FLAGS=${FLAGS}' -mschedule=7100LC' ;;
|
||||
esac
|
||||
;;
|
||||
|
||||
i386)
|
||||
|
10
lib/dbfdb.c
10
lib/dbfdb.c
@ -260,7 +260,7 @@ int mbsedb_InsertFDB(struct _fdbarea *fdb_area, struct FILE_record frec, int Add
|
||||
|
||||
Syslog('f', "mbsedb_InsertFDB: insertpoint=%d, found=%s, done=%s", Insert, Found?"true":"false", Done?"true":"false");
|
||||
|
||||
if (Found) {
|
||||
// if (Found) {
|
||||
if ((fp = fopen(temp, "a+")) == NULL) {
|
||||
WriteError("$Can't create %s", temp);
|
||||
mbsedb_UnlockFDB(fdb_area);
|
||||
@ -333,13 +333,13 @@ int mbsedb_InsertFDB(struct _fdbarea *fdb_area, struct FILE_record frec, int Add
|
||||
mbsedb_Temp2Data(fdb_area->area);
|
||||
fdb_area->fp = fp;
|
||||
fdb_area->locked = 0;
|
||||
} else {
|
||||
// } else {
|
||||
/*
|
||||
* Append new entry
|
||||
*/
|
||||
fseek(fdb_area->fp, 0, SEEK_END);
|
||||
fwrite(&frec, fdbhdr.recsize, 1, fdb_area->fp);
|
||||
}
|
||||
// fseek(fdb_area->fp, 0, SEEK_END);
|
||||
// fwrite(&frec, fdbhdr.recsize, 1, fdb_area->fp);
|
||||
// }
|
||||
|
||||
free(temp);
|
||||
|
||||
|
Reference in New Issue
Block a user