#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
float __builtin_inff();
float ldexp2kf(float, int);
float mlaf(float, float, double);
scalar_t__ rintfk(float);
__attribute__((visibility("default"))) const float xexp10f_u35(float d) {
  int q =
      (int)rintfk(d * (float)3.3219280948873623478703194294893901758648313930);
  float s, u;
  s = mlaf(q, -0.3010253906f, d);
  s = mlaf(q, -4.605038981e-06f, s);
  u = +0.2064004987e+0;
  u = mlaf(u, s, +0.5417877436e+0);
  u = mlaf(u, s, +0.1171286821e+1);
  u = mlaf(u, s, +0.2034656048e+1);
  u = mlaf(u, s, +0.2650948763e+1);
  u = mlaf(u, s, +0.2302585125e+1);
  u = mlaf(u, s, +0.1000000000e+1);
  u = ldexp2kf(u, q);
  if (d > 38.5318394191036238941387f)
    u = __builtin_inff();
  if (d < -50)
    u = 0;
  return u;
}


x86 assembly (clang, -O0):
<xexp10f_u35>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  0xecb(%rip),%xmm0
mulss  -0x4(%rbp),%xmm0
call   1050 <rintfk@plt>
mov    %eax,-0x8(%rbp)
cvtsi2ssl -0x8(%rbp),%xmm0
movss  -0x4(%rbp),%xmm1
cvtss2sd %xmm1,%xmm2
movss  0xea4(%rip),%xmm1
call   1040 <mlaf@plt>
movss  %xmm0,-0xc(%rbp)
cvtsi2ssl -0x8(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
cvtss2sd %xmm1,%xmm2
movss  0xe80(%rip),%xmm1
call   1040 <mlaf@plt>
movss  %xmm0,-0xc(%rbp)
movss  0xe6a(%rip),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x10(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
movsd  0xe97(%rip),%xmm2
call   1040 <mlaf@plt>
movss  %xmm0,-0x10(%rbp)
movss  -0x10(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
movsd  0xe73(%rip),%xmm2
call   1040 <mlaf@plt>
movss  %xmm0,-0x10(%rbp)
movss  -0x10(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
movsd  0xe4f(%rip),%xmm2
call   1040 <mlaf@plt>
movss  %xmm0,-0x10(%rbp)
movss  -0x10(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
movsd  0xe2b(%rip),%xmm2
call   1040 <mlaf@plt>
movss  %xmm0,-0x10(%rbp)
movss  -0x10(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
movsd  0xe07(%rip),%xmm2
call   1040 <mlaf@plt>
movss  %xmm0,-0x10(%rbp)
movss  -0x10(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
movsd  0xde3(%rip),%xmm2
call   1040 <mlaf@plt>
movss  %xmm0,-0x10(%rbp)
movss  -0x10(%rbp),%xmm0
mov    -0x8(%rbp),%edi
call   1030 <ldexp2kf@plt>
movss  %xmm0,-0x10(%rbp)
movss  -0x4(%rbp),%xmm0
movss  0xd9a(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    127c <xexp10f_u35+0x14c>
movss  0xd9d(%rip),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  0xd94(%rip),%xmm0
ucomiss -0x4(%rbp),%xmm0
jbe    1296 <xexp10f_u35+0x166>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x10(%rbp),%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xexp10f_u35>:
push   %rbx
sub    $0x20,%rsp
movaps %xmm0,%xmm1
movaps %xmm0,0x10(%rsp)
movss  0xebb(%rip),%xmm0
mulss  %xmm1,%xmm0
call   1050 <rintfk@plt>
mov    %rax,%rbx
cvtsi2ss %ebx,%xmm3
movss  %xmm3,0xc(%rsp)
movaps 0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm2
movss  0xe98(%rip),%xmm1
movaps %xmm3,%xmm0
call   1040 <mlaf@plt>
xorps  %xmm2,%xmm2
cvtss2sd %xmm0,%xmm2
movss  0xe85(%rip),%xmm1
movss  0xc(%rsp),%xmm0
call   1040 <mlaf@plt>
movaps %xmm0,%xmm1
movss  %xmm0,0xc(%rsp)
movss  0xe6d(%rip),%xmm0
movsd  0xe79(%rip),%xmm2
call   1040 <mlaf@plt>
movsd  0xe74(%rip),%xmm2
movss  0xc(%rsp),%xmm1
call   1040 <mlaf@plt>
movsd  0xe69(%rip),%xmm2
movss  0xc(%rsp),%xmm1
call   1040 <mlaf@plt>
movsd  0xe5e(%rip),%xmm2
movss  0xc(%rsp),%xmm1
call   1040 <mlaf@plt>
movsd  0xe53(%rip),%xmm2
movss  0xc(%rsp),%xmm1
call   1040 <mlaf@plt>
movsd  0xe48(%rip),%xmm2
movss  0xc(%rsp),%xmm1
call   1040 <mlaf@plt>
mov    %ebx,%edi
call   1030 <ldexp2kf@plt>
movss  0xdf6(%rip),%xmm1
movaps 0x10(%rsp),%xmm3
cmpltss %xmm3,%xmm1
movss  0xde8(%rip),%xmm2
andps  %xmm1,%xmm2
andnps %xmm0,%xmm1
orps   %xmm1,%xmm2
movaps %xmm3,%xmm0
cmpltss 0xdd7(%rip),%xmm0
andnps %xmm2,%xmm0
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define float @xexp10f_u35(float %0) {
%2 = alloca float
%3 = alloca i32
%4 = alloca float
%5 = alloca float
store float %0, float* %2
%6 = load float, float* %2
%7 = fmul float %6, 0x400A934F00000000
%8 = call i64 @rintfk(float %7)
%9 = trunc i64 %8 to i32
store i32 %9, i32* %3
%10 = load i32, i32* %3
%11 = sitofp i32 %10 to float
%12 = load float, float* %2
%13 = fpext float %12 to double
%14 = call float @mlaf(float %11, float 0xBFD3440000000000, double %13)
store float %14, float* %4
%15 = load i32, i32* %3
%16 = sitofp i32 %15 to float
%17 = load float, float* %4
%18 = fpext float %17 to double
%19 = call float @mlaf(float %16, float 0xBED3509F80000000, double %18)
store float %19, float* %4
store float 0x3FCA6B54E0000000, float* %5
%20 = load float, float* %5
%21 = load float, float* %4
%22 = call float @mlaf(float %20, float %21, double 0x3FE156534004571C)
store float %22, float* %5
%23 = load float, float* %5
%24 = load float, float* %4
%25 = call float @mlaf(float %23, float %24, double 0x3FF2BD973FE6E495)
store float %25, float* %5
%26 = load float, float* %5
%27 = load float, float* %4
%28 = call float @mlaf(float %26, float %27, double 0x400046F9C006261B)
store float %28, float* %5
%29 = load float, float* %5
%30 = load float, float* %4
%31 = call float @mlaf(float %29, float %30, double 0x40053524A003A73B)
store float %31, float* %5
%32 = load float, float* %5
%33 = load float, float* %4
%34 = call float @mlaf(float %32, float %33, double 0x40026BB1C0010C6F)
store float %34, float* %5
%35 = load float, float* %5
%36 = load float, float* %4
%37 = call float @mlaf(float %35, float %36, double 1.000000e+00)
store float %37, float* %5
%38 = load float, float* %5
%39 = load i32, i32* %3
%40 = call float @ldexp2kf(float %38, i32 %39)
store float %40, float* %5
%41 = load float, float* %2
%42 = fcmp ogt float %41, 0x4043441360000000
br i1 %42, label %43, label %44
43: ; preds = %1
store float 0x7FF0000000000000, float* %5
br label %44
44: ; preds = %43, %1
%45 = load float, float* %2
%46 = fcmp olt float %45, -5.000000e+01
br i1 %46, label %47, label %48
47: ; preds = %44
store float 0.000000e+00, float* %5
br label %48
48: ; preds = %47, %44
%49 = load float, float* %5
ret float %49
}

LLVM IR (-O2):
define float @xexp10f_u35(float %0) {
%2 = fmul float %0, 0x400A934F00000000
%3 = tail call i64 @rintfk(float %2)
%4 = trunc i64 %3 to i32
%5 = sitofp i32 %4 to float
%6 = fpext float %0 to double
%7 = tail call float @mlaf(float %5, float 0xBFD3440000000000, double %6)
%8 = fpext float %7 to double
%9 = tail call float @mlaf(float %5, float 0xBED3509F80000000, double %8)
%10 = tail call float @mlaf(float 0x3FCA6B54E0000000, float %9, double 0x3FE156534004571C)
%11 = tail call float @mlaf(float %10, float %9, double 0x3FF2BD973FE6E495)
%12 = tail call float @mlaf(float %11, float %9, double 0x400046F9C006261B)
%13 = tail call float @mlaf(float %12, float %9, double 0x40053524A003A73B)
%14 = tail call float @mlaf(float %13, float %9, double 0x40026BB1C0010C6F)
%15 = tail call float @mlaf(float %14, float %9, double 1.000000e+00)
%16 = tail call float @ldexp2kf(float %15, i32 %4)
%17 = fcmp ogt float %0, 0x4043441360000000
%18 = select i1 %17, float 0x7FF0000000000000, float %16
%19 = fcmp olt float %0, -5.000000e+01
%20 = select i1 %19, float 0.000000e+00, float %18
ret float %20
}