From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 6BF6143FC2 for ; Thu, 22 Sep 2022 21:19:19 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 7483B68BB2A; Fri, 23 Sep 2022 00:19:18 +0300 (EEST) 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-Google-Smtp-Source: AMsMyM6R5bCKquUI1Hl6oGalzADDrW5VHsc5TgQgZZBWdahBoJcYoE92+2f2labxlZm9j6V8pfeDMg== 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: 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); } -- 2.37.3 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".