]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
amdgpu/dc: inline fixed31_32 div_int
authorDave Airlie <airlied@redhat.com>
Fri, 29 Sep 2017 07:13:27 +0000 (17:13 +1000)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 29 Sep 2017 17:03:49 +0000 (13:03 -0400)
Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c
drivers/gpu/drm/amd/display/include/fixed31_32.h

index 1764a33c8350931b6b8b979b2b24271c1bbdfdca..26936892c6f59c7702b34351bfa63a4db6dfd643 100644 (file)
@@ -266,15 +266,6 @@ struct fixed31_32 dal_fixed31_32_sqr(
        return res;
 }
 
-struct fixed31_32 dal_fixed31_32_div_int(
-       struct fixed31_32 arg1,
-       int64_t arg2)
-{
-       return dal_fixed31_32_from_fraction(
-               arg1.value,
-               dal_fixed31_32_from_int(arg2).value);
-}
-
 struct fixed31_32 dal_fixed31_32_recip(
        struct fixed31_32 arg)
 {
index 2c9e2231ef06f5e9f4c98bf2a66daca8c8b462e3..3248f699daf2c986b6fb1508f9c9059604630370 100644 (file)
@@ -308,9 +308,12 @@ struct fixed31_32 dal_fixed31_32_sqr(
  * @brief
  * result = arg1 / arg2
  */
-struct fixed31_32 dal_fixed31_32_div_int(
-       struct fixed31_32 arg1,
-       int64_t arg2);
+static inline struct fixed31_32 dal_fixed31_32_div_int(struct fixed31_32 arg1,
+                                                      int64_t arg2)
+{
+       return dal_fixed31_32_from_fraction(arg1.value,
+                                           dal_fixed31_32_from_int(arg2).value);
+}
 
 /*
  * @brief