Liking cljdoc? Tell your friends :D

clj-commons.primitive-math


*cljmacro

(* x)
(* x y)
(* x y & rest)

A primitive macro version of *

A primitive macro version of `*`
sourceraw docstring

+cljmacro

(+ x)
(+ x y)
(+ x y & rest)

A primitive macro version of +

A primitive macro version of `+`
sourceraw docstring

-cljmacro

(- x)
(- x y)
(- x y & rest)

A primitive macro version of -

A primitive macro version of `-`
sourceraw docstring

/cljmacro

(/ x)
(/ x y)
(/ x y & rest)

A primitive macro version of /

A primitive macro version of `/`
sourceraw docstring

<cljmacro

(< x)
(< x y)
(< x y & rest)

A primitive macro version of <

A primitive macro version of `<`
sourceraw docstring

<<cljmacro

(<< n bits)

An alias for bit-shift-left.

An alias for `bit-shift-left`.
sourceraw docstring

<=cljmacro

(<= x)
(<= x y)
(<= x y & rest)

A primitive macro version of <=

A primitive macro version of `<=`
sourceraw docstring

==cljmacro

(== x)
(== x y)
(== x y & rest)

A primitive macro version of ==

A primitive macro version of `==`
sourceraw docstring

>cljmacro

(> x)
(> x y)
(> x y & rest)

A primitive macro version of >

A primitive macro version of `>`
sourceraw docstring

>=cljmacro

(>= x)
(>= x y)
(>= x y & rest)

A primitive macro version of >=

A primitive macro version of `>=`
sourceraw docstring

>>cljmacro

(>> n bits)

An alias for bit-shift-right.

An alias for `bit-shift-right`.
sourceraw docstring

>>>cljmacro

(>>> n bits)

An alias for bit-unsigned-shift-right.

An alias for `bit-unsigned-shift-right`.
sourceraw docstring

bit-andcljmacro

(bit-and x)
(bit-and x y)
(bit-and x y & rest)

A primitive macro version of bit-and

A primitive macro version of `bit-and`
sourceraw docstring

bit-notcljmacro

(bit-not x)

A primitive macro version of bit-not.

A primitive macro version of `bit-not`.
sourceraw docstring

bit-orcljmacro

(bit-or x)
(bit-or x y)
(bit-or x y & rest)

A primitive macro version of bit-or

A primitive macro version of `bit-or`
sourceraw docstring

bit-shift-leftcljmacro

(bit-shift-left n bits)

A primitive macro version of bit-shift-left.

A primitive macro version of `bit-shift-left`.
sourceraw docstring

bit-shift-rightcljmacro

(bit-shift-right n bits)

A primitive macro version of bit-shift-right.

A primitive macro version of `bit-shift-right`.
sourceraw docstring

bit-xorcljmacro

(bit-xor x)
(bit-xor x y)
(bit-xor x y & rest)

A primitive macro version of bit-xor

A primitive macro version of `bit-xor`
sourceraw docstring

bool-andcljmacro

(bool-and x)
(bool-and x y)
(bool-and x y & rest)

A primitive macro version of bool-and

A primitive macro version of `bool-and`
sourceraw docstring

bool-notcljmacro

(bool-not x)

A primitive macro version of not.

A primitive macro version of `not`.
sourceraw docstring

bool-orcljmacro

(bool-or x)
(bool-or x y)
(bool-or x y & rest)

A primitive macro version of bool-or

A primitive macro version of `bool-or`
sourceraw docstring

bool-xorcljmacro

(bool-xor x)
(bool-xor x y)
(bool-xor x y & rest)

A primitive macro version of bool-xor

A primitive macro version of `bool-xor`
sourceraw docstring

byteclj

(byte x)

Truncates a number to a byte, will not check for overflow.

Truncates a number to a byte, will not check for overflow.
sourceraw docstring

byte->ubyteclj

(byte->ubyte x)

Converts a byte to an unsigned byte.

Converts a byte to an unsigned byte.
sourceraw docstring

deccljmacro

(dec x)

A primitive macro version of dec.

A primitive macro version of `dec`.
sourceraw docstring

divcljmacro

(div x)
(div x y)
(div x y & rest)

A primitive macro version of div

A primitive macro version of `div`
sourceraw docstring

doubleclj

(double x)

Converts a number to a double.

Converts a number to a double.
sourceraw docstring

double->longclj

(double->long x)

Converts a double to a long.

Converts a double to a long.
sourceraw docstring

