MCPcopy Create free account
hub / github.com/apache/arrow / reverse_char_buf

Function reverse_char_buf

cpp/src/gandiva/precompiled/string_ops.cc:1555–1564  ·  view source on GitHub ↗

The function reverse a char array in-place

Source from the content-addressed store, hash-verified

1553
1554// The function reverse a char array in-place
1555static inline void reverse_char_buf(char* buf, int32_t len) {
1556 char temp;
1557
1558 for (int32_t i = 0; i < len / 2; i++) {
1559 int32_t pos_swp = len - (1 + i);
1560 temp = buf[pos_swp];
1561 buf[pos_swp] = buf[i];
1562 buf[i] = temp;
1563 }
1564}
1565
1566// Converts a double variable to binary
1567FORCE_INLINE

Callers 4

convert_toDOUBLE_beFunction · 0.85
convert_toFLOAT_beFunction · 0.85
convert_toBIGINT_beFunction · 0.85
convert_toINT_beFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected