Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(265)

Side by Side Diff: Source/platform/audio/VectorMath.cpp

Issue 400543004: Rename WebCore namespace to blink in Platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/platform/audio/VectorMath.h ('k') | Source/platform/audio/ZeroPole.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010, Google Inc. All rights reserved. 2 * Copyright (C) 2010, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 28 matching lines...) Expand all
39 #include <emmintrin.h> 39 #include <emmintrin.h>
40 #endif 40 #endif
41 41
42 #if HAVE(ARM_NEON_INTRINSICS) 42 #if HAVE(ARM_NEON_INTRINSICS)
43 #include <arm_neon.h> 43 #include <arm_neon.h>
44 #endif 44 #endif
45 45
46 #include <math.h> 46 #include <math.h>
47 #include <algorithm> 47 #include <algorithm>
48 48
49 namespace WebCore { 49 namespace blink {
50 50
51 namespace VectorMath { 51 namespace VectorMath {
52 52
53 #if OS(MACOSX) 53 #if OS(MACOSX)
54 // On the Mac we use the highly optimized versions in Accelerate.framework 54 // On the Mac we use the highly optimized versions in Accelerate.framework
55 // In 32-bit mode (__ppc__ or __i386__) <Accelerate/Accelerate.h> includes <vecL ib/vDSP_translate.h> which defines macros of the same name as 55 // In 32-bit mode (__ppc__ or __i386__) <Accelerate/Accelerate.h> includes <vecL ib/vDSP_translate.h> which defines macros of the same name as
56 // our namespaced function names, so we must handle this case differently. Other architectures (64bit, ARM, etc.) do not include this header file. 56 // our namespaced function names, so we must handle this case differently. Other architectures (64bit, ARM, etc.) do not include this header file.
57 57
58 void vsmul(const float* sourceP, int sourceStride, const float* scale, float* de stP, int destStride, size_t framesToProcess) 58 void vsmul(const float* sourceP, int sourceStride, const float* scale, float* de stP, int destStride, size_t framesToProcess)
59 { 59 {
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 *destP = std::max(std::min(*sourceP, highThreshold), lowThreshold); 678 *destP = std::max(std::min(*sourceP, highThreshold), lowThreshold);
679 sourceP += sourceStride; 679 sourceP += sourceStride;
680 destP += destStride; 680 destP += destStride;
681 } 681 }
682 } 682 }
683 683
684 #endif // OS(MACOSX) 684 #endif // OS(MACOSX)
685 685
686 } // namespace VectorMath 686 } // namespace VectorMath
687 687
688 } // namespace WebCore 688 } // namespace blink
689 689
690 #endif // ENABLE(WEB_AUDIO) 690 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/platform/audio/VectorMath.h ('k') | Source/platform/audio/ZeroPole.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698