gochatai/pachi_py/pachi/stone.h
/* Curiously, gcc is reluctant to inline this; I have cofirmed
 * there is performance benefit. */
Curiously, gcc is reluctant to inline this; I have cofirmed
there is performance benefit.
Curiously gcc is reluctant to inline this ; I have cofirmed there is performance benefit .
static inline enum stone __attribute__((always_inline))
stone_other(enum stone s)
{
	static const enum stone o[S_MAX] = { S_NONE, S_WHITE, S_BLACK, S_OFFBOARD };
	return o[s];
}
static inline enum stone __attribute__ ( ( always_inline ) ) stone_other ( enum stone s ) { static const enum stone o [ S_MAX ] = { S_NONE , S_WHITE , S_BLACK , S_OFFBOARD } ; return o [ s ] ; }
Curiously, gcc is reluctant to inline this; I have cofirmed
 there is performance benefit.
Curiously gcc is reluctant to inline this ; I have cofirmed there is performance benefit .