-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimd.cpp
More file actions
42 lines (32 loc) · 856 Bytes
/
Copy pathsimd.cpp
File metadata and controls
42 lines (32 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/**
*
* SIMD objects for Node.js
*
*/
#ifndef BUILDING_NODE_EXTENSION
#define BUILDING_NODE_EXTENSION
#endif
#include "arraywrappers.h"
#include "typewrappers.h"
#include <v8.h>
#include <node.h>
using namespace v8;
void init( Handle<Object> exports, Handle<Object> module )
{
// types
Float64x4::Export(exports,"Float64x4");
Float32x8::Export(exports,"Float32x8");
// float arrays
Float64SIMDArray::Export(exports,"Float64SIMDArray");
// Float32SIMDArray::Export(exports);
// integer arrays
// Int64SIMDArray::Export(exports);
Int32SIMDArray::Export(exports,"Int32SIMDArray");
// Int16SIMDArray::Export(exports);
// Int8SIMDArray::Export(exports);
// Uint64SIMDArray::Export(exports);
// Uint32SIMDArray::Export(exports);
// Uint16SIMDArray::Export(exports);
// Uint8SIMDArray::Export(exports);
}
NODE_MODULE( simd, init )