Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
43abbef
WIP
juliannguyen4 May 8, 2026
350a812
WIP
juliannguyen4 May 8, 2026
8e1dae2
Finish cleaning technical debt in bit_operate.c
juliannguyen4 May 15, 2026
06a8fe9
address compiler errors
juliannguyen4 May 15, 2026
9b537d9
Address compiler error
juliannguyen4 May 15, 2026
cfee064
Address compiler errors. Leave TODO
juliannguyen4 May 15, 2026
9da7864
Address one more compiler error. Leave TODO
juliannguyen4 May 15, 2026
2ec22a8
Address compiler warning
juliannguyen4 May 15, 2026
eae0faa
Address test regressions
juliannguyen4 May 15, 2026
d6cfec5
Address test regressions
juliannguyen4 May 15, 2026
c4a6dcf
Replace all returns with goto statement
juliannguyen4 May 15, 2026
74e90c3
Clear up TODO comments
juliannguyen4 May 15, 2026
2e2866c
Show more specific error message if bit operation fails to be added.
juliannguyen4 May 15, 2026
b49c6c0
Make arrays static so they don't conflict with each other at link tim…
juliannguyen4 May 15, 2026
ac866bf
Add section to ignore clang-format so each macro is in its own line
juliannguyen4 May 18, 2026
e81ee07
Reuse const char * array in cdt_list_operate to save memory
juliannguyen4 May 18, 2026
532d2ce
Provide estimate of memory usage for the op_code_to_names array.
juliannguyen4 May 18, 2026
f963527
fix comment...
juliannguyen4 May 18, 2026
8691e1f
Add more tests to increase code coverage.
juliannguyen4 May 18, 2026
96ff289
Fix careless mistake
juliannguyen4 May 18, 2026
e277aab
Merge similar code paths to increase code coverage and reduce repetit…
juliannguyen4 May 18, 2026
5ec39a9
Prevent discard const warning
juliannguyen4 May 18, 2026
09e9f0f
Add missing required param
juliannguyen4 May 18, 2026
6ed0cad
Add more test coverage
juliannguyen4 May 18, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 25 additions & 18 deletions src/include/policy.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,25 +116,32 @@ enum Aerospike_map_operations {
OP_MAP_CREATE
};

// clang-format off
#define BIT_OP_NAMES_EXCEPT_RESIZE \
X(BIT_INSERT), \
X(BIT_REMOVE), \
X(BIT_SET), \
X(BIT_OR), \
X(BIT_XOR), \
X(BIT_AND), \
X(BIT_NOT), \
X(BIT_LSHIFT), \
X(BIT_RSHIFT), \
X(BIT_ADD), \
X(BIT_SUBTRACT), \
X(BIT_GET_INT), \
X(BIT_SET_INT), \
X(BIT_GET), \
X(BIT_COUNT), \
X(BIT_LSCAN), \
X(BIT_RSCAN)
// clang-format on

enum aerospike_bitwise_operations {
OP_BIT_RESIZE = 2000,
OP_BIT_INSERT,
OP_BIT_REMOVE,
OP_BIT_SET,
OP_BIT_OR,
OP_BIT_XOR,
OP_BIT_AND,
OP_BIT_NOT,
OP_BIT_LSHIFT,
OP_BIT_RSHIFT,
OP_BIT_ADD,
OP_BIT_SUBTRACT,
OP_BIT_GET_INT,
OP_BIT_SET_INT,
OP_BIT_GET,
OP_BIT_COUNT,
OP_BIT_LSCAN,
OP_BIT_RSCAN
#define X(op_name) OP_##op_name
X(BIT_RESIZE) = 2000,
BIT_OP_NAMES_EXCEPT_RESIZE
#undef X
};

enum aerospike_hll_operations {
Expand Down
Loading
Loading