Skip to content

Commit

Permalink
Version v0.16.2
Browse files Browse the repository at this point in the history
  • Loading branch information
d-kalinichenko committed Jul 20, 2023
1 parent afb90f9 commit 7fdc832
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion base.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opam-version: "2.0"
version: "v0.16.1"
version: "v0.16.2"
maintainer: "Jane Street developers"
authors: ["Jane Street Group, LLC"]
homepage: "https://github.com/janestreet/base"
Expand Down
14 changes: 0 additions & 14 deletions src/int_math_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,21 +185,7 @@ intnat Base_int_math_nativeint_ctz_unboxed(intnat v) {
#endif
}

CAMLprim value Base_int_math_nativeint_ctz(value v) {
return Val_int(Base_int_math_nativeint_ctz_unboxed(Nativeint_val(v)));
}

// Weak symbol declarations aren't supported on Windows.
// [caml_csel_value] is tagged as weak here for compatibility with
// [ocaml_intrinsics], which doesn't support Windows anyway.
//
// #ifdef __ELF__ excludes macOS too, but [ocaml_intrinsics] doesn't support
// macOS either. On macOS, the right attribute is [weak_import].
#ifdef __ELF__
CAMLprim value __attribute__((weak))
#else
CAMLprim value
#endif
caml_csel_value(value v_cond, value v_true, value v_false) {
return (Bool_val(v_cond) ? v_true : v_false);
}

0 comments on commit 7fdc832

Please sign in to comment.