Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH] avutil/ppc/cpu: Also use the machdep.altivec sysctl on NetBSD
@ 2024-05-06  3:21 Brad Smith
  2024-05-06 14:15 ` Sean McGovern
  2024-05-07  2:24 ` Michael Niedermayer
  0 siblings, 2 replies; 8+ messages in thread
From: Brad Smith @ 2024-05-06  3:21 UTC (permalink / raw)
  To: ffmpeg-devel

avutil/ppc/cpu: Also use the machdep.altivec sysctl on NetBSD

Use the machdep.altivec sysctl on NetBSD for AltiVec detection
as is done with OpenBSD.

Signed-off-by: Brad Smith <brad@comstyle.com>
---
 libavutil/ppc/cpu.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavutil/ppc/cpu.c b/libavutil/ppc/cpu.c
index bc8bb5f47c..2b13cda662 100644
--- a/libavutil/ppc/cpu.c
+++ b/libavutil/ppc/cpu.c
@@ -27,7 +27,7 @@
 #if HAVE_UNISTD_H
 #include <unistd.h>
 #endif
-#elif defined(__OpenBSD__)
+#elif defined(__NetBSD__) || defined(__OpenBSD__)
 #include <sys/types.h>
 #include <sys/sysctl.h>
 #include <machine/cpu.h>
@@ -56,8 +56,8 @@ int ff_get_cpu_flags_ppc(void)
     if (result == VECTORTYPE_ALTIVEC)
         return AV_CPU_FLAG_ALTIVEC;
     return 0;
-#elif defined(__APPLE__) || defined(__OpenBSD__)
-#ifdef __OpenBSD__
+#elif defined(__APPLE__) || defined(__NetBSD__) || defined(__OpenBSD__)
+#if defined(__NetBSD__) || defined(__OpenBSD__)
     int sels[2] = {CTL_MACHDEP, CPU_ALTIVEC};
 #else
     int sels[2] = {CTL_HW, HW_VECTORUNIT};
-- 
2.44.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".

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [FFmpeg-devel] [PATCH] avutil/ppc/cpu: Also use the machdep.altivec sysctl on NetBSD
  2024-05-06  3:21 [FFmpeg-devel] [PATCH] avutil/ppc/cpu: Also use the machdep.altivec sysctl on NetBSD Brad Smith
@ 2024-05-06 14:15 ` Sean McGovern
  2024-05-07  2:24 ` Michael Niedermayer
  1 sibling, 0 replies; 8+ messages in thread
From: Sean McGovern @ 2024-05-06 14:15 UTC (permalink / raw)
  To: FFmpeg development discussions and patches

Hi Brad,

On Sun, May 5, 2024 at 11:22 PM Brad Smith
<brad-at-comstyle.com@ffmpeg.org> wrote:
>
> avutil/ppc/cpu: Also use the machdep.altivec sysctl on NetBSD
>
> Use the machdep.altivec sysctl on NetBSD for AltiVec detection
> as is done with OpenBSD.
>
> Signed-off-by: Brad Smith <brad@comstyle.com>
> ---
>  libavutil/ppc/cpu.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/libavutil/ppc/cpu.c b/libavutil/ppc/cpu.c
> index bc8bb5f47c..2b13cda662 100644
> --- a/libavutil/ppc/cpu.c
> +++ b/libavutil/ppc/cpu.c
> @@ -27,7 +27,7 @@
>  #if HAVE_UNISTD_H
>  #include <unistd.h>
>  #endif
> -#elif defined(__OpenBSD__)
> +#elif defined(__NetBSD__) || defined(__OpenBSD__)
>  #include <sys/types.h>
>  #include <sys/sysctl.h>
>  #include <machine/cpu.h>
> @@ -56,8 +56,8 @@ int ff_get_cpu_flags_ppc(void)
>      if (result == VECTORTYPE_ALTIVEC)
>          return AV_CPU_FLAG_ALTIVEC;
>      return 0;
> -#elif defined(__APPLE__) || defined(__OpenBSD__)
> -#ifdef __OpenBSD__
> +#elif defined(__APPLE__) || defined(__NetBSD__) || defined(__OpenBSD__)
> +#if defined(__NetBSD__) || defined(__OpenBSD__)
>      int sels[2] = {CTL_MACHDEP, CPU_ALTIVEC};
>  #else
>      int sels[2] = {CTL_HW, HW_VECTORUNIT};
> --
> 2.44.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".

