1
/*****************************************************************************
3
Copyright (C) 1995, 2009, Innobase Oy. All Rights Reserved.
5
This program is free software; you can redistribute it and/or modify it under
6
the terms of the GNU General Public License as published by the Free Software
7
Foundation; version 2 of the License.
9
This program is distributed in the hope that it will be useful, but WITHOUT
10
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
You should have received a copy of the GNU General Public License along with
14
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15
St, Fifth Floor, Boston, MA 02110-1301 USA
17
*****************************************************************************/
19
/**************************************************//**
20
@file include/fsp0fsp.ic
23
Created 12/18/1995 Heikki Tuuri
24
*******************************************************/
26
/***********************************************************************//**
27
Checks if a page address is an extent descriptor page address.
28
@return TRUE if a descriptor page */
33
ulint zip_size,/*!< in: compressed page size in bytes;
34
0 for uncompressed pages */
35
ulint page_no)/*!< in: page number */
37
ut_ad(ut_is_2pow(zip_size));
40
return(UNIV_UNLIKELY((page_no & (UNIV_PAGE_SIZE - 1))
44
return(UNIV_UNLIKELY((page_no & (zip_size - 1)) == FSP_XDES_OFFSET));