FreeBSD Bugzilla – Attachment 6215 Details for
Bug 14278
'newpcm' does'nt compile with '-fno-builtin'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.04 KB, created by
nnd
on 1999-10-12 04:30:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
nnd
Created:
1999-10-12 04:30:01 UTC
Size:
1.04 KB
patch
obsolete
>diff -bur dev/pcm.ORIG/ac97.c dev/pcm/ac97.c >--- dev/pcm.ORIG/ac97.c Wed Sep 1 13:58:21 1999 >+++ dev/pcm/ac97.c Tue Oct 12 10:04:17 1999 >@@ -29,6 +29,8 @@ > #include <dev/pcm/sound.h> > #include <dev/pcm/ac97.h> > >+#define abs(x) (((x) < 0) ? -(x) : (x)) >+ > #define AC97_MUTE 0x8000 > > #define AC97_REG_RESET 0x00 >diff -bur dev/pcm.ORIG/channel.c dev/pcm/channel.c >--- dev/pcm.ORIG/channel.c Wed Sep 29 09:37:06 1999 >+++ dev/pcm/channel.c Tue Oct 12 10:02:56 1999 >@@ -709,7 +709,7 @@ > if (CANCHANGE(c)) { > c->flags &= ~CHN_F_HAS_SIZE; > if (blksz >= 2) c->flags |= CHN_F_HAS_SIZE; >- blksz = abs(blksz); >+ if (blksz < 0) blksz = -blksz; > if (blksz < 2) blksz = (c->buffer.sample_size * c->speed) >> 2; > RANGE(blksz, 1024, c->buffer.bufsize / 4); > blksz &= ~3; >diff -bur dev/pcm.ORIG/isa/mss.c dev/pcm/isa/mss.c >--- dev/pcm.ORIG/isa/mss.c Wed Sep 29 09:37:06 1999 >+++ dev/pcm/isa/mss.c Tue Oct 12 10:04:04 1999 >@@ -30,6 +30,8 @@ > > #include <dev/pcm/sound.h> > >+#define abs(x) (((x) < 0) ? -(x) : (x)) >+ > #if NPCM > 0 > > /* board-specific include files */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 14278
: 6215