llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[libc][math] Refactor fdiv Math Functions to Header Only

Open hulxv opened this issue 9 months ago • 10 comments

This is tracking issue to refactor fdiv math functions currently implemented in LLVM libc to be header-only.

part of: #147386

Target Functions:

  • fdiv
  • fdivf128
  • fdivl

CC: @bassiounix

hulxv avatar Feb 19 '26 00:02 hulxv

@llvm/issue-subscribers-libc

Author: Mohamed Emad (hulxv)

This is tracking issue to refactor fdiv math functions currently implemented in LLVM libc to be header-only.

part of: #147386

Target Functions:

  • fdiv
  • fdivf128
  • fdivl

CC: @bassiounix

llvmbot avatar Feb 19 '26 00:02 llvmbot

can i work on this.

udaykiriti avatar Apr 17 '26 17:04 udaykiriti

can i work on this.

already taken

bassiounix avatar Apr 17 '26 17:04 bassiounix

any libc refactors @bassiounix that i can work on?

udaykiriti avatar Apr 17 '26 17:04 udaykiriti

any libc refactors @bassiounix that i can work on?

Sure. I'm currently working on revisiting the refactored functions and force them to be constant evaluated. Would that be something that interest you?

bassiounix avatar Apr 17 '26 17:04 bassiounix

That means testing the refactored ones or testing with some examples?

udaykiriti avatar Apr 17 '26 17:04 udaykiriti

That means testing the refactored ones or testing with some examples?

These are some examples of the work I'm doing as a follow up for this refactor:

  • https://github.com/llvm/llvm-project/pull/184745
  • https://github.com/llvm/llvm-project/pull/184948

bassiounix avatar Apr 17 '26 17:04 bassiounix

Ok, I need to work on constexpr for libc math functions.

udaykiriti avatar Apr 17 '26 17:04 udaykiriti

If there are any tasks related to this, I’m willing to work on them. @bassiounix

udaykiriti avatar Apr 17 '26 19:04 udaykiriti

If there are any tasks related to this, I’m willing to work on them. @bassiounix

Just pick a function that is not qualified with constexpr in src/__support/math and work on it. If you have discord please coordinate with me there or through email. My username on Discord is the same as github.

bassiounix avatar Apr 17 '26 19:04 bassiounix