| 843 | |
| 844 | |
| 845 | void BTR_complement_key(temporary_key* key) |
| 846 | { |
| 847 | /************************************** |
| 848 | * |
| 849 | * B T R _ c o m p l e m e n t _ k e y |
| 850 | * |
| 851 | ************************************** |
| 852 | * |
| 853 | * Functional description |
| 854 | * Negate a key for descending index. |
| 855 | * |
| 856 | **************************************/ |
| 857 | do |
| 858 | { |
| 859 | UCHAR* p = key->key_data; |
| 860 | for (const UCHAR* const end = p + key->key_length; p < end; p++) |
| 861 | *p ^= -1; |
| 862 | } while (key = key->key_next.get()); |
| 863 | } |
| 864 | |
| 865 | |
| 866 | void BTR_create(thread_db* tdbb, |
no test coverage detected