From patchwork Thu Sep 22 21:18:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Almer X-Patchwork-Id: 38188 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3b1c:b0:96:9ee8:5cfd with SMTP id c28csp13929pzh; Thu, 22 Sep 2022 14:19:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5hMjWAfWrAZR534hmWF8gD81DeYnfTynU80Zu0Y3xvjNEdVaiMHW9RGw/bUjI1DzwBHHUX X-Received: by 2002:a17:907:7f93:b0:781:dbee:dece with SMTP id qk19-20020a1709077f9300b00781dbeedecemr4427814ejc.323.1663881561044; Thu, 22 Sep 2022 14:19:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663881561; cv=none; d=google.com; s=arc-20160816; b=nEzlX7IL8aG+YYnWDSbKNbOoH9ec1ah3aG8rMP038Bic7uNxNJim951cESjSSq+GNC 7YtYz5tP9Pjd3dIUijCdXxw7YU9ku9+oWM+SVC29PjFpAPALa9L31C5JkInImBGBYeuX I9AFauQHpkF7jcn/n17umjn1bNWH4MtcQ2j4R1tRBuSjeRL7fwBL6fYp154n5G+IEGkj NpAvic6C+YVOx8TBQuZeSDhIPT+PvzA4E+QNzF5RDX+h63ON3+zQyKt9PDzgaBy4TVRR lDI037Y9cXV2gWKUnv+yrMvsOXKeGd6uVdznEcSodMt6is7c1+r1i7quinrrj/ZXbVmz w+rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :dkim-signature:delivered-to; bh=xvkB9oPeqLJJTIgroxLNEKIYYWBrqnfGtM5XuumSOdE=; b=SGCjrr8P5p00vQ8OKm8vLrd8RX9t5BqbbgjgWPo1c0ubbErbIgAO60PBJsrSm01H1+ s0o5cmtxpMs+23GaSuel05dwUGNxmMLzGmyfXolFNSCtObP4rFMSbc8dVPd6T3zE1jKg ZgNTY/gohvx9nK4kLwFRJbWEkgqzFFUkxvURl/A5s0aSqyNdaXBRmuRJrA0zUSAuPSVi FFtrEsFH5D1EnNBKsmQ+aJ3SU/Z+mfeoMKxot72gPJgMG4+1zRgAlkSNw5pTbDcueTU7 gS8dLhIieyToGpaKR7fG/yF8vqCaZA4GtBLFV4lB9wyGV71gQ+Ml5FfaAyKOc5YmtCtx 2pgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=CwiQ1c57; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id nc36-20020a1709071c2400b00779c93d7985si7152327ejc.211.2022.09.22.14.19.20; Thu, 22 Sep 2022 14:19:21 -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; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=CwiQ1c57; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id AC87768BB2D; Fri, 23 Sep 2022 00:19:18 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-ot1-f46.google.com (mail-ot1-f46.google.com [209.85.210.46]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 13DD668B9F6 for ; Fri, 23 Sep 2022 00:19:12 +0300 (EEST) Received: by mail-ot1-f46.google.com with SMTP id 102-20020a9d0bef000000b0065a08449ab3so7099706oth.2 for ; Thu, 22 Sep 2022 14:19:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date; bh=XrvKZlF4FHW3uuA66mFvDfeRqsgY3f8R6eIdOFl3W9c=; b=CwiQ1c57gQInGh7G3+QcwEn3ignAgbQ4ieOyaYkezTH1Km7WL4zIvoQW9/dD/39Zja vEz76gXz2sWfN2BFCYOpZufg9yGrvfvRXShPRnj7uSYXItTSFT0HkmL2x2t4FnyolpgD r901vRQrZK6mtGKNC5ukydYJF2Yu2L0VEyf27pZJCJl5h/LzMkDelB9ykQ4N3lyhAeuU viZDa5VlRsAChoJ+bZqj2XTyLXFGRDnR/9h8fd6UP6O4gZaic7Dte1C8L7bQXsYw2VAZ +HG6p+TOuFVVLtcbzNYfPgkGgi8RzNB52DR4Jl3ZKeH98ujTN/CwWCBokqPzHtYYlo4N nLOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date; bh=XrvKZlF4FHW3uuA66mFvDfeRqsgY3f8R6eIdOFl3W9c=; b=78YfDVXQIHi7FZho+8uSIrMf0PcclItOCFq0YazhJjqD0zpLly/5s0LlSZ8Tq5gVOb 6Oj/LkzWaR3pbaSdJxMIYBOBN3b412CqT5LaepWeiW8i4yBq4kTXBZCgEF/wNIX6LBvg ELX9XHuSLeWiD0lFXyNPFptO06pv80xG6XCU4q972ZW3wWIiZPLGyqMabYAFXeEMSJQC +p8fifRVjD0SgM4sb8o1ixDeddrr2uRY9+1pBTyuZ+pVyaWRx4ppPH/4SG8Om0/BXgKB 7Ct0wWG9DigA8adQyikte7kVCUSBb6BuJX3MFgPBAenS8qq++Y3tMkfpeevmVGrXyjSF qSUQ== X-Gm-Message-State: ACrzQf0BHJAbCPl4T4Rx0efCNu2VBNAXLPJfQ2xsB4Y9BUc4yIcAxfAD OvNrQGHffw57EjKndn6XJiZjhjl1RTo= X-Received: by 2002:a05:6830:268c:b0:658:6438:de0c with SMTP id l12-20020a056830268c00b006586438de0cmr2634917otu.230.1663881550309; Thu, 22 Sep 2022 14:19:10 -0700 (PDT) Received: from localhost.localdomain ([191.97.187.183]) by smtp.gmail.com with ESMTPSA id z19-20020a056870461300b0011e37fb5493sm3742244oao.30.2022.09.22.14.19.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Sep 2022 14:19:09 -0700 (PDT) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Thu, 22 Sep 2022 18:18:58 -0300 Message-Id: <20220922211858.6050-1-jamrial@gmail.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] tests/checkasm/lpc: print mismatching values X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: ptQJsZhfHd4N Will help debugging. Signed-off-by: James Almer --- tests/checkasm/lpc.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/checkasm/lpc.c b/tests/checkasm/lpc.c index 8528fd6e20..49e608f8c1 100644 --- a/tests/checkasm/lpc.c +++ b/tests/checkasm/lpc.c @@ -45,8 +45,14 @@ static void test_window(int len) call_ref(src, len, dst0); call_new(src, len, dst1); - if (!double_near_abs_eps_array(dst0, dst1, EPS, len)) - fail(); + for (int i = 0; i < len; i++) { + if (!double_near_abs_eps(dst0[i], dst1[i], EPS)) { + fprintf(stderr, "%d: %- .12f - %- .12f = % .12g\n", + i, dst0[i], dst1[i], dst0[i] - dst1[i]); + fail(); + break; + } + } bench_new(src, len, dst1); }