From patchwork Thu Jun 18 09:15:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Fu, Ting" X-Patchwork-Id: 20456 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 1150644B58B for ; Thu, 18 Jun 2020 12:21:53 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id F101268B76B; Thu, 18 Jun 2020 12:21:52 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0E3F768B708 for ; Thu, 18 Jun 2020 12:21:45 +0300 (EEST) IronPort-SDR: m7nH88zWUfZ/0RNzDnssEy1misUhCte3vFbVPnpVzluWdgaufih2oHSRYj82clGOfRsxNowNZB D+qIFoT3x+Cw== X-IronPort-AV: E=McAfee;i="6000,8403,9655"; a="207748155" X-IronPort-AV: E=Sophos;i="5.73,526,1583222400"; d="scan'208";a="207748155" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jun 2020 02:21:26 -0700 IronPort-SDR: VzuIrTLUN/ByX2BwURrMMSvHByeiAith5eD6ZxQjmTe7K+E/eT4NSahYnpnrk97g1ewDxdhXp4 jHyutQtsXIHw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,526,1583222400"; d="scan'208";a="477130703" Received: from semmer-ubuntu.sh.intel.com ([10.239.159.126]) by fmsmga006.fm.intel.com with ESMTP; 18 Jun 2020 02:21:25 -0700 From: Ting Fu To: ffmpeg-devel@ffmpeg.org Date: Thu, 18 Jun 2020 17:15:34 +0800 Message-Id: <20200618091536.8733-4-ting.fu@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200618091536.8733-1-ting.fu@intel.com> References: <20200618091536.8733-1-ting.fu@intel.com> Subject: [FFmpeg-devel] [PATCH 4/6] dnn-layer-math-unary-test: add unit test for acos X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Ting Fu --- tests/dnn/dnn-layer-mathunary-test.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/dnn/dnn-layer-mathunary-test.c b/tests/dnn/dnn-layer-mathunary-test.c index ac26f7445f..540ea4cef5 100644 --- a/tests/dnn/dnn-layer-mathunary-test.c +++ b/tests/dnn/dnn-layer-mathunary-test.c @@ -40,6 +40,8 @@ static float get_expected(float f, DNNMathUnaryOperation op) return tan(f); case DMUO_ASIN: return asin(f); + case DMUO_ACOS: + return acos(f); default: av_assert0(!"not supported yet"); return 0.f; @@ -93,5 +95,7 @@ int main(int agrc, char **argv) return 1; if (test(DMUO_ASIN)) return 1; + if (test(DMUO_ACOS)) + return 1; return 0; }