From e127e63c93f8d04de0a564eae5e5cb40b80260f5 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Thu, 13 Jun 2024 03:21:46 +0300 Subject: ipa: libipa: pwl: Make the empty() function inline The Pwl::empty() function is a one-liner that can be easily optimized by the compiler given the chance. Make it inline. While at it, move the function documentation block to match the class declaration order. Signed-off-by: Laurent Pinchart Reviewed-by: Paul Elder Reviewed-by: Kieran Bingham --- src/ipa/libipa/pwl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ipa/libipa/pwl.h') diff --git a/src/ipa/libipa/pwl.h b/src/ipa/libipa/pwl.h index 4cc257f9..b4de00cf 100644 --- a/src/ipa/libipa/pwl.h +++ b/src/ipa/libipa/pwl.h @@ -51,7 +51,7 @@ public: void append(double x, double y, double eps = 1e-6); - bool empty() const; + bool empty() const { return points_.empty(); } Interval domain() const; Interval range() const; -- cgit v1.2.1