| OLD | NEW |
| 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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 $(set_function_pointers c) | 326 $(set_function_pointers c) |
| 327 } | 327 } |
| 328 #endif | 328 #endif |
| 329 $(common_bottom) | 329 $(common_bottom) |
| 330 EOF | 330 EOF |
| 331 | 331 |
| 332 } | 332 } |
| 333 # | 333 # |
| 334 # Main Driver | 334 # Main Driver |
| 335 # | 335 # |
| 336 ALL_FUNCS=$(export LC_ALL=C; echo $ALL_FUNCS | tr ' ' '\n' | sort |tr '\n' ' ') |
| 336 require c | 337 require c |
| 337 case $arch in | 338 case $arch in |
| 338 x86) | 339 x86) |
| 339 ALL_ARCHS=$(filter mmx sse sse2 sse3 ssse3 sse4_1 avx avx2) | 340 ALL_ARCHS=$(filter mmx sse sse2 sse3 ssse3 sse4_1 avx avx2) |
| 340 x86 | 341 x86 |
| 341 ;; | 342 ;; |
| 342 x86_64) | 343 x86_64) |
| 343 ALL_ARCHS=$(filter mmx sse sse2 sse3 ssse3 sse4_1 avx avx2) | 344 ALL_ARCHS=$(filter mmx sse sse2 sse3 ssse3 sse4_1 avx avx2) |
| 344 REQUIRES=${REQUIRES:-mmx sse sse2} | 345 REQUIRES=${REQUIRES:-mmx sse sse2} |
| 345 require $(filter $REQUIRES) | 346 require $(filter $REQUIRES) |
| (...skipping 17 matching lines...) Expand all Loading... |
| 363 arm | 364 arm |
| 364 ;; | 365 ;; |
| 365 armv7) | 366 armv7) |
| 366 ALL_ARCHS=$(filter edsp media neon) | 367 ALL_ARCHS=$(filter edsp media neon) |
| 367 arm | 368 arm |
| 368 ;; | 369 ;; |
| 369 *) | 370 *) |
| 370 unoptimized | 371 unoptimized |
| 371 ;; | 372 ;; |
| 372 esac | 373 esac |
| OLD | NEW |