OK, looks good to me.

-- Sean McGovern
_______________________________________________
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".

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [FFmpeg-devel] [PATCH] avutil/ppc/cpu: Also use the machdep.altivec sysctl on NetBSD
  2024-05-06  3:21 [FFmpeg-devel] [PATCH] avutil/ppc/cpu: Also use the machdep.altivec sysctl on NetBSD Brad Smith
  2024-05-06 14:15 ` Sean McGovern
@ 2024-05-07  2:24 ` Michael Niedermayer
  2024-05-11 19:55   ` Brad Smith
  1 sibling, 1 reply; 8+ messages in thread
From: Michael Niedermayer @ 2024-05-07  2:24 UTC (permalink / raw)
  To: FFmpeg development discussions and patches


[-- Attachment #1.1: Type: text/plain, Size: 711 bytes --]

On Sun, May 05, 2024 at 11:21:58PM -0400, Brad Smith wrote:
> avutil/ppc/cpu: Also use the machdep.altivec sysctl on NetBSD
> 
> Use the machdep.altivec sysctl on NetBSD for AltiVec detection
> as is done with OpenBSD.
> 
> Signed-off-by: Brad Smith <brad@comstyle.com>
> ---
>  libavutil/ppc/cpu.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

you seem to be sending alot of bsd related patches, maybe
you want to send a patch that adds you to the MAINTAINERs file?

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Elect your leaders based on what they did after the last election, not
based on what they say before an election.


[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

[-- Attachment #2: Type: text/plain, Size: 251 bytes --]

_______________________________________________
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".

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [FFmpeg-devel] [PATCH] avutil/ppc/cpu: Also use the machdep.altivec sysctl on NetBSD
  2024-05-07  2:24 ` Michael Niedermayer
@ 2024-05-11 19:55   ` Brad Smith
  2024-05-11 21:49     ` Michael Niedermayer
  0 siblings, 1 reply; 8+ messages in thread
From: Brad Smith @ 2024-05-11 19:55 UTC (permalink / raw)
  To: FFmpeg development discussions and patches, Michael Niedermayer

On 2024-05-06 10:24 p.m., Michael Niedermayer wrote:
> On Sun, May 05, 2024 at 11:21:58PM -0400, Brad Smith wrote:
>> avutil/ppc/cpu: Also use the machdep.altivec sysctl on NetBSD
>>
>> Use the machdep.altivec sysctl on NetBSD for AltiVec detection
>> as is done with OpenBSD.
>>
>> Signed-off-by: Brad Smith<brad@comstyle.com>
>> ---
>>   libavutil/ppc/cpu.c | 6 +++---
>>   1 file changed, 3 insertions(+), 3 deletions(-)
> you seem to be sending alot of bsd related patches, maybe
> you want to send a patch that adds you to the MAINTAINERs file?
>
> thx

I try to help where I can. I am an OpenBSD developer and take a look at
what the other *BSD's have for local patches and push things upstream to
benefit both sides, but I am not sure I have enough time to be in a position
to be considered any kind of official MAINTAINER.
_______________________________________________
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".

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [FFmpeg-devel] [PATCH] avutil/ppc/cpu: Also use the machdep.altivec sysctl on NetBSD
  2024-05-11 19:55   ` Brad Smith
@ 2024-05-11 21:49     ` Michael Niedermayer
  2024-05-11 22:24       ` Brad Smith
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Niedermayer @ 2024-05-11 21:49 UTC (permalink / raw)
  To: FFmpeg development discussions and patches; +Cc: Brad Smith


[-- Attachment #1.1: Type: text/plain, Size: 1311 bytes --]

On Sat, May 11, 2024 at 03:55:44PM -0400, Brad Smith wrote:
> On 2024-05-06 10:24 p.m., Michael Niedermayer wrote:
> > On Sun, May 05, 2024 at 11:21:58PM -0400, Brad Smith wrote:
> > > avutil/ppc/cpu: Also use the machdep.altivec sysctl on NetBSD
> > > 
> > > Use the machdep.altivec sysctl on NetBSD for AltiVec detection
> > > as is done with OpenBSD.
> > > 
> > > Signed-off-by: Brad Smith<brad@comstyle.com>
> > > ---
> > >   libavutil/ppc/cpu.c | 6 +++---
> > >   1 file changed, 3 insertions(+), 3 deletions(-)
> > you seem to be sending alot of bsd related patches, maybe
> > you want to send a patch that adds you to the MAINTAINERs file?
> > 
> > thx
> 
> I try to help where I can. I am an OpenBSD developer and take a look at
> what the other *BSD's have for local patches and push things upstream to
> benefit both sides, but I am not sure I have enough time to be in a position
> to be considered any kind of official MAINTAINER.

Iam not asking you to do more work
Id like to give you a git write account so you can push your BSD related
fixes yourself.
(everyone who has git write should be in MAINTAINERs)

thx

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Avoid a single point of failure, be that a person or equipment.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

[-- Attachment #2: Type: text/plain, Size: 251 bytes --]

_______________________________________________
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".

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [FFmpeg-devel] [PATCH] avutil/ppc/cpu: Also use the machdep.altivec sysctl on NetBSD
  2024-05-11 21:49     ` Michael Niedermayer
