/usr/include/osl/centering3x3.h is in libosl-dev 0.6.0-3.3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | /* centering3x3.h
*/
#ifndef OSL_CENTERING3X3_H
#define OSL_CENTERING3X3_H
#include "osl/square.h"
#include "osl/misc/carray.h"
namespace osl
{
/**
* 3x3が盤上におさまるように中心を調整
*/
struct Centering3x3
{
struct Table
{
CArray<Square,Square::SIZE> centers;
Table();
};
static const Square adjustCenterNaive(Square);
static const Table table;
static const Square adjustCenter(Square src)
{
return table.centers[src.index()];
}
};
} // namespace osl
#endif /* OSL_CENTERING3X3_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; coding:utf-8
// ;;; End:
|