File: half.c

package info (click to toggle)
imath 3.1.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,468 kB
  • sloc: cpp: 44,687; ansic: 171; sh: 153; python: 60; makefile: 32
file content (12 lines) | stat: -rw-r--r-- 150 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#include <Imath/half.h>

void
half_example()
{
    float f = 3.5f;
  
    half h = imath_float_to_half (f)

    float hh = imath_half_to_float (h)
}