Path: blob/master/yabause/src/dreamcast/sh2rec/sh2rec_htab.h
2 views
/* Copyright 2010 Lawrence Sebald12This file is part of Yabause.34Yabause is free software; you can redistribute it and/or modify5it under the terms of the GNU General Public License as published by6the Free Software Foundation; either version 2 of the License, or7(at your option) any later version.89Yabause is distributed in the hope that it will be useful,10but WITHOUT ANY WARRANTY; without even the implied warranty of11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the12GNU General Public License for more details.1314You should have received a copy of the GNU General Public License15along with Yabause; if not, write to the Free Software16Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA17*/1819#ifndef SH2REC_HTAB_H20#define SH2REC_HTAB_H2122/* This MUST be set to a power of two. It is done this way to avoid using a mod23operation to get the entry where the object will go, since division (and thus24modulus) is quite expensive on SuperH. */25#define SH2REC_HTAB_ENTRIES 40962627void sh2rec_htab_init(void);28void sh2rec_htab_reset(void);2930sh2rec_block_t *sh2rec_htab_lookup(u32 addr);31sh2rec_block_t *sh2rec_htab_block_create(u32 addr, int length);32void sh2rec_htab_block_remove(u32 addr);3334#endif /* !SH2REC_HTAB_H */353637