Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Vorbis
Commits
1db27208
Commit
1db27208
authored
Nov 08, 2000
by
Jack Moffitt
Browse files
test fix for beos
svn path=/trunk/vorbis/; revision=1039
parent
9d37f239
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/os.h
View file @
1db27208
...
...
@@ -14,7 +14,7 @@
********************************************************************
function: #ifdef jail to whip a few platforms into the UNIX ideal.
last mod: $Id: os.h,v 1.1
4
2000/11/0
6
2
0
:3
6:0
7 jack Exp $
last mod: $Id: os.h,v 1.1
5
2000/11/0
8
2
2
:3
8:5
7 jack Exp $
********************************************************************/
...
...
@@ -62,6 +62,8 @@
#if defined(__i386__) && defined(__GNUC__)
#ifndef __BEOS__
/* both GCC and MSVC are kinda stupid about rounding/casting to int.
Because of encapsulation constraints (GCC can't see inside the asm
block and so we end up doing stupid things like a store/load that
...
...
@@ -95,6 +97,18 @@ static inline int vorbis_ftoi(double f){ /* yes, double! Otherwise,
return
(
i
);
}
#else
/* this is for beos */
static
int
vorbis_ftoi
(
double
f
){
return
(
int
)(
f
+
.
5
);
}
/* We don't have special code for this compiler/arch, so do it the slow way */
#define vorbis_fpu_setround(vorbis_fpu_control) {}
#define vorbis_fpu_restore(vorbis_fpu_control) {}
#endif
#else
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment