int is_one_branket(id)
double id;
{
  int ret = 0;
  if (id > 0) {
    double tmp;
    tmp = ajust_double(id - (int)id);
    if (tmp == 0.0021 || tmp == 0.0094 || tmp == 0.0022 || tmp == 0.0095)
      ret = 1;
  }
  return ret;
}


x86 assembly (clang, -O0):
<is_one_branket>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movsd  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    11e7 <is_one_branket+0xd7>
movsd  -0x8(%rbp),%xmm0
cvttsd2si -0x8(%rbp),%eax
cvtsi2sd %eax,%xmm1
subsd  %xmm1,%xmm0
mov    $0x1,%al
call   1030 <ajust_double@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  0xe9b(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    117a <is_one_branket+0x6a>
jp     117a <is_one_branket+0x6a>
jmp    11db <is_one_branket+0xcb>
movsd  -0x18(%rbp),%xmm0
movsd  0xe81(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    119c <is_one_branket+0x8c>
jp     119c <is_one_branket+0x8c>
jmp    11db <is_one_branket+0xcb>
movsd  -0x18(%rbp),%xmm0
movsd  0xe67(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    11be <is_one_branket+0xae>
jp     11be <is_one_branket+0xae>
jmp    11db <is_one_branket+0xcb>
movsd  -0x18(%rbp),%xmm0
movsd  0xe4d(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    11e2 <is_one_branket+0xd2>
jp     11e2 <is_one_branket+0xd2>
movl   $0x1,-0xc(%rbp)
jmp    11e7 <is_one_branket+0xd7>
mov    -0xc(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_one_branket>:
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1132 <is_one_branket+0x22>
push   %rax
cvttpd2dq %xmm0,%xmm1
cvtdq2pd %xmm1,%xmm1
subsd  %xmm1,%xmm0
mov    $0x1,%al
call   1030 <ajust_double@plt>
add    $0x8,%rsp
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @is_one_branket(double %0) {
%2 = alloca double
%3 = alloca i32
%4 = alloca double
store double %0, double* %2
store i32 0, i32* %3
%5 = load double, double* %2
%6 = fcmp ogt double %5, 0.000000e+00
br i1 %6, label %7, label %28
7: ; preds = %1
%8 = load double, double* %2
%9 = load double, double* %2
%10 = fptosi double %9 to i32
%11 = sitofp i32 %10 to double
%12 = fsub double %8, %11
%13 = call i32 (double, ...) bitcast (i32 (...)* @ajust_double to i32 (double, ...)*)(double %12)
%14 = sitofp i32 %13 to double
store double %14, double* %4
%15 = load double, double* %4
%16 = fcmp oeq double %15, 2.100000e-03
br i1 %16, label %26, label %17
17: ; preds = %7
%18 = load double, double* %4
%19 = fcmp oeq double %18, 9.400000e-03
br i1 %19, label %26, label %20
20: ; preds = %17
%21 = load double, double* %4
%22 = fcmp oeq double %21, 2.200000e-03
br i1 %22, label %26, label %23
23: ; preds = %20
%24 = load double, double* %4
%25 = fcmp oeq double %24, 0x3F8374BC6A7EF9DB
br i1 %25, label %26, label %27
26: ; preds = %23, %20, %17, %7
store i32 1, i32* %3
br label %27
27: ; preds = %26, %23
br label %28
28: ; preds = %27, %1
%29 = load i32, i32* %3
ret i32 %29
}

LLVM IR (-O2):
define i32 @is_one_branket(double %0) {
%2 = fcmp ogt double %0, 0.000000e+00
br i1 %2, label %3, label %8
3: ; preds = %1
%4 = fptosi double %0 to i32
%5 = sitofp i32 %4 to double
%6 = fsub double %0, %5
%7 = tail call i32 (double, ...) bitcast (i32 (...)* @ajust_double to i32 (double, ...)*)(double %6)
br label %8
8: ; preds = %3, %1
ret i32 0
}