Changeset f858ca5


Ignore:
Timestamp:
Jun 5, 2025, 10:47:33 PM (4 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
8236f00
Parents:
e0350e0
Message:

make printing ARM vector floating-point types conditional on architecture aarch64

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/prelude/prototypes.awk

    re0350e0 rf858ca5  
    1010# Created On       : Sat May 16 07:57:37 2015
    1111# Last Modified By : Peter A. Buhr
    12 # Last Modified On : Mon Mar 10 17:52:39 2025
    13 # Update Count     : 73
     12# Last Modified On : Thu Jun  5 22:35:57 2025
     13# Update Count     : 74
    1414#
    1515
     
    162162
    163163        # assorted gcc builltin types
    164         # ARM vector floating-point types, strip off text "__builtin.*__"
    165         printf( "struct __builtin__Float32x4_t__ {};\n" );
    166         printf( "struct __builtin__Float64x2_t__ {};\n" );
    167         printf( "struct __builtin__SVFloat32_t__ {};\n" );
    168         printf( "struct __builtin__SVFloat64_t__ {};\n" );
    169         printf( "struct __builtin__SVBool_t__ {};\n" );
     164        # ARM vector floating-point types
     165        "uname -p" | getline processor                                  # get processor architecture
     166        if ( processor == "aarch64" ) {
     167                printf( "struct __Float32x4_t;\n" );
     168                printf( "struct __Float64x2_t;\n" );
     169                printf( "struct __SVFloat32_t;\n" );
     170                printf( "struct __SVFloat64_t;\n" );
     171                printf( "struct __SVBool_t;\n" );
     172        } # if
    170173} # END
    171174
Note: See TracChangeset for help on using the changeset viewer.