int eoo(int id) { if((1&(id+S))==0||id>=S) { return 0; } int n=S-1; int k=(id+n)/2; return f2f(n)==f2f(k)+f2f(n-k); }
int main() { printf("i2i: %d\n", i2i(1)); printf("I2I: %d\n", I2I(1)); printf("s2s: %d\n", s2s(1)); printf("S2S: %d\n", S2S(1)); printf("l2l: %d\n", l2l(1)); printf("L2L: %d\n", L2L(1)); printf("q2q: %lld\n", q2q(1)); printf("Q2Q: %lld\n", Q2Q(1)); printf("f2f: %f\n", f2f(1.1)); printf("d2d: %f\n", d2d(1.1)); return 0; }