Skip to content

Align sycl::nan with std::nan #842

@TApplencourt

Description

@TApplencourt

Extension Type

Improvement

Feature Description

https://en.cppreference.com/w/cpp/numeric/math/nan take a char*

float       nanf( const char* arg );
	(1) 	(since C++11)
double      nan ( const char* arg );
	(2) 	(since C++11)
long double nanl( const char* arg );
	(3) 	(since C++11)

sycl (and opencl) nan take a unisgned

floatn nan(uintn nancode)
float nan(uint nancode)
doublen nan(ulongn nancode)
double nan(ulong nancode)

Should we provide new overload?

Related Functionality in C++

No response

Related Functionality in Other Languages

No response

Related SYCL Extensions

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions