cpu.c 279 Bytes
Newer Older
rusty1s's avatar
rusty1s committed
1
2
3
4
#include <TH/TH.h>

#define scatter_(NAME) TH_CONCAT_4(scatter_, NAME, _, Real)

rusty1s's avatar
rusty1s committed
5
inline void assertInBoundaries(int idx, int size, long *free) {
rusty1s's avatar
rusty1s committed
6
7
8
  if (idx < 0 || idx >= size) { THFree(free); THError("Invalid index"); }
}

rusty1s's avatar
rusty1s committed
9
#include "generic/cpu.c"
rusty1s's avatar
rusty1s committed
10
#include "THGenerateAllTypes.h"