[all-commits] [llvm/llvm-project] a3490e: add floor library function

Joshua Batista via All-commits all-commits at lists.llvm.org
Mon Dec 5 17:51:06 PST 2022


  Branch: refs/heads/add_floor_library_fxn00
  Home:   https://github.com/llvm/llvm-project
  Commit: a3490e31eb3a56cef42c8179caecfe031f0432d1
      https://github.com/llvm/llvm-project/commit/a3490e31eb3a56cef42c8179caecfe031f0432d1
  Author: Joshua Batista <jbatista at microsoft.com>
  Date:   2022-12-01 (Thu, 01 Dec 2022)

  Changed paths:
    M clang/lib/Headers/hlsl/hlsl_intrinsics.h
    A clang/test/CodeGenHLSL/builtins/floor.hlsl

  Log Message:
  -----------
  add floor library function

This change exposes the floor library function for HLSL,
excluding long, int, and long long doubles.
Floor is supported for all scalar, vector, and matrix types.

Long and long long double support is missing in this patch because those types
don't exist in HLSL. Int is missing because the floor function only works on floating type arguments.

The full documentation of the HLSL floor function is available here:
https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-floor

Differential Revision: https://reviews.llvm.org/D139137


  Commit: d1d10c03116766fcd983d42f8d1275b0bc4b8508
      https://github.com/llvm/llvm-project/commit/d1d10c03116766fcd983d42f8d1275b0bc4b8508
  Author: Joshua Batista <jbatista at microsoft.com>
  Date:   2022-12-05 (Mon, 05 Dec 2022)

  Changed paths:
    M clang/lib/Headers/hlsl/hlsl_intrinsics.h

  Log Message:
  -----------
  update with clang format


Compare: https://github.com/llvm/llvm-project/compare/a3490e31eb3a%5E...d1d10c031167


More information about the All-commits mailing list