Changeset 873 for trunk/src/half.h


Ignore:
Timestamp:
Aug 29, 2011, 2:07:56 AM (10 years ago)
Author:
sam
Message:

core: implement array versions of the float / half conversion routines.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/half.h

    r872 r873  
    1717#define __LOL_HALF_H__
    1818
     19#include <cstdio>
    1920#include <stdint.h>
    2021
     
    5556    operator float() const;
    5657    inline operator int() const { return (int)(float)*this; }
     58
     59    /* 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);
    5762
    5863    /* Operations */
Note: See TracChangeset for help on using the changeset viewer.