/external/OpenCL-CTS/dependencies/ocl-headers/CL/ |
D | cl_half.h | 61 static inline cl_half cl_half_handle_overflow(cl_half_rounding_mode rounding_mode, in cl_half_handle_overflow() argument 64 if (rounding_mode == CL_HALF_RTZ) in cl_half_handle_overflow() 69 else if (rounding_mode == CL_HALF_RTP && sign) in cl_half_handle_overflow() 74 else if (rounding_mode == CL_HALF_RTN && !sign) in cl_half_handle_overflow() 87 static inline cl_half cl_half_handle_underflow(cl_half_rounding_mode rounding_mode, in cl_half_handle_underflow() argument 90 if (rounding_mode == CL_HALF_RTP && !sign) in cl_half_handle_underflow() 95 else if (rounding_mode == CL_HALF_RTN && sign) in cl_half_handle_underflow() 109 static inline cl_half cl_half_from_float(cl_float f, cl_half_rounding_mode rounding_mode) in cl_half_from_float() argument 161 return cl_half_handle_overflow(rounding_mode, sign); in cl_half_from_float() 167 return cl_half_handle_underflow(rounding_mode, sign); in cl_half_from_float() [all …]
|
/external/angle/include/CL/ |
D | cl_half.h | 61 static inline cl_half cl_half_handle_overflow(cl_half_rounding_mode rounding_mode, in cl_half_handle_overflow() argument 64 if (rounding_mode == CL_HALF_RTZ) in cl_half_handle_overflow() 69 else if (rounding_mode == CL_HALF_RTP && sign) in cl_half_handle_overflow() 74 else if (rounding_mode == CL_HALF_RTN && !sign) in cl_half_handle_overflow() 87 static inline cl_half cl_half_handle_underflow(cl_half_rounding_mode rounding_mode, in cl_half_handle_underflow() argument 90 if (rounding_mode == CL_HALF_RTP && !sign) in cl_half_handle_underflow() 95 else if (rounding_mode == CL_HALF_RTN && sign) in cl_half_handle_underflow() 109 static inline cl_half cl_half_from_float(cl_float f, cl_half_rounding_mode rounding_mode) in cl_half_from_float() argument 161 return cl_half_handle_overflow(rounding_mode, sign); in cl_half_from_float() 167 return cl_half_handle_underflow(rounding_mode, sign); in cl_half_from_float() [all …]
|
/external/llvm/lib/Support/ |
D | APFloat.cpp | 1221 APFloat::handleOverflow(roundingMode rounding_mode) in handleOverflow() argument 1224 if (rounding_mode == rmNearestTiesToEven || in handleOverflow() 1225 rounding_mode == rmNearestTiesToAway || in handleOverflow() 1226 (rounding_mode == rmTowardPositive && !sign) || in handleOverflow() 1227 (rounding_mode == rmTowardNegative && sign)) { in handleOverflow() 1247 APFloat::roundAwayFromZero(roundingMode rounding_mode, in roundAwayFromZero() argument 1257 switch (rounding_mode) { in roundAwayFromZero() 1284 APFloat::normalize(roundingMode rounding_mode, in normalize() argument 1305 return handleOverflow(rounding_mode); in normalize() 1351 if (roundAwayFromZero(rounding_mode, lost_fraction, 0)) { in normalize() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | APFloat.cpp | 1271 IEEEFloat::opStatus IEEEFloat::handleOverflow(roundingMode rounding_mode) { in handleOverflow() argument 1273 if (rounding_mode == rmNearestTiesToEven || in handleOverflow() 1274 rounding_mode == rmNearestTiesToAway || in handleOverflow() 1275 (rounding_mode == rmTowardPositive && !sign) || in handleOverflow() 1276 (rounding_mode == rmTowardNegative && sign)) { in handleOverflow() 1295 bool IEEEFloat::roundAwayFromZero(roundingMode rounding_mode, in roundAwayFromZero() argument 1304 switch (rounding_mode) { in roundAwayFromZero() 1330 IEEEFloat::opStatus IEEEFloat::normalize(roundingMode rounding_mode, in normalize() argument 1350 return handleOverflow(rounding_mode); in normalize() 1396 if (roundAwayFromZero(rounding_mode, lost_fraction, 0)) { in normalize() [all …]
|
/external/llvm-project/llvm/lib/Support/ |
D | APFloat.cpp | 1286 IEEEFloat::opStatus IEEEFloat::handleOverflow(roundingMode rounding_mode) { in handleOverflow() argument 1288 if (rounding_mode == rmNearestTiesToEven || in handleOverflow() 1289 rounding_mode == rmNearestTiesToAway || in handleOverflow() 1290 (rounding_mode == rmTowardPositive && !sign) || in handleOverflow() 1291 (rounding_mode == rmTowardNegative && sign)) { in handleOverflow() 1310 bool IEEEFloat::roundAwayFromZero(roundingMode rounding_mode, in roundAwayFromZero() argument 1319 switch (rounding_mode) { in roundAwayFromZero() 1348 IEEEFloat::opStatus IEEEFloat::normalize(roundingMode rounding_mode, in normalize() argument 1368 return handleOverflow(rounding_mode); in normalize() 1414 if (roundAwayFromZero(rounding_mode, lost_fraction, 0)) { in normalize() [all …]
|
/external/mesa3d/src/intel/compiler/ |
D | brw_nir_lower_conversions.c | 32 nir_rounding_mode rounding_mode) in get_conversion_op() argument 37 return nir_type_conversion_op(src_full_type, dst_full_type, rounding_mode); in get_conversion_op()
|
/external/mesa3d/src/compiler/spirv/ |
D | vtn_alu.c | 415 nir_rounding_mode rounding_mode; member 427 opts->rounding_mode = vtn_rounding_mode_to_nir(b, dec->operands[0]); in handle_conversion_opts() 675 .rounding_mode = nir_rounding_mode_undef, in vtn_handle_alu() 684 if (opts.rounding_mode == nir_rounding_mode_undef && !opts.saturate) { in vtn_handle_alu() 690 dst_type, opts.rounding_mode, in vtn_handle_alu() 694 vtn_fail_if(opts.rounding_mode != nir_rounding_mode_undef && in vtn_handle_alu() 699 opts.rounding_mode); in vtn_handle_alu()
|
/external/OpenCL-CTS/test_common/ |
D | CMakeLists.txt | 7 harness/rounding_mode.cpp
|
/external/igt-gpu-tools/lib/ |
D | gen7_media.h | 71 uint32_t rounding_mode:2; member
|
D | gen8_media.h | 78 uint32_t rounding_mode:2; member
|
/external/vixl/src/aarch64/ |
D | simulator-aarch64.h | 3683 FPRounding rounding_mode); 3696 FPRounding rounding_mode); 4137 FPRounding rounding_mode, 4157 FPRounding rounding_mode, 4170 FPRounding rounding_mode,
|
D | logic-aarch64.cc | 5593 FPRounding rounding_mode, in frint() argument 5601 SimFloat16 rounded = FPRoundInt(input, rounding_mode); in frint() 5610 float rounded = FPRoundInt(input, rounding_mode, frint_mode); in frint() 5621 double rounded = FPRoundInt(input, rounding_mode, frint_mode); in frint()
|
/external/mesa3d/src/compiler/nir/ |
D | nir.h | 2092 INTRINSIC_IDX_ACCESSORS(rounding_mode, ROUNDING_MODE, nir_rounding_mode) in INTRINSIC_IDX_ACCESSORS()
|