Changeset ebb1489 in mainline for uspace/lib/c/test/uuid.c
- Timestamp:
- 2024-10-13T08:23:40Z (8 weeks ago)
- Children:
- 0472cf17
- Parents:
- 2a0c827c (diff), b3b79981 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- boba-buba <120932204+boba-buba@…> (2024-10-13 08:23:40)
- git-committer:
- GitHub <noreply@…> (2024-10-13 08:23:40)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/test/uuid.c
r2a0c827c rebb1489 50 50 static bool uuid_valid(uuid_t uuid) 51 51 { 52 if (!( uuid.b[6] & 0x40)) {52 if (!((uuid.time_hi_and_version & 0xf000) & 0x4000)) { 53 53 return false; 54 54 } 55 55 56 int f = (uuid. b[8] & 0x80) || (uuid.b[8]& 0x90);57 f = f || (uuid. b[8] & 0xA0) || (uuid.b[8]& 0xB0);56 int f = (uuid.clock_seq_hi_and_reserved & 0x80) || (uuid.clock_seq_hi_and_reserved & 0x90); 57 f = f || (uuid.clock_seq_hi_and_reserved & 0xA0) || (uuid.clock_seq_hi_and_reserved & 0xB0); 58 58 if (!f) { 59 59 return false;
Note:
See TracChangeset
for help on using the changeset viewer.