From: Geoff Hill <geoff@geoffhill.org> To: ffmpeg-devel@ffmpeg.org, "Martin Storsjö" <martin@martin.st> Subject: [FFmpeg-devel] [PATCH v4 0/5] avcodec/ac3: Add aarch64 NEON DSP Date: Sat, 6 Apr 2024 07:23:37 -0700 Message-ID: <51f7be0a-4267-47bf-ab0b-bd6585806da7@geoffhill.org> (raw) Thanks Martin for your review and testing. Here's v4 with the following changes: * Use fmal in sum_square_butterfly_float loop. Faster. * Removed redundant loop bound zero checks in extract_exponents, sum_square_bufferfly_int32 and sum_square_bufferfly_float. * Fixed randomize_int24() to also use negative values. * Carry copyright from arm implementation over to aarch64. I did use this version as reference. * Fix indentation to match existing aarch64 assembly style. Tested once again on aarch64 and x86. On AWS Graviton2 (t4g.medium), GCC 12.3: $ tests/checkasm/checkasm --bench --test=ac3dsp ... NEON: - ac3dsp.ac3_exponent_min [OK] - ac3dsp.ac3_extract_exponents [OK] - ac3dsp.float_to_fixed24 [OK] - ac3dsp.ac3_sum_square_butterfly_int32 [OK] - ac3dsp.ac3_sum_square_butterfly_float [OK] checkasm: all 20 tests passed ac3_exponent_min_reuse0_c: 7.5 ac3_exponent_min_reuse0_neon: 7.5 ac3_exponent_min_reuse1_c: 1044.0 ac3_exponent_min_reuse1_neon: 57.0 ac3_exponent_min_reuse2_c: 2073.0 ac3_exponent_min_reuse2_neon: 73.7 ac3_exponent_min_reuse3_c: 2596.2 ac3_exponent_min_reuse3_neon: 154.0 ac3_exponent_min_reuse4_c: 3107.2 ac3_exponent_min_reuse4_neon: 169.2 ac3_exponent_min_reuse5_c: 3615.2 ac3_exponent_min_reuse5_neon: 185.2 ac3_extract_exponents_n512_c: 1672.0 ac3_extract_exponents_n512_neon: 517.5 ac3_extract_exponents_n768_c: 2505.0 ac3_extract_exponents_n768_neon: 770.5 ac3_extract_exponents_n1024_c: 3304.0 ac3_extract_exponents_n1024_neon: 1022.0 ac3_extract_exponents_n1280_c: 4163.5 ac3_extract_exponents_n1280_neon: 1279.5 ac3_extract_exponents_n1536_c: 5001.2 ac3_extract_exponents_n1536_neon: 1553.2 ac3_extract_exponents_n1792_c: 5823.5 ac3_extract_exponents_n1792_neon: 1851.7 ac3_extract_exponents_n2048_c: 6601.5 ac3_extract_exponents_n2048_neon: 2116.2 ac3_extract_exponents_n2304_c: 7425.2 ac3_extract_exponents_n2304_neon: 2382.7 ac3_extract_exponents_n2560_c: 8278.5 ac3_extract_exponents_n2560_neon: 2620.5 ac3_extract_exponents_n2816_c: 9079.5 ac3_extract_exponents_n2816_neon: 2893.2 ac3_extract_exponents_n3072_c: 10026.5 ac3_extract_exponents_n3072_neon: 3127.0 ac3_sum_square_bufferfly_float_c: 1647.5 ac3_sum_square_bufferfly_float_neon: 229.5 ac3_sum_square_bufferfly_int32_c: 963.5 ac3_sum_square_bufferfly_int32_neon: 546.5 float_to_fixed24_c: 2460.5 float_to_fixed24_neon: 561.5 Geoff Hill (5): avcodec/ac3: Implement float_to_fixed24 for aarch64 NEON avcodec/ac3: Implement ac3_exponent_min for aarch64 NEON avcodec/ac3: Implement ac3_extract_exponents for aarch64 NEON avcodec/ac3: Implement sum_square_butterfly_int32 for aarch64 NEON avcodec/ac3: Implement sum_square_butterfly_float for aarch64 NEON libavcodec/aarch64/Makefile | 2 + libavcodec/aarch64/ac3dsp_init_aarch64.c | 50 +++++++++ libavcodec/aarch64/ac3dsp_neon.S | 119 ++++++++++++++++++++ libavcodec/ac3dsp.c | 4 +- libavcodec/ac3dsp.h | 3 +- tests/checkasm/ac3dsp.c | 133 +++++++++++++++++++++++ 6 files changed, 309 insertions(+), 2 deletions(-) create mode 100644 libavcodec/aarch64/ac3dsp_init_aarch64.c create mode 100644 libavcodec/aarch64/ac3dsp_neon.S -- 2.42.0 _______________________________________________ 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 reply other threads:[~2024-04-06 14:23 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-04-06 14:23 Geoff Hill [this message] 2024-04-06 14:25 ` [FFmpeg-devel] [PATCH v4 1/5] avcodec/ac3: Implement float_to_fixed24 for aarch64 NEON Geoff Hill 2024-04-06 14:25 ` [FFmpeg-devel] [PATCH v4 2/5] avcodec/ac3: Implement ac3_exponent_min " Geoff Hill 2024-04-06 14:26 ` [FFmpeg-devel] [PATCH v4 3/5] avcodec/ac3: Implement ac3_extract_exponents " Geoff Hill 2024-04-06 14:26 ` [FFmpeg-devel] [PATCH v4 4/5] avcodec/ac3: Implement sum_square_butterfly_int32 " Geoff Hill 2024-04-06 14:26 ` [FFmpeg-devel] [PATCH v4 5/5] avcodec/ac3: Implement sum_square_butterfly_float " Geoff Hill 2024-04-08 10:47 ` [FFmpeg-devel] [PATCH v4 0/5] avcodec/ac3: Add aarch64 NEON DSP Martin Storsjö
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=51f7be0a-4267-47bf-ab0b-bd6585806da7@geoffhill.org \ --to=geoff@geoffhill.org \ --cc=ffmpeg-devel@ffmpeg.org \ --cc=martin@martin.st \ /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