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 6DFFA4B488 for ; Thu, 6 Jun 2024 07:43:28 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id F269C68D628; Thu, 6 Jun 2024 10:43:25 +0300 (EEST) Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 6982E68AA84 for ; Thu, 6 Jun 2024 10:43:19 +0300 (EEST) Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-a6c8537bfa0so22374766b.3 for ; Thu, 06 Jun 2024 00:43:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717659798; x=1718264598; darn=ffmpeg.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=L6jCmSppJpv/KUM65KrcuECtpE3ggZ9Rjyi1GJp0Jjk=; b=e8646W1FC/o5OL0InXSBBon6dkxtFloRM5/otKlzgQcl9AB4m2OD1yj2YDouNqGORF u849y+MnT6ASPy/kmS1Aj0/9vXfiTn8rvmDgjIzNDTEWyk08ENzKj7G6xfWbcgZGgPvD ocmpyT3hMgZPy9z43FBigPeMnOn4kBi09DbW9WSUJpH373ATx+7H1/q94UAM9p9yt7BB 8U3WNZjZ+usXn/BjcGieKCVQi7XqTyUcriDQy7zEwgke2vePk8gfOoqZangSCfcTtIUW R3zaphfz+Q+kRaOAHwnt7tCIamkn1OJfEZVjlxM/trK/VMWlBHOJMGmaMKTspXYqAaRa YtTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717659798; x=1718264598; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=L6jCmSppJpv/KUM65KrcuECtpE3ggZ9Rjyi1GJp0Jjk=; b=UPQB/A+RDNhGniNSZb9vrOa2FtNqsxX3nkidyRZwRW3Rvl3/ocQC9+G+CWUGwwNjW7 OghCCZDPW2Z45OoJSkmCYM9FNWvifYeBOEstKkpZkyiYJjAlmzrduGhxfp2E0JEch7IE ypdrCphYMf6t3HvpVxkt+gQjNWkmnreLxWLSN6CsOCrSl1mm2MUnNiTdJZCDg1KLXhEM FYRAWAnV9PbQmZV09vpqgJyGJjqIgpwzHjDN3h88ADPgdLH5wuf7aEUYOdPR2XX9hVaH L0gMDuSOvMWI3m4dqtK+TDHGPs7799lteh1ifJlXWTZ3AU7wS4lUFzk0oK2FTeTVh98g CraQ== X-Gm-Message-State: AOJu0YwtQduC8kJe+qIrOFgKKL0g8vjnvGHTfPR1NWuKepaXR6q93iRs YDJ+Du3CiskAXMPMva/3GtMcqJAtmyoKuQm+Fk/t40xqujumcL5BpSZG7vZlqNqkYQ8EwJtQ5AM fqERZGe3dUPo7jWTVKBVvlu4e/sl9f4pN X-Google-Smtp-Source: AGHT+IE2QiyN/sztvH7rnOUghNygAJWHwD+9hzMnJsrIm5AerogPwUzuA/uxHDq8g2VbrPO0tro9BfO72HNa5HP8EBU= X-Received: by 2002:a17:906:66c2:b0:a68:ecf8:9edd with SMTP id a640c23a62f3a-a699faacfdemr295401866b.31.1717659798158; Thu, 06 Jun 2024 00:43:18 -0700 (PDT) MIME-Version: 1.0 From: Sean McGovern Date: Thu, 6 Jun 2024 03:43:05 -0400 Message-ID: To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] [RFC] flac_wasted32 vector implementation for VSX on ppc64le 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: Hi, Attached inline is a _non-working_ implementation of flac_wasted32 for VSX developed on a POWER9 in little-endian mode but probably just as usable on POWER{8,10}. I'm not sure why probably one of the simplest DSP functions in lavc does not work for me, I imagine this is probably something endian related even though IBM's documentation for vec_sl()[1] does not suggest any. Here's my code: #define VSX_STRIDE 16 void ff_flac_wasted32_vsx(int32_t *decoded, int wasted, int len) { register vec_s32 vec1; register vec_u32 vec2 = { wasted, wasted, wasted, wasted }; register vec_s32 shifted; for (int i = 0; i < len; i += VSX_STRIDE) { vec1 = vec_vsx_ld(i, decoded); shifted = vec_sl(vec1, vec2); vec_vsx_st(shifted, i, decoded); } } Anyone with experience with AltiVec or VSX see something obvious I am missing? -- Sean McGovern [1] https://www.ibm.com/docs/en/xl-c-and-cpp-linux/16.1.1?topic=functions-vec-sl _______________________________________________ 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".