Welcome to mirror list, hosted at ThFree Co, Russian Federation.

THCStorage.h « THC « lib - github.com/torch/cutorch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ac1cd709a712dce9b08cc4dc62de480157398160 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef THC_STORAGE_INC
#define THC_STORAGE_INC

#include "THStorage.h"
#include "THCGeneral.h"

#define THCStorage        TH_CONCAT_3(TH,CReal,Storage)
#define THCStorage_(NAME) TH_CONCAT_4(TH,CReal,Storage_,NAME)

/* fast access methods */
#define THC_STORAGE_GET(storage, idx) ((storage)->data[(idx)])
#define THC_STORAGE_SET(storage, idx, value) ((storage)->data[(idx)] = (value))

#include "generic/THCStorage.h"
#include "THCGenerateAllTypes.h"

#endif