@ 2024-05-11 22:24       ` Brad Smith
  2024-05-12  0:13         ` Michael Niedermayer
  0 siblings, 1 reply; 8+ messages in thread
From: Brad Smith @ 2024-05-11 22:24 UTC (permalink / raw)
  To: FFmpeg development discussions and patches, Michael Niedermayer

On 2024-05-11 5:49 p.m., Michael Niedermayer wrote:
> On Sat, May 11, 2024 at 03:55:44PM -0400, Brad Smith wrote:
>> On 2024-05-06 10:24 p.m., Michael Niedermayer wrote:
>>> On Sun, May 05, 2024 at 11:21:58PM -0400, Brad Smith wrote:
>>>> avutil/ppc/cpu: Also use the machdep.altivec sysctl on NetBSD
>>>>
>>>> Use the machdep.altivec sysctl on NetBSD for AltiVec detection
>>>> as is done with OpenBSD.
>>>>
>>>> Signed-off-by: Brad Smith<brad@comstyle.com>
>>>> ---
>>>>    libavutil/ppc/cpu.c | 6 +++---
>>>>    1 file changed, 3 insertions(+), 3 deletions(-)
>>> you seem to be sending alot of bsd related patches, maybe
>>> you want to send a patch that adds you to the MAINTAINERs file?
>>>
>>> thx
>> I try to help where I can. I am an OpenBSD developer and take a look at
>> what the other *BSD's have for local patches and push things upstream to
>> benefit both sides, but I am not sure I have enough time to be in a position
>> to be considered any kind of official MAINTAINER.
> Iam not asking you to do more work
> Id like to give you a git write account so you can push your BSD related
> fixes yourself.
> (everyone who has git write should be in MAINTAINERs)
>
> thx

Oh, my misunderstanding. I would be fine with that.
_______________________________________________
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".

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [FFmpeg-devel] [PATCH] avutil/ppc/cpu: Also use the machdep.altivec sysctl on NetBSD
  2024-05-11 22:24       ` Brad Smith
@ 2024-05-12  0:13         ` Michael Niedermayer
  2024-05-12  0:15           ` Brad Smith
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Niedermayer @ 2024-05-12  0:13 UTC (permalink / raw)
  To: FFmpeg development discussions and patches, Brad Smith


[-- Attachment #1.1: Type: text/plain, Size: 1926 bytes --]

Hi

On Sat, May 11, 2024 at 06:24:32PM -0400, Brad Smith wrote:
> On 2024-05-11 5:49 p.m., Michael Niedermayer wrote:
> > On Sat, May 11, 2024 at 03:55:44PM -0400, Brad Smith wrote:
> > > On 2024-05-06 10:24 p.m., Michael Niedermayer wrote:
> > > > On Sun, May 05, 2024 at 11:21:58PM -0400, Brad Smith wrote:
> > > > > avutil/ppc/cpu: Also use the machdep.altivec sysctl on NetBSD
> > > > > 
> > > > > Use the machdep.altivec sysctl on NetBSD for AltiVec detection
> > > > > as is done with OpenBSD.
> > > > > 
> > > > > Signed-off-by: Brad Smith<brad@comstyle.com>
> > > > > ---
> > > > >    libavutil/ppc/cpu.c | 6 +++---
> > > > >    1 file changed, 3 insertions(+), 3 deletions(-)
> > > > you seem to be sending alot of bsd related patches, maybe
> > > > you want to send a patch that adds you to the MAINTAINERs file?
> > > > 
> > > > thx
> > > I try to help where I can. I am an OpenBSD developer and take a look at
> > > what the other *BSD's have for local patches and push things upstream to
> > > benefit both sides, but I am not sure I have enough time to be in a position
> > > to be considered any kind of official MAINTAINER.
> > Iam not asking you to do more work
> > Id like to give you a git write account so you can push your BSD related
> > fixes yourself.
> > (everyone who has git write should be in MAINTAINERs)
> > 
> > thx
> 
> Oh, my misunderstanding. I would be fine with that.

Than please post a patch that adds you to MAINTAINERs
the idea behind this is so that teh whole community can always
object anyone receiving git wriet access
I can post a patch adding you too, but i dont know what exactly
you want listed in it. For git write it just matters that you are
in the file anywhere

thx


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Those who are best at talking, realize last or never when they are wrong.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

[-- Attachment #2: Type: text/plain, Size: 251 bytes --]

_______________________________________________
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".

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [FFmpeg-devel] [PATCH] avutil/ppc/cpu: Also use the machdep.altivec sysctl on NetBSD
  2024-05-12  0:13         ` Michael Niedermayer
