From patchwork Mon Jun 29 14:54:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Fu, Ting" X-Patchwork-Id: 20728 Delivered-To: andriy.gelman@gmail.com Received: by 2002:a25:80ca:0:0:0:0:0 with SMTP id c10csp2877033ybm; Mon, 29 Jun 2020 08:01:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwTNPdIYCPiHKWccroZUFZfXmSZOogWSGBEhmV16N83hZFbwBvATMA3AjGDFxMvNwdemqp X-Received: by 2002:a5d:60d0:: with SMTP id x16mr17912567wrt.5.1593442888450; Mon, 29 Jun 2020 08:01:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593442888; cv=none; d=google.com; s=arc-20160816; b=BakJXr1EVfycd/aijPCPhpbgxZczgA0aYTfF0Jj7QwLW2PYbDiozTvP3oRXn/hQ1Cg WAzl5Jl3YoTCI7H7nMorhruK2NmeryP+51bElYVUq2y4njJv+oG+virDKEvmqVqvwbWe gEpNKWdJlrWDqlyKgwueS78cUf2+rWbXghNQUcZPdnF8jBBDjrSg6nr63+q38SMheaOj DLTxY1xibcF1JkF9+zY8OpTjQrXMQs5+JCMZ7rtJJMXPiN1InxL0BnSNQ9El4CiS9goO 3G1udr+In46dSgrOEk1a+YqbI7e4oQnjyl6e8CIsKnVbCWvzB6BnW8+3qMVPv3Vl07Gh azRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:ironport-sdr:ironport-sdr:delivered-to; bh=L3lxulMawCCeP0y+4a1kJWE5LfnhS0lKjVibMJ0ONq0=; b=G/sJvq/DOekbLEv0nggCgHNlpu13x1gX17PvcjJQ08dXutF7NRZD5tRfs8e3Unudot X1Yx/+qGK7cdEr7FXRaxtceGmwjODfJZE9sFzhR/Pyapii3OBjyIeHMpfUBOcJZedV3t bSrxud9C932HgVH0s2ZSWjlKYnv0hW7uBXcaiqtm7dpnti6qFTqk5Tro5ZDwpFJoIgyJ +rDr1N+1wrr7Kr1+8aQ5qEfleHLPV4tgjXfrarzxf12vPjjs+q6rl3v4jLFGETkWNeN5 UT/D7SXKfzSxwVpv97vHYLwoTUzc7sT2iubAcwKbaomQ8lUMoAA/yMAtzc8E1LnZiKwg kA1w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id b67si183406wmc.109.2020.06.29.08.01.28; Mon, 29 Jun 2020 08:01:28 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5BDB868ACB2; Mon, 29 Jun 2020 18:00:15 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E943F68AAAD for ; Mon, 29 Jun 2020 18:00:11 +0300 (EEST) IronPort-SDR: VshzJqd0HdekRz3WNZiRC/utYjgXeuyh8fTF17uxv4cr27aAWBhInL8Sn85JUkyHsrtxyvgElP sYcpMCY2o/lQ== X-IronPort-AV: E=McAfee;i="6000,8403,9666"; a="144173148" X-IronPort-AV: E=Sophos;i="5.75,295,1589266800"; d="scan'208";a="144173148" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jun 2020 08:00:02 -0700 IronPort-SDR: WvCtyzA4K6wDrU1h+AT1eLqK4WVUimfpqIwPf8yWBXg7lXJLpKQCTlgkczVJjD0BR3fb2QP98U t9XmTZQp0c8Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,295,1589266800"; d="scan'208";a="313069785" Received: from semmer-ubuntu.sh.intel.com ([10.239.159.54]) by fmsmga002.fm.intel.com with ESMTP; 29 Jun 2020 08:00:01 -0700 From: Ting Fu To: ffmpeg-devel@ffmpeg.org Date: Mon, 29 Jun 2020 22:54:09 +0800 Message-Id: <20200629145411.24005-10-ting.fu@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200629145411.24005-1-ting.fu@intel.com> References: <20200629145411.24005-1-ting.fu@intel.com> Subject: [FFmpeg-devel] [PATCH V2 10/12] dnn-layer-math-unary-test: add unit test for acosh 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" X-TUID: OrIxMD8sFyaQ Content-Length: 1435 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 90fce71a0c..5587e47ad5 100644 --- a/tests/dnn/dnn-layer-mathunary-test.c +++ b/tests/dnn/dnn-layer-mathunary-test.c @@ -52,6 +52,8 @@ static float get_expected(float f, DNNMathUnaryOperation op) return tanh(f); case DMUO_ASINH: return asinh(f); + case DMUO_ACOSH: + return acosh(f); default: av_assert0(!"not supported yet"); return 0.f; @@ -117,5 +119,7 @@ int main(int agrc, char **argv) return 1; if (test(DMUO_ASINH)) return 1; + if (test(DMUO_ACOSH)) + return 1; return 0; }