forked from parquet-go/parquet-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
null_amd64.go
74 lines (55 loc) · 1.77 KB
/
null_amd64.go
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
//go:build !purego
package parquet
import "github.com/parquet-go/parquet-go/sparse"
//go:noescape
func nullIndex8(bits *uint64, rows sparse.Array)
//go:noescape
func nullIndex32(bits *uint64, rows sparse.Array)
//go:noescape
func nullIndex64(bits *uint64, rows sparse.Array)
//go:noescape
func nullIndex128(bits *uint64, rows sparse.Array)
func nullIndexBool(bits []uint64, rows sparse.Array) {
nullIndex8(&bits[0], rows)
}
func nullIndexInt(bits []uint64, rows sparse.Array) {
nullIndex64(&bits[0], rows)
}
func nullIndexInt32(bits []uint64, rows sparse.Array) {
nullIndex32(&bits[0], rows)
}
func nullIndexInt64(bits []uint64, rows sparse.Array) {
nullIndex64(&bits[0], rows)
}
func nullIndexUint(bits []uint64, rows sparse.Array) {
nullIndex64(&bits[0], rows)
}
func nullIndexUint32(bits []uint64, rows sparse.Array) {
nullIndex32(&bits[0], rows)
}
func nullIndexUint64(bits []uint64, rows sparse.Array) {
nullIndex64(&bits[0], rows)
}
func nullIndexUint128(bits []uint64, rows sparse.Array) {
nullIndex128(&bits[0], rows)
}
func nullIndexFloat32(bits []uint64, rows sparse.Array) {
nullIndex32(&bits[0], rows)
}
func nullIndexFloat64(bits []uint64, rows sparse.Array) {
nullIndex64(&bits[0], rows)
}
func nullIndexString(bits []uint64, rows sparse.Array) {
// We offset by an extra 8 bytes to test the lengths of string values where
// the first field is the pointer and the second is the length which we want
// to test.
nullIndex64(&bits[0], rows.Offset(8))
}
func nullIndexSlice(bits []uint64, rows sparse.Array) {
// Slice values are null if their pointer is nil, which is held in the first
// 8 bytes of the object so we can simply test 64 bits words.
nullIndex64(&bits[0], rows)
}
func nullIndexPointer(bits []uint64, rows sparse.Array) {
nullIndex64(&bits[0], rows)
}