diff options
author | Eric Wong <normalperson@yhbt.net> | 2006-07-15 13:42:57 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2006-07-15 13:42:57 +0000 |
commit | b4df8b8f880648e63781395e1a350f258b809a18 (patch) | |
tree | 3e26b8faf86cf68f35506eb3e59b73d9477211e7 /src/inputPlugins/mpc_plugin.c | |
parent | 563e4c95fdea05dc162442d6b3a66e3fa0a13a48 (diff) | |
download | mpd-b4df8b8f880648e63781395e1a350f258b809a18.tar.gz mpd-b4df8b8f880648e63781395e1a350f258b809a18.tar.xz mpd-b4df8b8f880648e63781395e1a350f258b809a18.zip |
De-inline non-trivial, non-performance-critical functions
Functions that should stay inlined should have an explanation
attached to them.
git-svn-id: https://svn.musicpd.org/mpd/trunk@4355 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/inputPlugins/mpc_plugin.c')
-rw-r--r-- | src/inputPlugins/mpc_plugin.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/inputPlugins/mpc_plugin.c b/src/inputPlugins/mpc_plugin.c index 30878fc16..253ed0891 100644 --- a/src/inputPlugins/mpc_plugin.c +++ b/src/inputPlugins/mpc_plugin.c @@ -82,7 +82,8 @@ static mpc_int32_t mpc_getsize_cb(void * vdata) { return data->inStream->size; } -inline mpd_sint16 convertSample(MPC_SAMPLE_FORMAT sample) { +/* this _looks_ performance-critical, don't de-inline -- eric */ +static inline mpd_sint16 convertSample(MPC_SAMPLE_FORMAT sample) { /* only doing 16-bit audio for now */ mpd_sint32 val; |