pseudo-double-c

A relatively fast C and C++ 64 bit floating point library written using only integer operations for cross platform consistency. Tested with gcc/clang/Visual Studio, on x86-64/ARMv8 (64 bit)

Latest version: 2024.01.17

Add to xmake.lua

add_requires("pseudo-double-c 2024.01.17")

Learn how to add and link packages with Xmake →

Information

License
BSD-3-Clause
Recipe updated
2024-02-15T13:41:21.000Z

Platforms

  • linux: x86_64
  • bsd: i386, x86_64, arm, arm64, ppc, ppc64, ppc64el, riscv64, sparc64
  • wasm: wasm32, wasm64
  • windows: x64
  • android: arm64-v8a
  • macosx: x86_64, arm64

Options

pd_error_check
This enables error checking in the library, defaulting to true if not set. · Type: boolean · Default: true
pseudo_double_exp_bits
This sets the number of bits in the exponent, defaulting to 16 if not set. · Type: string · Default: 16 · Values: 8, 16, 32

Versions

  • 2024.01.17

Dependencies

No dependencies declared.

Install with xrepo

Install the package independently of a project and inspect its available configuration.

install

xrepo install "pseudo-double-c 2024.01.17"

show info

xrepo info "pseudo-double-c"

Link a library to your target

Declare the requirement, then attach the library to the target that uses it.

xmake.lua

add_requires("pseudo-double-c 2024.01.17")

target("demo")
    set_kind("binary")
    add_files("src/*.cpp")
    add_packages("pseudo-double-c")

Open a package environment

Open a shell with the environment exported by this package. Use the executable names documented by the package.

enter shell

xrepo env -b "pseudo-double-c 2024.01.17" shell