From: Claudio V. C. <ro...@us...> - 2007-05-16 08:23:45
|
Build Version : T2.1.0.15812 Firebird 2.1 Beta 1 (writeBuildNum.sh,v 1.15969 2007/05/16 08:23:43 robocop Exp ) Update of /cvsroot/firebird/firebird2/src/jrd In directory sc8-pr-cvs17:/tmp/cvs-serv14650/src/jrd Modified Files: pag.cpp Log Message: Replace custom loop with memset. Index: pag.cpp =================================================================== RCS file: /cvsroot/firebird/firebird2/src/jrd/pag.cpp,v retrieving revision 1.133 retrieving revision 1.134 diff -b -U3 -r1.133 -r1.134 --- pag.cpp 2 May 2007 06:57:11 -0000 1.133 +++ pag.cpp 16 May 2007 08:23:41 -0000 1.134 @@ -862,11 +862,8 @@ page_inv_page* new_pip_page = (page_inv_page*) new_page; new_pip_page->pip_header.pag_type = pag_pages; - // CVC: If some tips on web sites are true, this can be improved by - // a pointer to ULONG setting memory to 0xffffffff. const UCHAR* end = (UCHAR *) new_pip_page + dbb->dbb_page_size; - for (bytes = new_pip_page->pip_bits; bytes < end;) - *bytes++ = 0xff; + memset(new_pip_page->pip_bits, 0xff, end - new_pip_page->pip_bits); CCH_must_write(window); CCH_RELEASE(tdbb, window); |