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

Side by Side Diff: source/libvpx/build/make/rtcd.sh

Issue 54923004: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 7 years, 1 month 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/libvpx/build/make/configure.sh ('k') | source/libvpx/build/make/thumb.pm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 self=$0 2 self=$0
3 3
4 usage() { 4 usage() {
5 cat <<EOF >&2 5 cat <<EOF >&2
6 Usage: $self [options] FILE 6 Usage: $self [options] FILE
7 7
8 Reads the Run Time CPU Detections definitions from FILE and generates a 8 Reads the Run Time CPU Detections definitions from FILE and generates a
9 C header file on stdout. 9 C header file on stdout.
10 10
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 determine_indirection c $ALL_ARCHS 283 determine_indirection c $ALL_ARCHS
284 cat <<EOF 284 cat <<EOF
285 $(common_top) 285 $(common_top)
286 #include "vpx_config.h" 286 #include "vpx_config.h"
287 287
288 #ifdef RTCD_C 288 #ifdef RTCD_C
289 static void setup_rtcd_internal(void) 289 static void setup_rtcd_internal(void)
290 { 290 {
291 $(set_function_pointers c $ALL_ARCHS) 291 $(set_function_pointers c $ALL_ARCHS)
292 #if HAVE_DSPR2 292 #if HAVE_DSPR2
293 #if CONFIG_VP8
293 void dsputil_static_init(); 294 void dsputil_static_init();
294 dsputil_static_init(); 295 dsputil_static_init();
295 #endif 296 #endif
297 #if CONFIG_VP9
298 void vp9_dsputil_static_init();
299 vp9_dsputil_static_init();
300 #endif
301 #endif
296 } 302 }
297 #endif 303 #endif
298 $(common_bottom) 304 $(common_bottom)
299 EOF 305 EOF
300 } 306 }
301 307
302 unoptimized() { 308 unoptimized() {
303 determine_indirection c 309 determine_indirection c
304 cat <<EOF 310 cat <<EOF
305 $(common_top) 311 $(common_top)
306 #include "vpx_config.h" 312 #include "vpx_config.h"
307 313
308 #ifdef RTCD_C 314 #ifdef RTCD_C
309 static void setup_rtcd_internal(void) 315 static void setup_rtcd_internal(void)
310 { 316 {
311 $(set_function_pointers c) 317 $(set_function_pointers c)
312 } 318 }
313 #endif 319 #endif
314 $(common_bottom) 320 $(common_bottom)
315 EOF 321 EOF
316 322
317 } 323 }
318 # 324 #
319 # Main Driver 325 # Main Driver
320 # 326 #
321 require c 327 require c
322 case $arch in 328 case $arch in
323 x86) 329 x86)
324 ALL_ARCHS=$(filter mmx sse sse2 sse3 ssse3 sse4_1) 330 ALL_ARCHS=$(filter mmx sse sse2 sse3 ssse3 sse4_1 avx avx2)
325 x86 331 x86
326 ;; 332 ;;
327 x86_64) 333 x86_64)
328 ALL_ARCHS=$(filter mmx sse sse2 sse3 ssse3 sse4_1) 334 ALL_ARCHS=$(filter mmx sse sse2 sse3 ssse3 sse4_1 avx avx2)
329 REQUIRES=${REQUIRES:-mmx sse sse2} 335 REQUIRES=${REQUIRES:-mmx sse sse2}
330 require $(filter $REQUIRES) 336 require $(filter $REQUIRES)
331 x86 337 x86
332 ;; 338 ;;
333 mips32) 339 mips32)
334 ALL_ARCHS=$(filter mips32) 340 ALL_ARCHS=$(filter mips32)
335 dspr2=$([ -f "$config_file" ] && eval echo $(grep HAVE_DSPR2 "$config_file") ) 341 dspr2=$([ -f "$config_file" ] && eval echo $(grep HAVE_DSPR2 "$config_file") )
336 HAVE_DSPR2="${dspr2#*=}" 342 HAVE_DSPR2="${dspr2#*=}"
337 if [ "$HAVE_DSPR2" = "yes" ]; then 343 if [ "$HAVE_DSPR2" = "yes" ]; then
338 ALL_ARCHS=$(filter mips32 dspr2) 344 ALL_ARCHS=$(filter mips32 dspr2)
339 fi 345 fi
340 mips 346 mips
341 ;; 347 ;;
342 armv5te) 348 armv5te)
343 ALL_ARCHS=$(filter edsp) 349 ALL_ARCHS=$(filter edsp)
344 arm 350 arm
345 ;; 351 ;;
346 armv6) 352 armv6)
347 ALL_ARCHS=$(filter edsp media) 353 ALL_ARCHS=$(filter edsp media)
348 arm 354 arm
349 ;; 355 ;;
350 armv7) 356 armv7)
351 ALL_ARCHS=$(filter edsp media neon) 357 ALL_ARCHS=$(filter edsp media neon)
352 arm 358 arm
353 ;; 359 ;;
354 *) 360 *)
355 unoptimized 361 unoptimized
356 ;; 362 ;;
357 esac 363 esac
OLDNEW
« no previous file with comments | « source/libvpx/build/make/configure.sh ('k') | source/libvpx/build/make/thumb.pm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698