Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use null pointers for or_null #3267

Merged
merged 19 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Change CODE_UNBOXED_INT64 and CODE_NULL
  • Loading branch information
d-kalinichenko committed Jan 15, 2025
commit ce49846a40d9f132803fe454289af427fee77dd6
5 changes: 3 additions & 2 deletions runtime/caml/intext.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@
#define OLD_CODE_CUSTOM 0x12 // no longer supported
#define CODE_CUSTOM_LEN 0x18
#define CODE_CUSTOM_FIXED 0x19
#define CODE_UNBOXED_INT64 0x1a
#define CODE_NULL 0x1b

#define CODE_UNBOXED_INT64 0x1f // Jane Street extensions
#define CODE_NULL 0x1e

#if ARCH_FLOAT_ENDIANNESS == 0x76543210
#define CODE_DOUBLE_NATIVE CODE_DOUBLE_BIG
Expand Down
5 changes: 3 additions & 2 deletions runtime4/caml/intext.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@
#define CODE_CUSTOM 0x12 /* deprecated */
#define CODE_CUSTOM_LEN 0x18
#define CODE_CUSTOM_FIXED 0x19
#define CODE_UNBOXED_INT64 0x1a
#define CODE_NULL 0x1b

#define CODE_UNBOXED_INT64 0x1f // Jane Street extensions
#define CODE_NULL 0x1e

#if ARCH_FLOAT_ENDIANNESS == 0x76543210
#define CODE_DOUBLE_NATIVE CODE_DOUBLE_BIG
Expand Down