Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Annotation of /branches/cuda/src/lib/common/nrrd.cxx
ViewVC logotype

Annotation of /branches/cuda/src/lib/common/nrrd.cxx

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5626 - (view) (download) (as text)

1 : jhr 5597 /*! \file nrrd.cxx
2 :     *
3 :     * \author John Reppy
4 :     */
5 :    
6 :     /*
7 :     * This code is part of the Diderot Project (http://diderot-language.cs.uchicago.edu)
8 :     *
9 :     * COPYRIGHT (c) 2016 The University of Chicago
10 :     * All rights reserved.
11 :     */
12 :    
13 : adrianlehm 5619 #include "diderot/base.h"
14 : jhr 5597
15 :     namespace diderot {
16 :    
17 :     namespace __details {
18 :    
19 :     struct nrrd_type_info nrrd_type_info[nrrdTypeLast] = {
20 :     [nrrdTypeDefault] = {false, 0, "unknown"}, /* 0: signifies "determine output type for me" */
21 :     [nrrdTypeChar] = {false, 1, "char"}, /* 1: signed 1-byte integer */
22 :     [nrrdTypeUChar] = {false, 1, "uchar"}, /* 2: unsigned 1-byte integer */
23 :     [nrrdTypeShort] = {false, 2, "short"}, /* 3: signed 2-byte integer */
24 :     [nrrdTypeUShort] = {false, 2, "ushort"}, /* 4: unsigned 2-byte integer */
25 :     [nrrdTypeInt] = {false, 4, "int"}, /* 5: signed 4-byte integer */
26 :     [nrrdTypeUInt] = {false, 4, "uint"}, /* 6: unsigned 4-byte integer */
27 :     [nrrdTypeLLong] = {false, 8, "long"}, /* 7: signed 8-byte integer */
28 :     [nrrdTypeULLong] = {false, 8, "ulong"}, /* 8: unsigned 8-byte integer */
29 :     [nrrdTypeFloat] = {true, 4, "float"}, /* 9: 4-byte floating point */
30 :     [nrrdTypeDouble] = {true, 8, "double"}, /* 10: 8-byte floating point */
31 :     [nrrdTypeBlock] = {false, 0, "block"}, /* 11: size user defined at run time; MUST BE LAST */
32 :     };
33 :    
34 :     } // namespace __details
35 :    
36 :     } // namespace diderot

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0