2009-08-21 22:21:05 +02:00
|
|
|
/*
|
|
|
|
* This file is part of OpenTTD.
|
|
|
|
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
|
|
|
|
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2008-05-06 17:11:33 +02:00
|
|
|
/** @file bitmath_func.cpp Functions related to bit mathematics. */
|
2007-11-26 18:50:22 +01:00
|
|
|
|
|
|
|
#include "../stdafx.h"
|
|
|
|
#include "bitmath_func.hpp"
|
|
|
|
|
2014-04-23 22:13:33 +02:00
|
|
|
#include "../safeguards.h"
|
|
|
|
|
2023-05-08 19:01:06 +02:00
|
|
|
const uint8_t _ffb_64[64] = {
|
2009-01-31 21:16:06 +01:00
|
|
|
0, 0, 1, 0, 2, 0, 1, 0,
|
|
|
|
3, 0, 1, 0, 2, 0, 1, 0,
|
|
|
|
4, 0, 1, 0, 2, 0, 1, 0,
|
|
|
|
3, 0, 1, 0, 2, 0, 1, 0,
|
|
|
|
5, 0, 1, 0, 2, 0, 1, 0,
|
|
|
|
3, 0, 1, 0, 2, 0, 1, 0,
|
|
|
|
4, 0, 1, 0, 2, 0, 1, 0,
|
|
|
|
3, 0, 1, 0, 2, 0, 1, 0,
|
2007-11-26 18:50:22 +01:00
|
|
|
};
|