Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
e94ac636
Commit
e94ac636
authored
Apr 01, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* configure.ac, modules/gui/skins2/utils/bezier.cpp:
+ check for lrintf() and fallback on rint().
parent
9af9c306
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
configure.ac
configure.ac
+1
-1
modules/gui/skins2/utils/bezier.cpp
modules/gui/skins2/utils/bezier.cpp
+4
-4
No files found.
configure.ac
View file @
e94ac636
...
...
@@ -287,7 +287,7 @@ CPPFLAGS_save="${CPPFLAGS_save} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcd
dnl Check for system libs needed
need_libc=false
AC_CHECK_FUNCS(gettimeofday select strerror strtod strtol isatty vasprintf asprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 if_nametoindex atoll getenv putenv setenv gmtime_r ctime_r localtime_r)
AC_CHECK_FUNCS(gettimeofday select strerror strtod strtol isatty vasprintf asprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 if_nametoindex atoll getenv putenv setenv gmtime_r ctime_r localtime_r
lrintf
)
dnl Check for usual libc functions
AC_CHECK_FUNCS(strdup strndup atof lseek)
...
...
modules/gui/skins2/utils/bezier.cpp
View file @
e94ac636
...
...
@@ -22,12 +22,13 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#include <vlc/vlc.h>
#include "bezier.hpp"
#include <math.h>
#ifdef sun
# include "solaris_specific.h" // for lrintf
#endif
#ifndef HAVE_LRINTF
# define lrintf(a) (int)rint(a)
#endif
Bezier
::
Bezier
(
intf_thread_t
*
p_intf
,
const
vector
<
float
>
&
rAbscissas
,
const
vector
<
float
>
&
rOrdinates
,
Flag_t
flag
)
...
...
@@ -211,4 +212,3 @@ inline float Bezier::power( float x, int n ) const
else
return
1
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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