summaryrefslogtreecommitdiff
path: root/src/pulsecore/cpu-x86.c
Commit message (Collapse)AuthorAgeFilesLines
* core-util, cpu-x86: use __get_cpuid() instead of homegrown assemblyTanu Kaskinen2017-12-071-20/+17
| | | | | | | | | | | | | | | The get_cpuid() function in cpu-x86.c was buggy on x86-64. When building without optimizations, the homegrown assembly code overwrote the beginning of the function argument list on the stack. That happened to work fine on regular x86-64, but caused crashing with the x32 ABI. At least GCC and clang provide cpuid.h, which has the __get_cpuid() function that can be used instead of the homegrown assembly. The PA_REG_* constants can be removed as well, because they're not used any more. BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=103656
* update FSF addresses to FSF web pageOndrej Holecek2015-01-141-3/+1
| | | | | | | | | FSF addresses used in PA sources are no longer valid and rpmlint generates numerous warnings during packaging because of this. This patch changes all FSF addresses to FSF web page according to the GPL how-to: https://www.gnu.org/licenses/gpl-howto.en.html Done automatically by sed-ing through sources.
* Remove pa_bool_t and replace it with bool.poljar (Damir Jelić)2013-07-041-3/+3
| | | | | | | | | | | | | | | | | commands used for this (executed from the pulseaudio/src directory): find . -regex '\(.*\.[hc]\|.*\.cc\|.*\.m4\)' -not -name 'macro.h' \ -a -not -name 'reserve.[ch]' -a -not -name 'reserve-monitor.[ch]' \ -a -not -name 'glib-mainloop.c' -a -not -name 'gkt-test.c' \ -a -not -name 'glib-mainloop.c' -a -not -name 'gkt-test.c' \ -a -not -name 'poll-win32.c' -a -not -name 'thread-win32.c' \ -a -not -name 'dllmain.c' -a -not -name 'gconf-helper.c' \ -exec sed -i -e 's/\bpa_bool_t\b/bool/g' \ -e 's/\bTRUE\b/true/g' -e 's/\bFALSE\b/false/g' {} \; and: sed -i -e '181,194!s/\bpa_bool_t\b/bool/' \ -e '181,194!s/\bTRUE\b/true/' -e \ '181,194!s/\bFALSE\b/false/' pulsecore/macro.h
* tests: add cpu testDeng Zhengrong2012-08-041-1/+7
| | | | It tests only x86 architecture right now.
* Fix up according to Coding StyleMaarten Bosmans2011-03-111-14/+12
| | | | Only whitespace changes in here
* cpu: Add CPU information to pa_coreArun Raghavan2010-09-231-32/+36
| | | | | | This retains CPU information (processor type and supported features) in pa_core, so that this information can be used by modules at init time to figure out what optimisations may be used.
* cpu: check for CMOV flag before using this intsruction in assemblyLennart Poettering2010-02-091-1/+5
| | | | http://pulseaudio.org/ticket/776
* x86: also call see init for SSE2Wim Taymans2009-09-071-1/+1
|
* convert: add sse/sse2 s16 to float32ne conversionsWim Taymans2009-08-271-0/+1
|
* remap: add sse optimized mono to stereoWim Taymans2009-08-271-1/+3
|
* remap: add MMX mono to stereoWim Taymans2009-08-201-1/+3
|
* whitespace fixesWim Taymans2009-08-201-24/+25
|
* x86: keep the cpu flags localWim Taymans2009-08-201-30/+27
|
* cpu-x86: add cpu detection code and helpersWim Taymans2009-08-201-0/+122
Add CPU detection code and various macros and typdefs to make it easier to write 64 and 32 bit code.