false?cljmacro

(false? x)

A primitive macro version of false?.

A primitive macro version of `false?`.
sourceraw docstring

floatclj

(float x)

Truncates a number to a float, will not check for overflow.

Truncates a number to a float, will not check for overflow.
sourceraw docstring

float->intclj

(float->int x)

Converts a float to an integer.

Converts a float to an integer.
sourceraw docstring

inccljmacro

(inc x)

A primitive macro version of inc.

A primitive macro version of `inc`.
sourceraw docstring

intclj

(int x)

Truncates a number to an int, will not check for overflow.

Truncates a number to an int, will not check for overflow.
sourceraw docstring

int->floatclj

(int->float x)

Converts an integer to a float.

Converts an integer to a float.
sourceraw docstring

int->uintclj

(int->uint x)

Converts an integer to an unsigned integer.

Converts an integer to an unsigned integer.
sourceraw docstring

longclj

(long x)

Converts a number to a long.

Converts a number to a long.
sourceraw docstring

long->doubleclj

(long->double x)

Converts a long to a double.

Converts a long to a double.
sourceraw docstring

long->ulongclj

(long->ulong x)

Converts a long to an unsigned long.

Converts a long to an unsigned long.
sourceraw docstring

maxcljmacro

(max x)
(max x y)
(max x y & rest)

A primitive macro version of max

A primitive macro version of `max`
sourceraw docstring

mincljmacro

(min x)
(min x y)
(min x y & rest)

A primitive macro version of min

A primitive macro version of `min`
sourceraw docstring

not==cljmacro

(not== x)
(not== x y)
(not== x y & rest)

A primitive macro complement of ==

A primitive macro complement of `==`
sourceraw docstring

remcljmacro

(rem n div)

A primitive macro version of rem.

A primitive macro version of `rem`.
sourceraw docstring

reverse-doubleclj

(reverse-double x)

Inverts the endianness of a double.

Inverts the endianness of a double.
sourceraw docstring

reverse-floatclj

(reverse-float x)

Inverts the endianness of a float.

Inverts the endianness of a float.
sourceraw docstring

reverse-intclj

(reverse-int x)

Inverts the endianness of an int.

Inverts the endianness of an int.
sourceraw docstring

reverse-longclj

(reverse-long x)

Inverts the endianness of a long.

Inverts the endianness of a long.
sourceraw docstring

reverse-shortclj

(reverse-short x)

Inverts the endianness of a short.

Inverts the endianness of a short.
sourceraw docstring

shortclj

(short x)

Truncates a number to a short, will not check for overflow.

Truncates a number to a short, will not check for overflow.
sourceraw docstring

short->ushortclj

(short->ushort x)

Converts a short to an unsigned short.

Converts a short to an unsigned short.
sourceraw docstring

true?cljmacro

(true? x)

A primitive macro version of true?.

A primitive macro version of `true?`.
sourceraw docstring

ubyte->byteclj

(ubyte->byte x)

Converts an unsigned byte to a byte.

Converts an unsigned byte to a byte.
sourceraw docstring

uint->intclj

(uint->int x)

Converts an unsigned integer to an integer.

Converts an unsigned integer to an integer.
sourceraw docstring

ulong->longclj

(ulong->long x)

Converts an unsigned long to a long.

Converts an unsigned long to a long.
sourceraw docstring

unsigned-bit-shift-rightcljmacro

(unsigned-bit-shift-right n bits)

A primitive macro which performs an unsigned right bit-shift.

A primitive macro which performs an unsigned right bit-shift.
sourceraw docstring

unuse-primitive-operatorsclj

(unuse-primitive-operators)

Undoes the work of use-primitive-operators. This is idempotent.

Undoes the work of `use-primitive-operators`.  This is idempotent.
sourceraw docstring

use-primitive-operatorsclj

(use-primitive-operators)

Replaces Clojure's arithmetic and number coercion functions with primitive equivalents. These are defined as macros, so they cannot be used as higher-order functions. This is an idempotent operation..

Replaces Clojure's arithmetic and number coercion functions with primitive equivalents.  These are
defined as macros, so they cannot be used as higher-order functions.  This is an idempotent operation..
sourceraw docstring

ushort->shortclj

(ushort->short x)

Converts an unsigned short to a short.

Converts an unsigned short to a short.
sourceraw docstring

zero?cljmacro

(zero? x)

A primitive macro version of zero?.

A primitive macro version of `zero?`.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close