Skip to content

tgamma(x) are not folded at the compilation time when (x) is constant #113806

Open
@fawdlstty

Description

@fawdlstty

Consider the following example.
https://godbolt.org/z/7aoPbzWEo

#include <cmath>

double f1() {
  return std::tgamma(3.0);
}

double f2() {
  return std::tgammaf(3.0f);
}

double f3() {
  return std::tgammal(3.0);
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions