diff options
| author | Tom Stellard <thomas.stellard@amd.com> | 2015-05-06 20:53:29 +0000 |
|---|---|---|
| committer | Tom Stellard <thomas.stellard@amd.com> | 2015-05-06 20:53:29 +0000 |
| commit | f30d5fc01deaa3f1b2e5447a3aa0daeaac5be93e (patch) | |
| tree | 7a253310d6709a78a7a891e60cd73da1e89f6d40 /libclc/r600/lib/math/ldexp.inc | |
| parent | c2de346e4861efbd734525f79291804748582090 (diff) | |
| download | bcm5719-llvm-f30d5fc01deaa3f1b2e5447a3aa0daeaac5be93e.tar.gz bcm5719-llvm-f30d5fc01deaa3f1b2e5447a3aa0daeaac5be93e.zip | |
Implement ldexp for R600/SI
llvm-svn: 236638
Diffstat (limited to 'libclc/r600/lib/math/ldexp.inc')
| -rw-r--r-- | libclc/r600/lib/math/ldexp.inc | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/libclc/r600/lib/math/ldexp.inc b/libclc/r600/lib/math/ldexp.inc new file mode 100644 index 00000000000..6e28fbb94ca --- /dev/null +++ b/libclc/r600/lib/math/ldexp.inc @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2014 Advanced Micro Devices, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ + +#ifndef __CLC_SCALAR + +_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE ldexp(__CLC_GENTYPE x, int n) { + return ldexp(x, (__CLC_INTN)n); +} + +#endif |

