#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 */
void *fxy__ptr(float x, float y) {
  return (
      void
          *)((((uintptr_t)(x *
                           ((uintptr_t)(~((uintptr_t)((
                               uintptr_t)(((uintptr_t)((0xFULL
                                                        << ((sizeof(uintptr_t) *
                                                             8ULL) -
                                                            4ULL)) |
                                                       ((0x1ULL
                                                         << ((sizeof(
                                                                  uintptr_t) *
                                                              8ULL) -
                                                             1ULL)) -
                                                        1ULL)))
                                          << ((sizeof(uintptr_t) * 8ULL) /
                                              2))))))))
              << ((sizeof(uintptr_t) * 8ULL) / 2)) +
             ((uintptr_t)(y *
                          ((uintptr_t)(~((uintptr_t)((
                              uintptr_t)(((uintptr_t)((0xFULL
                                                       << ((sizeof(uintptr_t) *
                                                            8ULL) -
                                                           4ULL)) |
                                                      ((0x1ULL
                                                        << ((sizeof(uintptr_t) *
                                                             8ULL) -
                                                            1ULL)) -
                                                       1ULL)))
                                         << ((sizeof(uintptr_t) * 8ULL) /
                                             2)))))))));
}


x86 assembly (clang, -O0):
<fxy__ptr>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  -0x4(%rbp),%xmm0
movss  0xee5(%rip),%xmm2
mulss  %xmm2,%xmm0
movaps %xmm0,%xmm1
cvttss2si %xmm1,%rcx
mov    %rcx,%rax
sar    $0x3f,%rax
mov    %eax,%edx
movss  0xecc(%rip),%xmm1
subss  %xmm1,%xmm0
cvttss2si %xmm0,%rax
and    %edx,%eax
or     %eax,%ecx
mov    %ecx,%eax
shl    $0x20,%rax
movss  -0x8(%rbp),%xmm0
mulss  %xmm2,%xmm0
movaps %xmm0,%xmm2
cvttss2si %xmm2,%rcx
mov    %rcx,%rsi
sar    $0x3f,%rsi
subss  %xmm1,%xmm0
cvttss2si %xmm0,%rdx
and    %rsi,%rdx
or     %rdx,%rcx
add    %rcx,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<fxy__ptr>:
movss  0xef8(%rip),%xmm2
mulss  %xmm2,%xmm0
cvttss2si %xmm0,%rcx
mov    %rcx,%rax
sar    $0x3f,%rax
movss  0xee4(%rip),%xmm3
subss  %xmm3,%xmm0
cvttss2si %xmm0,%rdx
and    %eax,%edx
or     %edx,%ecx
mulss  %xmm2,%xmm1
cvttss2si %xmm1,%rdx
shl    $0x20,%rcx
mov    %rdx,%rsi
subss  %xmm3,%xmm1
cvttss2si %xmm1,%rax
sar    $0x3f,%rsi
and    %rsi,%rax
or     %rdx,%rax
add    %rcx,%rax
ret

LLVM IR (-O0):
define i8* @fxy__ptr(float %0, float %1) {
%3 = alloca float
%4 = alloca float
store float %0, float* %3
store float %1, float* %4
%5 = load float, float* %3
%6 = fmul float %5, 0x41F0000000000000
%7 = fptoui float %6 to i64
%8 = shl i64 %7, 32
%9 = load float, float* %4
%10 = fmul float %9, 0x41F0000000000000
%11 = fptoui float %10 to i64
%12 = add i64 %8, %11
%13 = inttoptr i64 %12 to i8*
ret i8* %13
}

LLVM IR (-O2):
define i8* @fxy__ptr(float %0, float %1) {
%3 = fmul float %0, 0x41F0000000000000
%4 = fptoui float %3 to i64
%5 = shl i64 %4, 32
%6 = fmul float %1, 0x41F0000000000000
%7 = fptoui float %6 to i64
%8 = add i64 %5, %7
%9 = inttoptr i64 %8 to i8*
ret i8* %9
}