brintos

brintos / llvm-project-archived public Read only

0
0
Text · 752 B · d8a5129 Raw
20 lines · plain
1//===----------------------------------------------------------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE __clc_min(__CLC_GENTYPE a,10                                               __CLC_GENTYPE b) {11  return (b < a ? b : a);12}13 14#ifndef __CLC_SCALAR15_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE __clc_min(__CLC_GENTYPE a,16                                               __CLC_SCALAR_GENTYPE b) {17  return (b < (__CLC_GENTYPE)a ? (__CLC_GENTYPE)b : a);18}19#endif20