Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix native builtins with double or half as the input. #468

Merged

Conversation

coldav
Copy link
Collaborator

@coldav coldav commented May 23, 2024

Overview

Removed half and double versions of the native functions.

Reason for change

If double was used as the input for the native builtins then we would get a link error. native builtins don't have an overload for double but we were providing one. This was also true of some half native builtins.

Description of change

Updated builtins.h to have the correct versions of the native functions.
Added UnitCL test for half and double.

@coldav coldav changed the title Fix native builtins with double as the input. Fix native builtins with double or half as the input. May 23, 2024
@coldav coldav force-pushed the colin/fix_native_double_builtins branch from 86fb0fd to 50daa52 Compare May 27, 2024 08:43
@coldav coldav requested review from hvdijk and uwedolinsky May 27, 2024 08:45
@coldav coldav force-pushed the colin/fix_native_double_builtins branch from 50daa52 to ed07663 Compare May 27, 2024 13:42
If double was used as the input for the native builtins then we would
get a link error. native builtins don't have an overload for double
but we were providing one. This was also true of some half native builtins.

Removing from the overloads fixes the issue as double or half are then
cast to float.
@coldav coldav force-pushed the colin/fix_native_double_builtins branch from ed07663 to eaa7b13 Compare May 27, 2024 13:49
@coldav coldav merged commit 87e9532 into codeplaysoftware:main May 27, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants