예제 #1
0
static void normalize_tn(struct tetra_tdma_time *tm)
{
	uint32_t fn_delta;

	if (tm->tn > 4) {
		fn_delta = tm->tn/4;
		tm->tn = (tm->tn%4);
		tm->fn += fn_delta;
	}
	normalize_fn(tm);
}
예제 #2
0
void tetra_tdma_time_add_fn(struct tetra_tdma_time *tm, uint32_t fn_count)
{
	tm->fn += fn_count;
	normalize_fn(tm);
}
예제 #3
0
파일: normalize.cpp 프로젝트: codyroux/lean
expr normalize(environment const & env, level_param_names const & ls, expr const & e) {
    auto tc          = mk_type_checker(env, true);
    bool save_cnstrs = false;
    return normalize_fn(*tc, save_cnstrs)(ls, e);
}
예제 #4
0
파일: normalize.cpp 프로젝트: codyroux/lean
expr normalize(type_checker & tc, expr const & e) {
    bool save_cnstrs = false;
    return normalize_fn(tc, save_cnstrs)(e);
}
예제 #5
0
파일: normalize.cpp 프로젝트: codyroux/lean
expr normalize(environment const & env, expr const & e) {
    auto tc          = mk_type_checker(env, true);
    bool save_cnstrs = false;
    return normalize_fn(*tc, save_cnstrs)(e);
}