Searched refs:word_ (Results 1 – 8 of 8) sorted by relevance
27 constexpr Logical(Logical<B, C> x) : word_{Represent(x.IsTrue())} {} in Logical()28 constexpr Logical(bool truth) : word_{Represent(truth)} {} in Logical()31 word_ = Represent(x.IsTrue());66 return !word_.IsZero(); in IsTrue()68 return word_.BTEST(0); in IsTrue()72 constexpr Logical NOT() const { return {word_.IEOR(canonicalTrue)}; } in NOT()75 return {word_.IAND(that.word_)}; in AND()79 return {word_.IOR(that.word_)}; in OR()85 return {word_.IEOR(that.word_)}; in NEQV()95 constexpr Logical(const Word &w) : word_{w} {} in Logical()[all …]
58 constexpr Real(const Word &bits) : word_{bits} {} in Real()63 return word_ == that.word_;70 constexpr bool IsSignBitSet() const { return word_.BTEST(bits - 1); } in IsSignBitSet()95 return {word_.IBCLR(bits - 1)}; in ABS()99 return {word_.IBSET(bits - 1)}; in SetSign()106 constexpr Real Negate() const { return {word_.IEOR(word_.MASKL(1))}; } in Negate()282 constexpr Word RawBits() const { return word_; } in RawBits()286 return word_.IBITS(significandBits, exponentBits).ToUInt64(); in Exponent()291 Fraction result{Fraction::ConvertUnsigned(word_).value}; in GetFraction()327 return Significand::ConvertUnsigned(word_).value; in GetSignificand()[all …]
37 if (word_.IOR(y.word_).IBCLR(bits - 1).IsZero()) { in Compare()101 result.value.word_ = result.value.word_.IBSET(bits - 1); // -0.0 in Add()224 result.value.word_ = result.value.word_.IBSET(bits - 1); in Divide()314 word_ = Word{maxExponent}.SHIFTL(significandBits); // Inf in Normalize()318 word_ = Word{word_.MASKR(word_.bits - 1)}.IBCLR(significandBits); in Normalize()321 word_ = word_.IBSET(bits - 1); in Normalize()329 word_ = Word::ConvertUnsigned(fraction).value; in Normalize()331 word_ = word_.SHIFTL(lshift); in Normalize()335 word_ = word_.IBSET(lshift - 1); in Normalize()341 word_ = word_.IBCLR(significandBits); in Normalize()[all …]
75 Word* word_; variable80 inline Bitmap::Bitmap() : nbits_(0), word_(nullptr) {} in Bitmap()84 inline Bitmap::~Bitmap() { delete[] word_; } in ~Bitmap()90 return word_[i / kBits] & Mask(i % kBits); in get()95 word_[i / kBits] |= Mask(i % kBits); in set()100 word_[i / kBits] &= ~Mask(i % kBits); in clear()
28 delete[] word_; in Reset()29 word_ = w; in Reset()31 memset(word_, 0, sizeof(word_[0]) * num_words); in Reset()83 Word word = word_[i] | mask; in FirstUnset()
375 return (word_ >> idx) & 1ull; in IsSet()379 void Or(uint64_t mask) { word_ |= mask; } in Or()394 word_ &= ~(1ull << idx); in Clear()398 void ClearAll() { word_ = 0; } in ClearAll()420 uint64_t s = word_ - ((word_ & 0xAAAAAAAAAAAAAAAA) >> 1); in IndexOfNthSet()426 s = (BwGtZero(((word_ >> b & 0xFF) * L8) & 0x8040201008040201) >> 7) * L8; in IndexOfNthSet()435 return static_cast<uint32_t>(PERFETTO_POPCOUNT(word_)); in GetNumBitsSet()448 word_ = WordUntil(idx); in ClearAfter()454 word_ |= (MaskAllBitsSetUntil(diff) << static_cast<uint64_t>(start)); in Set()495 return word_ & mask; in WordUntil()[all …]
97 ctx->set_output(0, word_); in Compute()117 Tensor word_; member in tensorflow::SkipgramOp227 word_ = word; in Init()
225 SparseIndexNode (deUint32 word_, deUint32 index_) in SparseIndexNode()226 : word (word_) in SparseIndexNode()