File tree Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Original file line number Diff line number Diff line change @@ -12,3 +12,8 @@ ifeq ($(CORE), ARMV6)
12
12
CCOMMON_OPT += -mfpu=vfp
13
13
FCOMMON_OPT += -mfpu=vfp
14
14
endif
15
+
16
+ ifdef HAVE_NEON
17
+ CCOMMON_OPT += -mfpu=neon
18
+ FCOMMON_OPT += -mfpu=neon
19
+ endif
Original file line number Diff line number Diff line change @@ -1405,8 +1405,41 @@ int main(int argc, char *argv[]){
1405
1405
1406
1406
printf ("NUM_CORES=%d\n" , get_num_cores ());
1407
1407
1408
- #if defined(__arm__ ) && !defined(FORCE )
1408
+ #if defined(__arm__ )
1409
+ #if !defined(FORCE )
1410
+ fprintf (stderr ,"get features!\n" );
1409
1411
get_features ();
1412
+ #else
1413
+ fprintf (stderr ,"split archconfig!\n" );
1414
+ sprintf (buffer , "%s" , ARCHCONFIG );
1415
+
1416
+ p = & buffer [0 ];
1417
+
1418
+ while (* p ) {
1419
+ if ((* p == '-' ) && (* (p + 1 ) == 'D' )) {
1420
+ p += 2 ;
1421
+ if (* p != 'H' ) {
1422
+ while ( (* p != ' ' ) && (* p != '-' ) && (* p != '\0' ) && (* p != '\n' )) {p ++ ; }
1423
+ if (* p == '-' ) continue ;
1424
+ }
1425
+ while ((* p != ' ' ) && (* p != '\0' )) {
1426
+
1427
+ if (* p == '=' ) {
1428
+ printf ("=" );
1429
+ p ++ ;
1430
+ while ((* p != ' ' ) && (* p != '\0' )) {
1431
+ printf ("%c" , * p );
1432
+ p ++ ;
1433
+ }
1434
+ } else {
1435
+ printf ("%c" , * p );
1436
+ p ++ ;
1437
+ if ((* p == ' ' ) || (* p == '\0' )) printf ("=1\n" );
1438
+ }
1439
+ }
1440
+ } else p ++ ;
1441
+ }
1442
+ #endif
1410
1443
#endif
1411
1444
1412
1445
You can’t perform that action at this time.
0 commit comments