From: James Almer <jamrial@gmail.com> To: ffmpeg-devel@ffmpeg.org Subject: Re: [FFmpeg-devel] [PATCH] checkasm/ac3dsp: add float_to_fixed24 test Date: Thu, 23 Nov 2023 14:11:58 -0300 Message-ID: <72e2f13b-0bc9-46cb-bda5-1058f551ac0e@gmail.com> (raw) In-Reply-To: <CAEa-L+vZk01QWX1ZCLx0EpbnpfNWVWL6m2O+Rw0QB7vRXgpzqg@mail.gmail.com> On 11/23/2023 4:08 AM, flow gg wrote: > +static void check_float_to_fixed24(AC3DSPContext *c) { > +#define BUF_SIZE 1024 > + LOCAL_ALIGNED_32(int32_t, v1, [BUF_SIZE]); This one is not necessary. You can reuse dst or dst2 for the bench() as it's write only. > + LOCAL_ALIGNED_32(float, v2, [BUF_SIZE]); > + > + declare_func(void, int32_t *, const float *, unsigned int); > + > + randomize_float(v2, BUF_SIZE); > + > + if (check_func(c->float_to_fixed24, "float_to_fixed24")) { > + LOCAL_ALIGNED_32(int32_t, dst, [BUF_SIZE]); > + LOCAL_ALIGNED_32(int32_t, dst2, [BUF_SIZE]); > + > + call_ref(dst, v2, BUF_SIZE); > + call_new(dst2, v2, BUF_SIZE); > + > + if (memcmp(dst, dst2, sizeof(*dst) * 10) != 0) BUF_SIZE instead of 10. > + fail(); > + > + bench_new(v1, v2, BUF_SIZE); > + } > + > + > + report("float_to_fixed24"); > +} _______________________________________________ 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".
next prev parent reply other threads:[~2023-11-23 17:11 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-11-23 7:08 flow gg 2023-11-23 17:08 ` Rémi Denis-Courmont 2023-11-23 17:11 ` James Almer [this message] 2023-11-23 22:44 ` flow gg
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=72e2f13b-0bc9-46cb-bda5-1058f551ac0e@gmail.com \ --to=jamrial@gmail.com \ --cc=ffmpeg-devel@ffmpeg.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git