Changeset 474d610 for tests/math.cfa


Ignore:
Timestamp:
Apr 13, 2021, 6:57:29 PM (4 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
arm-eh, jacob/cs343-translation, master
Children:
0effb6a
Parents:
e3cb4bf
Message:

add tests and expected output for integer log2 routines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/math.cfa

    re3cb4bf r474d610  
    1010// Created On       : Fri Apr 22 14:59:21 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat Feb 20 18:00:48 2021
    13 // Update Count     : 115
     12// Last Modified On : Tue Apr 13 17:28:58 2021
     13// Update Count     : 122
    1414//
    1515
     
    6969        sout | "log:" | log( 1.0F ) | log( 1.0D ) | log( 1.0L ) | nonl;
    7070        sout | log( 1.0F+1.0FI ) | log( 1.0D+1.0DI ) | log( 1.0DL+1.0LI );
     71        sout | "log2:" | log2( 1024 ) | log2( 2 \ 17u ) | log2( 2 \ 23u );
     72        sout | "log2:" | log2( 1024l ) | log2( 2l \ 17u ) | log2( 2l \ 23u );
     73        sout | "log2:" | log2( 1024ll ) | log2( 2ll \ 17u ) | log2( 2ll \ 23u );
     74        sout | "log2:" | log2( 1024l128 ) | log2( 2l128 \ 17u ) | log2( 2l128 \ 23u );
    7175        sout | "log2:" | log2( 8.0F ) | log2( 8.0D ) | log2( 8.0L );
    7276        sout | "log10:" | log10( 100.0F ) | log10( 100.0D ) | log10( 100.0L );
Note: See TracChangeset for help on using the changeset viewer.