Hengband
2.2.1
|
#include "h-basic.h"
マクロ定義 | |
#define | s64b_LSHIFT(V1, V2, N) {V1 = (V1<<(N)) | (V2>>(32-(N))); V2 <<= (N);} |
#define | s64b_RSHIFT(V1, V2, N) {V2 = (V1<<(32-(N))) | (V2>>(N)); V1 >>= (N);} |
関数 | |
bool | streq (concptr s, concptr t) |
bool | prefix (concptr s, concptr t) |
bool | suffix (concptr s, concptr t) |
void | plog (concptr str) |
void | quit (concptr str) |
void | core (concptr str) |
void | s64b_add (s32b *A1, u32b *A2, s32b B1, u32b B2) |
void | s64b_sub (s32b *A1, u32b *A2, s32b B1, u32b B2) |
int | s64b_cmp (s32b A1, u32b A2, s32b B1, u32b B2) |
void | s64b_mul (s32b *A1, u32b *A2, s32b B1, u32b B2) |
void | s64b_div (s32b *A1, u32b *A2, s32b B1, u32b B2) |
void | s64b_mod (s32b *A1, u32b *A2, s32b B1, u32b B2) |
int | count_bits (BIT_FLAGS x) |
符号なし32ビット整数のビット数を返す。 [詳解] | |
int | mysqrt (int n) |
平方根を切り捨て整数で返す [詳解] | |
変数 | |
concptr | argv0 |
void(* | plog_aux )(concptr) |
void(* | quit_aux )(concptr) |
void(* | core_aux )(concptr) |
#define s64b_LSHIFT | ( | V1, | |
V2, | |||
N | |||
) | {V1 = (V1<<(N)) | (V2>>(32-(N))); V2 <<= (N);} |
#define s64b_RSHIFT | ( | V1, | |
V2, | |||
N | |||
) | {V2 = (V1<<(32-(N))) | (V2>>(N)); V1 >>= (N);} |
void core | ( | concptr | str | ) |
int count_bits | ( | BIT_FLAGS | x | ) |
符号なし32ビット整数のビット数を返す。
x | ビット数を調べたい変数 |
int mysqrt | ( | int | n | ) |
平方根を切り捨て整数で返す
n | 数値 |
void plog | ( | concptr | str | ) |
void quit | ( | concptr | str | ) |
concptr argv0 |
void(* core_aux) (concptr) |
void(* plog_aux) (concptr) |
void(* quit_aux) (concptr) |