Attachments you submit will be routed for moderation. If you have an account, please
log in first.
| File test.c,
224 bytes
(added by hailfinger, 3 years ago) |
|
test attachment
|
| Line | |
|---|
| 1 | #include <stdio.h> |
|---|
| 2 | #include <stdint.h> |
|---|
| 3 | |
|---|
| 4 | void u64function(uint64_t bar) |
|---|
| 5 | { |
|---|
| 6 | printf("%llx\n", bar); |
|---|
| 7 | } |
|---|
| 8 | |
|---|
| 9 | int main() |
|---|
| 10 | { |
|---|
| 11 | uint32_t hi = 0xdeadbeef; |
|---|
| 12 | uint32_t lo = 0xcafebabe; |
|---|
| 13 | u64function((((uint64_t) hi) << 32) | lo); |
|---|
| 14 | return 0; |
|---|
| 15 | } |
|---|
Download in other formats: