~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/innobase/include/fsp0fsp.ic

  • Committer: Monty Taylor
  • Date: 2009-09-30 07:01:32 UTC
  • mto: This revision was merged to the branch mainline in revision 1184.
  • Revision ID: mordred@inaugust.com-20090930070132-b1ol1xu1rpajdddy
Small namespace cleanup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/******************************************************
2
 
File space management
3
 
 
4
 
(c) 1995 Innobase Oy
5
 
 
6
 
Created 12/18/1995 Heikki Tuuri
7
 
*******************************************************/
8
 
 
9
 
/***************************************************************************
10
 
Checks if a page address is an extent descriptor page address. */
11
 
UNIV_INLINE
12
 
ibool
13
 
fsp_descr_page(
14
 
/*===========*/
15
 
                        /* out: TRUE if a descriptor page */
16
 
        ulint   zip_size,/* in: compressed page size in bytes;
17
 
                        0 for uncompressed pages */
18
 
        ulint   page_no)/* in: page number */
19
 
{
20
 
        ut_ad(ut_is_2pow(zip_size));
21
 
 
22
 
        if (!zip_size) {
23
 
                return(UNIV_UNLIKELY((page_no & (UNIV_PAGE_SIZE - 1))
24
 
                                     == FSP_XDES_OFFSET));
25
 
        }
26
 
 
27
 
        return(UNIV_UNLIKELY((page_no & (zip_size - 1)) == FSP_XDES_OFFSET));
28
 
}