• OCaml logo OCaml logo
  • Learn
  • Packages
  • Community
  • Blog
  • Playground
  • Searching...
    Or go to: Standard Library API
  • Learn
  • Packages
  • Community
  • Blog
  • Playground
  • Get started
  • ctypes

  • Documentation
  • ctypes lib
  • Ctypes .TYPE .Uintptr .Infix Module
package ctypes
  • cstubs
    • Cstubs
      • BINDINGS
        • F
      • Types
        • BINDINGS
          • F
            • Intptr
              • Infix
            • Ptrdiff
              • Infix
            • Uintptr
              • Infix
    • Cstubs_inverted
      • BINDINGS
        • F
      • INTERNAL
    • Cstubs_structs
      • BINDINGS
        • F
          • Intptr
            • Infix
          • Ptrdiff
            • Infix
          • Uintptr
            • Infix
      • TYPE
        • Intptr
          • Infix
        • Ptrdiff
          • Infix
        • Uintptr
          • Infix
  • ctypes
    • ComplexL
    • Cstubs_internals
    • Ctypes
      • CArray
      • FOREIGN
      • Intptr
        • Infix
      • Ptrdiff
        • Infix
      • Root
      • TYPE
        • Intptr
          • Infix
        • Ptrdiff
          • Infix
        • Uintptr
          • Infix
      • Uintptr
        • Infix
    • Ctypes_primitive_types
    • Ctypes_static
    • Ctypes_structs
      • S
    • LDouble
    • PosixTypes
      • Dev
        • Infix
      • Ino
        • Infix
      • Mode
        • Infix
      • Nlink
        • Infix
      • Off
        • Infix
      • Pid
        • Infix
      • Ssize
        • Infix
      • Time
        • Infix
  • ctypes-top
    • Ctypes_printers
Legend:
Library
Module
Module type
Parameter
Class
Class type
val (+) : t -> t -> t

Addition. See add.

val (-) : t -> t -> t

Subtraction. See sub.

val (*) : t -> t -> t

Multiplication. See mul.

val (/) : t -> t -> t

Division. See div.

val (mod) : t -> t -> t

Integer remainder. See rem.

val (land) : t -> t -> t

Bitwise logical and. See logand.

val (lor) : t -> t -> t

Bitwise logical or. See logor.

val (lxor) : t -> t -> t

Bitwise logical exclusive or. See logxor.

val (lsl) : t -> int -> t

x lsl y shifts x to the left by y bits. See shift_left.

val (lsr) : t -> int -> t

x lsr y shifts x to the right by y bits. See shift_right.

Footer

OCaml

Innovation. Community. Security.

GitHub Discord Twitter Peertube RSS

About Us

  • Industrial Users
  • Academic Users
  • Why OCaml

Resources

  • Get Started
  • Language Manual
  • Standard Library API
  • Books
  • Releases

Community

  • Blog
  • Jobs

Policies

  • Carbon Footprint
  • Governance
  • Privacy
  • Code of Conduct