@ 2024-05-12  0:15           ` Brad Smith
  0 siblings, 0 replies; 8+ messages in thread
From: Brad Smith @ 2024-05-12  0:15 UTC (permalink / raw)
  To: FFmpeg development discussions and patches, Michael Niedermayer

On 2024-05-11 8:13 p.m., Michael Niedermayer wrote:
> Hi
>
> On Sat, May 11, 2024 at 06:24:32PM -0400, Brad Smith wrote:
>> On 2024-05-11 5:49 p.m., Michael Niedermayer wrote:
>>> On Sat, May 11, 2024 at 03:55:44PM -0400, Brad Smith wrote:
>>>> On 2024-05-06 10:24 p.m., Michael Niedermayer wrote:
>>>>> On Sun, May 05, 2024 at 11:21:58PM -0400, Brad Smith wrote:
>>>>>> avutil/ppc/cpu: Also use the machdep.altivec sysctl on NetBSD
>>>>>>
>>>>>> Use the machdep.altivec sysctl on NetBSD for AltiVec detection
>>>>>> as is done with OpenBSD.
>>>>>>
>>>>>> Signed-off-by: Brad Smith<brad@comstyle.com>
>>>>>> ---
>>>>>>     libavutil/ppc/cpu.c | 6 +++---
>>>>>>     1 file changed, 3 insertions(+), 3 deletions(-)
>>>>> you seem to be sending alot of bsd related patches, maybe
>>>>> you want to send a patch that adds you to the MAINTAINERs file?
>>>>>
>>>>> thx
>>>> I try to help where I can. I am an OpenBSD developer and take a look at
>>>> what the other *BSD's have for local patches and push things upstream to
>>>> benefit both sides, but I am not sure I have enough time to be in a position
>>>> to be considered any kind of official MAINTAINER.
>>> Iam not asking you to do more work
>>> Id like to give you a git write account so you can push your BSD related
>>> fixes yourself.
>>> (everyone who has git write should be in MAINTAINERs)
>>>
>>> thx
>> Oh, my misunderstanding. I would be fine with that.
> Than please post a patch that adds you to MAINTAINERs
> the idea behind this is so that teh whole community can always
> object anyone receiving git wriet access
> I can post a patch adding you too, but i dont know what exactly
> you want listed in it. For git write it just matters that you are
> in the file anywhere
>
> thx

Thanks. Will do.
_______________________________________________
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".

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-05-12  0:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-06  3:21 [FFmpeg-devel] [PATCH] avutil/ppc/cpu: Also use the machdep.altivec sysctl on NetBSD Brad Smith
2024-05-06 14:15 ` Sean McGovern
2024-05-07  2:24 ` Michael Niedermayer
2024-05-11 19:55   ` Brad Smith
2024-05-11 21:49     ` Michael Niedermayer
2024-05-11 22:24       ` Brad Smith
2024-05-12  0:13         ` Michael Niedermayer
2024-05-12  0:15           ` Brad Smith

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