Home
last modified time | relevance | path

Searched refs:modf (Results 1 – 25 of 85) sorted by relevance

1234

/llvm-project/libcxx/include/__math/
H A Dmodulo.h48 inline _LIBCPP_HIDE_FROM_ABI float modf(float __x, float* __y) _NOEXCEPT { return __builtin_modff(_… in modf() function
51 _LIBCPP_HIDE_FROM_ABI double modf(double __x, double* __y) _NOEXCEPT { in modf() function
55 inline _LIBCPP_HIDE_FROM_ABI long double modf(long double __x, long double* __y) _NOEXCEPT { in modf() function
/llvm-project/libc/src/math/generic/
H A Dmodf.cpp1 //===-- Implementation of modf function -----------------------------------===//
9 #include "src/math/modf.h"
16 LLVM_LIBC_FUNCTION(double, modf, (double x, double *iptr)) {
17 return fputil::modf(x, *iptr);
H A Dmodfl.cpp17 return fputil::modf(x, *iptr);
H A Dmodff.cpp1 //===-- Implementation of modf function -----------------------------------===//
17 return fputil::modf(x, *iptr);
H A Dmodff128.cpp17 return fputil::modf(x, *iptr);
H A Dmodff16.cpp17 return fputil::modf(x, *iptr);
/llvm-project/libclc/generic/include/clc/math/
H A Dmodf.inc23 _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE modf(__CLC_GENTYPE x, global __CLC_GENTYPE *iptr);
24 _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE modf(__CLC_GENTYPE x, local __CLC_GENTYPE *iptr);
25 _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE modf(__CLC_GENTYPE x, private __CLC_GENTYPE *iptr);
H A Dmodf.h23 #define __CLC_BODY <clc/math/modf.inc>
/llvm-project/clang/test/Headers/
H A Dnvptx_device_math_modf.cpp28 dx = std::modf(x, &ipart); in test_modf()
44 res = modf(1.1, &intpart); in main()
H A Dnvptx_device_cmath_functions_cxx17.cpp20 double l3 = modf(a1 + 3.5, &a1); in test_sqrt()
H A Dnvptx_device_math_functions_cxx17.cpp20 double l3 = modf(a1 + 3.5, &a1); in test_sqrt()
H A Dnvptx_device_math_functions.cpp20 double l3 = modf(a1 + 3.5, &a1); in test_sqrt()
H A Dnvptx_device_cmath_functions.cpp20 double l3 = modf(a1 + 3.5, &a1); in test_sqrt()
H A Dnvptx_device_cmath_functions.c20 double l3 = modf(a1 + 3.5, &a1); in test_sqrt()
H A Dnvptx_device_math_functions.c30 double l3 = modf(a1 + 3.5, &a1); in test_sqrt()
/llvm-project/libclc/generic/lib/math/
H A Dmodf.inc31 _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE modf(__CLC_GENTYPE x, __CLC_GENTYPE *iptr) {
37 _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE modf(__CLC_GENTYPE x, addrspace __CLC_GENTYPE *iptr) { \
39 __CLC_GENTYPE ret = modf(x, &private_iptr); \
/llvm-project/clang/lib/Headers/
H A D__clang_cuda_math_forward_declares.h139 __DEVICE__ double modf(double, double *);
140 __DEVICE__ float modf(float, float *);
252 using ::modf;
/llvm-project/libc/fuzzing/math/
H A Dmath_differential_fuzz.cpp142 &LIBC_NAMESPACE::modf, &::modf, data, size); in LLVMFuzzerTestOneInput()
/llvm-project/libcxx/test/libcxx/numerics/c.math/
H A Dconstexpr-cxx23-clang.pass.cpp83 ASSERT_NOT_CONSTEXPR_CXX23(std::modf(1.0f, &DummyFloat) == 0.0f); in main()
84 ASSERT_NOT_CONSTEXPR_CXX23(std::modf(1.0, &DummyDouble) == 0.0); in main()
85 ASSERT_NOT_CONSTEXPR_CXX23(std::modf(1.0L, &DummyLongDouble) == 0.0L); in main()
H A Dconstexpr-cxx23-gcc.pass.cpp80 ASSERT_NOT_CONSTEXPR_CXX23(std::modf(1.0f, &DummyFloat) == 0.0f); in main()
81 ASSERT_NOT_CONSTEXPR_CXX23(std::modf(1.0, &DummyDouble) == 0.0); in main()
82 ASSERT_NOT_CONSTEXPR_CXX23(std::modf(1.0L, &DummyLongDouble) == 0.0L); in main()
/llvm-project/libc/test/src/math/
H A Dmodf_test.cpp13 LIST_MODF_TESTS(double, LIBC_NAMESPACE::modf)
/llvm-project/libc/test/src/math/smoke/
H A Dmodf_test.cpp13 LIST_MODF_TESTS(double, LIBC_NAMESPACE::modf)
/llvm-project/libc/src/math/
H A Dmodf.h1 //===-- Implementation header for modf --------------------------*- C++ -*-===//
16 double modf(double x, double *iptr);
/llvm-project/clang/test/Headers/Inputs/include/
H A Dcmath117 double modf(double, double *);
118 float modf(float, float *);
209 using ::modf;
/llvm-project/libcxx/test/std/depr/depr.c.headers/
H A Dmath_h.pass.cpp54 Ambiguous modf(Ambiguous, Ambiguous*){ return Ambiguous(); } in modf() function
245 ASSERT_SAME_TYPE(decltype(modf((float)0, (float*)0)), float); in test_modf()
246 ASSERT_SAME_TYPE(decltype(modf((double)0, (double*)0)), double); in test_modf()
247 ASSERT_SAME_TYPE(decltype(modf((long double)0, (long double*)0)), long double); in test_modf()
250 ASSERT_SAME_TYPE(decltype(modf(Ambiguous(), (Ambiguous*)0)), Ambiguous); in test_modf()
252 assert(modf(1., &i) == 0); in test_modf()

1234