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

Side by Side Diff: Samples/multimedia/directshow/baseclasses/wxutil.cpp

Issue 1524703006: WinSDK samples: Workaround warnings for Clang on Windows. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc/deps/third_party/winsdk_samples_v71@master
Patch Set: Created 5 years 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
OLDNEW
1 //------------------------------------------------------------------------------ 1 //------------------------------------------------------------------------------
2 // File: WXUtil.cpp 2 // File: WXUtil.cpp
3 // 3 //
4 // Desc: DirectShow base classes - implements helper classes for building 4 // Desc: DirectShow base classes - implements helper classes for building
5 // multimedia filters. 5 // multimedia filters.
6 // 6 //
7 // Copyright (c) 1992-2001 Microsoft Corporation. All rights reserved. 7 // Copyright (c) 1992-2001 Microsoft Corporation. All rights reserved.
8 //------------------------------------------------------------------------------ 8 //------------------------------------------------------------------------------
9 9
10 10
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 374
375 375
376 #define MEMORY_ALIGNMENT 4 376 #define MEMORY_ALIGNMENT 4
377 #define MEMORY_ALIGNMENT_LOG2 2 377 #define MEMORY_ALIGNMENT_LOG2 2
378 #define MEMORY_ALIGNMENT_MASK MEMORY_ALIGNMENT - 1 378 #define MEMORY_ALIGNMENT_MASK MEMORY_ALIGNMENT - 1
379 379
380 void * __stdcall memmoveInternal(void * dst, const void * src, size_t count) 380 void * __stdcall memmoveInternal(void * dst, const void * src, size_t count)
381 { 381 {
382 void * ret = dst; 382 void * ret = dst;
383 383
384 #ifdef _X86_ 384 #if defined(_X86_) && !defined(__clang__)
385 if (dst <= src || (char *)dst >= ((char *)src + count)) { 385 if (dst <= src || (char *)dst >= ((char *)src + count)) {
386 386
387 /* 387 /*
388 * Non-Overlapping Buffers 388 * Non-Overlapping Buffers
389 * copy from lower addresses to higher addresses 389 * copy from lower addresses to higher addresses
390 */ 390 */
391 _asm { 391 _asm {
392 mov esi,src 392 mov esi,src
393 mov edi,dst 393 mov edi,dst
394 mov ecx,count 394 mov ecx,count
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 if( (osverinfo.dwMajorVersion > 5) || 760 if( (osverinfo.dwMajorVersion > 5) ||
761 ( (osverinfo.dwMajorVersion == 5) && (osverinfo.dwMinorVersion >= 1) ) ) { 761 ( (osverinfo.dwMajorVersion == 5) && (osverinfo.dwMinorVersion >= 1) ) ) {
762 return true; 762 return true;
763 } 763 }
764 } 764 }
765 765
766 return false; 766 return false;
767 } 767 }
768 768
769 769
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698