Handbook
Glossary
vbitand ( u v -- w )
Factor handbook
»
The language
»
Numbers
»
Vector operations
»
Vector component- and bit-wise logic
Prev:
vminimum ( seq -- vmin )
Next:
vbitandn ( u v -- w )
Vocabulary
math
.
vectors
Inputs
u
a
sequence
of
real
s
v
a
sequence
of
real
s
Outputs
w
a
sequence
of
real
s
Word description
Takes the bitwise and of
u
and
v
component-wise.
Notes
Unlike
bitand
, this word may be used on a specialized array of floats or doubles, in which case the bitwise representation of the floating point numbers is operated upon.
See also
vbitandn
,
vbitor
,
vbitxor
,
vbitnot
Definition
IN:
math.vectors
GENERIC:
vbitand
( u v -- w )
Methods
USING:
generic
math.vectors
sequences.cords
;
M:
cord
vbitand
[
vbitand
]
[
M\
cord
vbitand
(call-next-method)
]
cord-2map
;
inline
USING:
kernel
math
math.vectors
sequences
;
M:
object
vbitand
[
bitand
]
2map
;
inline
USING:
generic
kernel
math.vectors
math.vectors.simd
math.vectors.simd.intrinsics
math.vectors.simd.private
;
M:
simd-128
vbitand
dup
simd-rep
[
(simd-vbitand)
]
[
M\
simd-128
vbitand
(call-next-method)
]
vv->v-op
;
inline