Changeset 877 for trunk/src/half.h


Ignore:
Timestamp:
Aug 29, 2011, 7:02:47 PM (9 years ago)
Author:
sam
Message:

test: improve the benchmark code to measure a lot more half precision
number conversions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/half.h

    r874 r877  
    2626{
    2727public:
     28    /* Constructors. Always inline so that the code can work in registers
     29     * instead of calling routines with the hidden "this" parameter. */
    2830    inline half() { }
    29 
    30     inline half(float f)
    31     {
    32         *this = makefast(f);
    33     }
     31    inline half(float f) { *this = makefast(f); }
    3432
    3533    inline int is_nan() const
     
    5856
    5957    /* Array conversions */
    60     static size_t copy(half *dst, float const *src, size_t nelem);
    61     static size_t copy(float *dst, half const *src, size_t nelem);
     58    static size_t convert(half *dst, float const *src, size_t nelem);
     59    static size_t convert(float *dst, half const *src, size_t nelem);
    6260
    6361    /* Operations */
Note: See TracChangeset for help on using the changeset viewer.