Timeline for int128 handling in c-code, gcc / glibc / linux
Current License: CC BY-SA 4.0
14 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 17 at 16:49 | comment | added | user1018684 | good link, just learning, trying to do it meaningful, speed is not my first target, but with timing at hand it's a meaningful tool to see if functions have some exotics ... and boiling down produces knowledge. | |
| Mar 17 at 13:41 | comment | added | chux | @user1018684 Be careful in using your valuable time. | |
| Mar 17 at 12:01 | comment | added | user1018684 | in further investigation I found that accumulate in uint128 is to prefer over using negative, uint128 division by 10 has ~3 over 2 better performance than int128 / 10. Both fast ( AVX ), but significant difference. Assume reg. need to preserve the sign bit for ints, where uints can work with shifts of the complete bitfield. Evtl. similar but less significant for long and ints. | |
| Feb 1 at 14:45 | history | edited | chux | CC BY-SA 4.0 |
edited body
|
| Feb 1 at 6:15 | comment | added | chux |
@user1018684 An alternative to accumulating the value on the negative side of is to use uint128_t - if available. In general I prefer to not introduce more types in a solution unless needed.
|
|
| Feb 1 at 3:23 | comment | added | user1018684 | whow, thank you!, it'll take a while to work through this but definitely help in getting better. | |
| Jan 31 at 22:56 | history | edited | chux | CC BY-SA 4.0 |
added 196 characters in body
|
| Jan 31 at 22:49 | history | edited | chux | CC BY-SA 4.0 |
added 196 characters in body
|
| Jan 31 at 22:38 | history | edited | chux | CC BY-SA 4.0 |
added 196 characters in body
|
| Jan 31 at 22:26 | history | edited | chux | CC BY-SA 4.0 |
added 184 characters in body
|
| Jan 31 at 22:07 | history | edited | chux | CC BY-SA 4.0 |
added 478 characters in body
|
| Jan 31 at 22:00 | history | edited | chux | CC BY-SA 4.0 |
added 478 characters in body
|
| Jan 31 at 21:46 | history | edited | chux | CC BY-SA 4.0 |
added 15 characters in body
|
| Jan 31 at 21:43 | history | answered | chux | CC BY-SA 4.0 |